gms_self_admin_rights

Usage: gms_self_admin_rights ( )

Description

Returns what the player is allowed to do.

The following flags can be returned:

ar_kick: Allowed to kick
ar_ban: Allowed to ban
ar_owner: The player owns the game

Example

//Note the notation: & instead of =
if(gms_self_admin_rights() & ar_ban)
{
    //Player is allowed to ban
}else if(gms_self_admin_rights() & ar_kick)
{
    //Player allowed to kick
}

Replies (2)

Last message on 27 Jun 2015

Gamewolf10 on 26 Jun 2015, 22:39:39
Can you use just gms_self_admin_rights instead of the notation mark?
Size43 (Administrator) on 27 Jun 2015, 12:33:30
I don't think I fully understand what you're asking. You'll have to use & because the value returned can contain multiple permissions, not just one.