25.04.2010, 03:10
pawn Код:
new Float:x, Float:y, Float:z;
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i, x, y, z);
if(z < {COORD}) // change '{COORD}' to your Z co-ord of when they are in the water or just above the water
{
SetPlayerHealth(i, 0.0);
}
}