arrest o.o
#7

this is ur check then
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
simpler version, dont know if it will work though

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


Messages In This Thread
arrest o.o - by ethhackerman - 11.06.2013, 00:28
Re: arrest o.o - by DaTa[X] - 11.06.2013, 00:53
Re: arrest o.o - by ethhackerman - 11.06.2013, 01:03
Re: arrest o.o - by ethhackerman - 12.06.2013, 20:24
Re: arrest o.o - by park4bmx - 12.06.2013, 20:34
Re: arrest o.o - by ethhackerman - 12.06.2013, 20:36
Re: arrest o.o - by park4bmx - 12.06.2013, 20:44

Forum Jump:


Users browsing this thread: 2 Guest(s)