Making a special team just for admins!
#4

pawn Code:
// in the OnPlayerRequestClass
SetPVarInt(playerid, "classID", classid);

// in the OnPlayerRequestSpawn
switch(GetPVarInt(playerid, "classID"))
{
     case 27 .. 31
     {
          if(!IsPlayerAdmin(playerid))
               return SendClientMessage(playerid, -1, "This class is for admins only.");

          // Do the rest of the code here
     }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)