05.07.2013, 16:17
How can I make that if player swim for 15 mins will get auto-kick and even swiming regular or with sprint.
//This stock isn't mine, credits to who ever made it.
stock IsPlayerInWater( playerid )
{
new anim = GetPlayerAnimationIndex( playerid );
if (((anim >= 1538) && (anim <= 1542)) || (anim == 1544) || (anim == 1250) || (anim == 1062)) return 1;
return 0;
}
Set a timer that checks if the player is in the water/swimming and kick him, use the stock below.
pawn Код:
|
That could be a good function for anti-airbreaking hacks.. If I am not mistaken?
|