21.12.2013, 16:31
oh, okey.
we could do this the easy way,
just take the coords of your spawnpoint, for example 1234.1,1234.1,1234.2
and now in onplayertakedamage:
if(IsPlayerInRangeOfPoint(playerid, 10.0,1234.1, 1234.1, 1234.2)) SetPlayerHealth(issuerid,0.0);
we could do this the easy way,
just take the coords of your spawnpoint, for example 1234.1,1234.1,1234.2
and now in onplayertakedamage:
if(IsPlayerInRangeOfPoint(playerid, 10.0,1234.1, 1234.1, 1234.2)) SetPlayerHealth(issuerid,0.0);