12.06.2013, 20:44
this is ur check then
simpler version, dont know if it will work though
pawn Код:
//check if the player can use it first
if(gTeam[playerid] != TEAM_COPS || gTeam[playerid] != TEAM_SWAT || gTeam[playerid] != TEAM_CIA || gTeam[playerid] != TEAM_ARMY) return SendClientMessage(playerid,-1,"You are not allowed to arrest players!");
//now the team check
if(gTeam[targetid] == TEAM_COPS || gTeam[targetid] == TEAM_SWAT || gTeam[targetid] == TEAM_CIA || gTeam[targetid] == TEAM_ARMY) return SendClientMessage(playerid,-1,"You Can't arrest This Player");
//continue
pawn Код:
if(gTeam[playerid] != (TEAM_COPS ,TEAM_SWAT , TEAM_CIA ,TEAM_ARMY)) return SendClientMessage(playerid,-1,"You are not allowed to arrest players!");
if(gTeam[targetid] == (TEAM_COPS , TEAM_SWAT , TEAM_CIA ,TEAM_ARMY)) return SendClientMessage(playerid,-1,"You Can't arrest This Player");