Quote:
Originally Posted by Hijolion
You can also easily detect swimming
pawn Код:
stock IsPlayerInWater(playerid) { new animlib[32],tmp[32]; GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,tmp,32); if( !strcmp(animlib, "SWIM") && !IsPlayerInAnyVehicle(playerid) ) return true; return false; }
this is simply faster without lags because it simply stocks it in.
|
^ basicly what he said was wat i was going to say..