Safe Zone
#1

Im trying to make a safe zone and when i go to that location it doesnt work can anyone help me please ?


PHP код:
new InArea[MAX_PLAYERS];
forward IsPlayerInArea();
public 
IsPlayerInArea()
{
  new 
Float:XFloat:YFloat:Z;
  for(new 
i=0MAX_PLAYERSi++)
  {
    if (!
IsPlayerConnected(i))
      continue;
    
GetPlayerPos(iXYZ);
    if (
<= -727.7371 && >= -780.7371 && <= 853.6052 && >= 753.6052 && <= 324.8097 && >= 315.8097)
    {
        
SetPlayerHealth(i999999.9);
        
InArea[i] = 1;
    }
    else if (
InArea[i] == 1)
    {
        
SetPlayerHealth(i100);
        
InArea[i] = 0;
    }
  }

Reply


Messages In This Thread
Safe Zone - by rambalili2 - 19.12.2015, 15:35
Re: Safe Zone - by prineside - 19.12.2015, 15:52
Re: Safe Zone - by TwinkiDaBoss - 19.12.2015, 15:54
Re: Safe Zone - by rambalili2 - 19.12.2015, 16:02
Re: Safe Zone - by TwinkiDaBoss - 19.12.2015, 16:05
Re: Safe Zone - by rambalili2 - 19.12.2015, 16:08
Re: Safe Zone - by rambalili2 - 19.12.2015, 16:17
Re: Safe Zone - by TwinkiDaBoss - 19.12.2015, 16:24
Re: Safe Zone - by rambalili2 - 19.12.2015, 16:24
Re: Safe Zone - by vassilis - 19.12.2015, 16:33

Forum Jump:


Users browsing this thread: 2 Guest(s)