07.01.2019, 00:22
Hello guys, I was making a SUMO cars war and I was wonderi g if its possible to check and respawn a player when he falls into the water and how can i do it?
Thanks!
Thanks!
bool: IsPlayerInWater(playerid)
{
new Float: pPosition[3];
GetPlayerPos(playerid, pPosition[0], pPosition[1], pPosition[2]);
if(IsPlayerInRangeOfPoint(playerid, 10000, pPosition[0], pPosition[1], 1-10000))
{
return true;
}
return false;
}