IsPlayerClass?
#1

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

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");
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)