gms_other_admin_rights

Usage: gms_other_admin_rights ( player_id )

Description

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

Example

//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 (0)

Last message on 26 May 2017