23.12.2014, 12:33
PHP Code:
CMD:setrank(playerid, params[])
{
new str[128], ARank, lookupid;
if(PlayerInfo[playerid][pRank] >= 2 && PlayerInfo[playerid][pRank] <= 8)
{
if(sscanf(params, "ui", lookupid, ARank)) return SendClientMessage(playerid, -1, "Usage: /setrank <PlayerID/PlayerName> <Rank>");
format(str, sizeof(str), "Admin %s (ID:%d) has setted %s (ID:%d) Rank to (%d)",GetName(playerid), playerid, GetName(lookupid), lookupid, ARank);
SendClientMessageToAll(-1, str);
PlayerInfo[lookupid][pRank] = ARank;
}
else SendClientMessage(playerid, -1, "Sorry , you are not admin");
return 1;
}