admin include
#5

Well, that will apply to you to type PlayerInfo[playerid][pAdmin];.
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;
}
Reply


Messages In This Thread
admin include - by Armageddonz - 08.06.2015, 06:15
Re: admin include - by Armageddonz - 08.06.2015, 06:19
Re: admin include - by Rabea - 08.06.2015, 06:22
Re: admin include - by Armageddonz - 08.06.2015, 07:12
Re: admin include - by Rabea - 08.06.2015, 07:19
Re: admin include - by Rabea - 08.06.2015, 07:23
Re: admin include - by Armageddonz - 08.06.2015, 07:27
Re: admin include - by Armageddonz - 08.06.2015, 07:29
Re: admin include - by Armageddonz - 08.06.2015, 07:32

Forum Jump:


Users browsing this thread: 3 Guest(s)