27.01.2010, 13:14
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:
Timer:
function:
Anyone knows whats the problem or knows how to solve this ?
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();
Код:
SetTimer("isPlayerInArea", 1000, true);
Код:
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); } } }