SA-MP Forums Archive
IsPlayerClass? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IsPlayerClass? (/showthread.php?tid=408528)



IsPlayerClass? - Sellize - 18.01.2013

Hey guys i have 2 classes on my script and i want to know how to make a command only for a specific class


Re: IsPlayerClass? - azzerking - 18.01.2013

This should help:

pawn Код:
if(strcmp(cmd, "/team1", true) == 0) {
     if(gTeam[playerid] == Team1)
     {
          SendClientMessage(playerid, COLOR_RED,"You are Team1");
     }
     else return SendClientMessage(playerid, COLOR_RED,"Your are Not Team1");
}