Player.IsAdmin
From GMod Wiki
| Function | |
| Syntax | Player:IsAdmin( ) |
| Description: | |
| Returns true if the player is a member of the group "admin" or "superadmin" | |
| Returns: | Boolean |
| In Object: | Player |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.IsAdmin]Player.IsAdmin [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Player.IsAdmin will return true is the player is an admin OR a superadmin. Therefore you don't need 2 separate checks!