19.12.2011, 06:02
Fuck, Wrong one.
Sorry lol
here
Sorry lol
here
pawn Код:
CMD:setadmin(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] >=10)
{
new id,level,n[MAX_PLAYER_NAME],on[MAX_PLAYER_NAME],string[128],string2[128];
if (unformat(params,"ud[128]",id,level)) return SendClientMessage(playerid,COLOR_RED,"Usage:/setadmin [ID] [Admin Level]");
if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "System: Invalid ID");
else
{
PlayerInfo[playerid][pAdmin] = level;
GetPlayerName(playerid,n,sizeof(n));
GetPlayerName(id,on,sizeof(on));
format(string,sizeof(string),"Your Admin Level Has Been Set To %d By %s ",level,n);
SendClientMessage(id,COLOR_ORANGE,string);
format(string2, sizeof(string), "You have set %s Admin Level To %d",on,level);
SendClientMessage(playerid,COLOR_ORANGE,string2);
PlayerInfo[playerid][pAdmin] = level;
}
}
return 1;
}