Usage: gms_other_admin_rights ( player_id )


Returns what the given 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


//Note the notation: & instead of =
var player;
player = gms_other_find_by_name("Size43")
if(gms_other_admin_rights(player) & ar_ban)
    //Size43 is allowed to ban
}else if(gms_other_admin_rights(player) & ar_kick)
    //Size43 allowed to kick

Replies (1)

Last message on 3 Dec 2017

Size43 (Administrator) on 3 Dec 2017, 13:33:05
Since I've had a lot of questions asking how to have different colors for admins, there is now a tutorial explaining this here.