Admin Commands
#7

pawn Код:
CheckAdminLevel(playerid)
{
    for(new i; i < admin_Total; i++)
    {
        if(!strcmp(gPlayerName[playerid], admin_Data[i][admin_Name]))
        {
            admin_Level[playerid] = admin_Data[i][admin_Rank];
            break;
        }
    }
}
or

pawn Код:
stock GetPlayerAdminLevel(playerid)
{
    if(!IsPlayerConnected(playerid))
        return 0;

    return admin_Level[playerid];
}
Reply


Messages In This Thread
Admin Commands - by FinStar - 11.02.2015, 13:56
Re: Admin Commands - by HazardouS - 11.02.2015, 14:11
Re: Admin Commands - by doreto - 11.02.2015, 14:15
Re: Admin Commands - by FinStar - 11.02.2015, 14:16
Re: Admin Commands - by FinStar - 11.02.2015, 14:40
Re: Admin Commands - by ATGOggy - 11.02.2015, 14:54
Re: Admin Commands - by FinStar - 11.02.2015, 14:58
Re: Admin Commands - by FinStar - 11.02.2015, 17:03
Re: Admin Commands - by ReD_HunTeR - 11.02.2015, 17:27
Re: Admin Commands - by FinStar - 11.02.2015, 17:33

Forum Jump:


Users browsing this thread: 1 Guest(s)