[Include] IsPlayerInWater
#1

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);
    }
}
Include: pastebin
P.S. Sorry for my bad English
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)