is player in area
#1

hey there i need help iv got this code


Код:
public isPlayerInArea(playerid)
  {
    new Float:X, Float:Y, Float:Z; 
    for(new i=0; i < MAX_PLAYERS; i++) 
    {
      GetPlayerPos(i, X, Y, Z); 
      if (X <= 1543 && X >= 1608 && Y <= -1634 && Y >= -1602)
      {
        if (gTeam[playerid] == TEAM_CIVILLIAN)
				{
			  GameTextForPlayer(playerid,"~y~ You Died For Being On Police Property",5000,5);
			  SetPlayerHealth(i, -999999.9); //This will ensure, that our player gets killed if he tries to enter
			}
		  }
    }
  }
but it dosent kill civillian and i whant it to kill civillian


thx for ur time
Reply


Messages In This Thread
is player in area - by sggassasin - 20.08.2009, 08:52
Re: is player in area - by Gappy - 20.08.2009, 09:00
Re: is player in area - by sggassasin - 20.08.2009, 09:23
Re: is player in area - by Gappy - 20.08.2009, 09:37
Re: is player in area - by MenaceX^ - 20.08.2009, 09:43
Re: is player in area - by Gappy - 20.08.2009, 09:44
Re: is player in area - by dice7 - 20.08.2009, 09:46
Re: is player in area - by Gappy - 20.08.2009, 09:48
Re: is player in area - by dice7 - 20.08.2009, 09:50
Re: is player in area - by MenaceX^ - 20.08.2009, 09:51
Re: is player in area - by Gappy - 20.08.2009, 09:55
Re: is player in area - by MenaceX^ - 20.08.2009, 10:05
Re: is player in area - by Gappy - 20.08.2009, 10:10
Re: is player in area - by MenaceX^ - 20.08.2009, 10:23
Re: is player in area - by Gappy - 20.08.2009, 10:27
Re: is player in area - by MenaceX^ - 20.08.2009, 10:58
Re: is player in area - by Gappy - 20.08.2009, 11:01
Re: is player in area - by sggassasin - 20.08.2009, 11:05
Re: is player in area - by sggassasin - 21.08.2009, 04:01
Re: is player in area - by Joe Staff - 21.08.2009, 04:17
Re: is player in area - by sggassasin - 21.08.2009, 04:31
Re: is player in area - by sggassasin - 22.08.2009, 06:09
Re: is player in area - by sggassasin - 23.08.2009, 07:30
Re: is player in area - by sggassasin - 24.08.2009, 04:40

Forum Jump:


Users browsing this thread: 2 Guest(s)