[PROBLEM] Making a person die when he enters an area
#1

I want a person to die when he enters a certain area
I know about timers and forwarding, and i'm not getting any compiling errors, the script just doesent work, I don't die when I enter the area
help plz ?

this is what I ahve

forward:
Код:
forward isPlayerInArea();
Timer:
Код:
SetTimer("isPlayerInArea", 1000, true);
function:
Код:
public isPlayerInArea()
  {
    new Float:X, Float:Y, Float:Z;
    for(new i=0; i < MAX_PLAYERS; i++)
    {
      GetPlayerPos(i, X, Y, Z);
      if (X <= 220.79951477051 && X >= 78.797210693359 && Y <= -2541.3955078125 && Y >= 23.323795318604){
        SetPlayerHealth(i, -999999.9);
      }
    }
  }
Anyone knows whats the problem or knows how to solve this ?
Reply


Messages In This Thread
[PROBLEM] Making a person die when he enters an area - by S1nn3r - 27.01.2010, 13:14
Re: [PROBLEM] Making a person die when he enters an area - by Norck - 27.01.2010, 13:21
Re: [PROBLEM] Making a person die when he enters an area - by pierhs - 27.01.2010, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)