13.01.2012, 15:34
Y Less that something else... HE wants that you get killed after 5 sec Ok Add this at GMinit:
Now add this somewhere in ur script:
now lets forward the kill thingy and ofcourse make it
Thats it i guess.. UNTESTED!
Edit: change the range coords to your needs!
pawn Код:
SetTimer("Bounds", 1000, true);
pawn Код:
forward Bounds(playerid);
public Bounds(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid, 180.0, 0.0, 0.0, 0.0))
{
SetTimer("Kill", 5000, false);
return 1;
}
return 1;
}
pawn Код:
forward Kill(playerid);
public Kill(playerid)
{
If(IsPlayerInRangeOfPoint(playerid, 180.0, 0.0, 0.0, 0.0))
{
return 1; // Do nothing
}
else SetPlayerHealth(playerid, 0);
return 1;
}
Edit: change the range coords to your needs!