04.12.2014, 23:21
pawn Код:
public OnPlayerUpdate(playerid)
{
if(InWater[playerid] == true && !IsPlayerInWater(playerid))
{
InWater[playerid] = false;
CallLocalFunction("OnPlayerLeaveWater", "i", playerid);
return true;
}
if(IsPlayerInWater(playerid)) InWater[playerid] = true;
return 1;
}