16.12.2012, 18:36
IsPlayerInWater
With this function, you can check whether the player in water. This function can be used for some of the anti-cheats or, for example, the RP servers. It checks not only at sea, but in other bodies of water, such as swimming pools, rivers, etc.
Example of use:
pawn Код:
switch(GetPlayerAnimationIndex(playerid))
{
case 1543,1538,1539:
{
if(!IsPlayerInWater(playerid)) SendClientMessage(playerid,-1,"You are cheater"), Kick(playerid);
}
}
P.S. Sorry for my bad English