08.06.2015, 07:19
Well, that will apply to you to type PlayerInfo[playerid][pAdmin];.
Example:
Example:
pawn Код:
CMD:makeadmin(playerid, params[])
{
new playerb, adminlevel;
if(PlayerInfo[playerid][pAdmin] == 4) return SendClientMessage(playerid, 0, "You can't use this command!");
if(sscanf(params, "ui", playerb, adminlevel)) return SendClientMessage(playerid, 0, "/makeadmin [playerid] [adminlevel]");
{
PlayerInfo[playerb][pAdmin] = adminlevel;
}
return 1;
}