01.08.2011, 15:26
pawn Код:
YCMD:makeadmin(playerid, params[], help)
{
#pragma unused help
new id, lvl;
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] >= 3)
{
if(sscanf(params, "ui", id, lvl)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /makeadmin [ID] [Level]");
else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "Invalid ID");
else
PlayerInfo[id][pAdminLevel] = lvl;
}
return 1;
}