04.11.2012, 13:04
Try
Change the PlayerInfo for you info ofplayer..
if i help give me rep
pawn Код:
CMD:setlevel(playerid, params[])
{
new id, level;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"SERVER: You must be an admin.");
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "SERVER: Player not connected.");
if(id == playerid) return SendClientMessage(playerid, -1, "SERVER: You cant set yourself an admin. Use /setadmin.");
if(sscanf(params, "ud", id, level)) return SendClientMessage(playerid, -1, "Usage: /setlevel [id] [level]");
if(level > 5) return SendClientMessage(playerid, -1, "SERVER: Level is too high. [0/5]");
PlayerInfo[id][Admin] == level;
return 1;
}
if i help give me rep