28.02.2018, 12:55
(
Последний раз редактировалось RogueDrifter; 09.04.2018 в 22:23.
)
This function will return true if the player is UNDER water and false if he isn't,
Very simple and basic but yeah didn't see it anywhere.
PHP код:
stock IsPlayerUnderWater(playerid)
{
new PPAnim = GetPlayerAnimationIndex(playerid);
return (PPAnim == 1540 || PPAnim == 1544);
}