/makeadmin cmd
#3

PHP код:
COMMAND:makeadmin(playeridparams[])
{
    if(
GetAdminLevel(playerid) < 11 && !IsPlayerAdmin(playerid)) return SendClientError(playeridCANT_USE_CMD);
    new 
iPlayeriLevel;
    if( 
sscanf params"ud"iPlayeriLevel)) return SCP(playerid"[PlayerID/PartOfName] [adminlvl]");
    if(!
IsPlayerConnected(iPlayer)) return SendClientError(playeridPLAYER_NOT_FOUND);
    
pInfo[playerid][AdminLevel] = iLevel
    SendClientMSG
(playeridCOLOR_WHITE"Player %s (%d) is now admin level %d!"RPName(iPlayer), iPlayeriLevel);
    return 
1;

Reply


Messages In This Thread
/makeadmin cmd - by Gogorakis - 18.09.2015, 11:16
Re: /makeadmin cmd - by TheLegend1 - 18.09.2015, 12:14
Re: /makeadmin cmd - by TheLegend1 - 18.09.2015, 12:17

Forum Jump:


Users browsing this thread: 1 Guest(s)