cmd_access
stock cmd_access(id, level, cid, num, bool:accesssilent = false)
| Parameter |
Description |
| id | Client index |
| level | Required admin flags |
| cid | Command id |
| num | Required number of parameters |
| acesssilent | If true no denied access message will be printed |
Returns if the user can execute the current command by checking the necessary
admin flags and parameter count. Displays a denied access message to the user
if missing privileges or a usage example if too few parameters are provided.
This should be used inside of a command forward as it uses read_argc()
to check the parameter count.
1 if access granted and parameters provided, 0 otherwise