cmd_access
- Синтаксис
Переменная | Описание |
---|---|
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