27.10.2012, 21:43
How can i make that when somebody is in the water, he die automatic?
stock IsPlayerInWater(playerid)
{
new anim = GetPlayerAnimationIndex(playerid);
if (((anim >= 1538) && (anim <= 1542)) || (anim == 1544) || (anim == 1250) || (anim == 1062)) return 1;
return 0;
}
public OnPlayerUpdate(playerid)
{
if(IsPlayerInWater(playerid)
{
SetPlayerHealth(playerid, 0);
}
return 1;
}
if(IsPlayerInWater(playerid) { |