access
- Синтаксис
-
stock access(id, level) { if (level == ADMIN_ADMIN) { return is_user_admin(id); } else if (level == ADMIN_ALL) { return 1; } return (get_user_flags(id) & level); }
Переменная | Описание |
---|---|
id |
Client index |
level |
Required admin flags |
- Описание
- Returns if the client has the specified admin flags.
- Возвращает
- 1 if client has the admin flags, 0 otherwise