How to make a command for a certain team only
#3

try this
pawn Код:
if (strcmp("/command", cmdtext, true, 10) == 0)
    {
        if(PlayerTeam[playerid] == TEAM1) {
           
            //code here
        }
        else if(PlayerTeam[playerid] == TEAM2) {
            SendClientMessage(playerid,COLOR_WHITE,"SERVER: "COL_RED"You are not TEAM1 to use this command");
            return 1;
        }
        return 1;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)