07.08.2015, 18:37
Quote:
|
You can make a timer with a 5s interval that will check the player z coordinate and compare it to the water Z surface coords, if the player Z < water surface Z he loses
Under on player spawn: Код:
//your code
//...
// Start a 5 second timer to end the anti-spawnkill
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetTimerEx("CheckZ", 5000, false, "if", playerid, Z);
//then after on player spawn
forward CheckZ(playerid, zcoord);
// The timer function - the code to be executed when the timer is called goes here
public CheckZ(playerid, zcoord)
{
if(Z<10.00) //10.00 is surface Z for example
{
//lose functions and variables
}
return 1;
}
|

