22.06.2015, 14:21
You can check if a player is swimming by his animation.
Код:
bool:IsPlayerSwimming(playerid) { if(GetPlayerAnimationIndex(playerid)) { new animlib[32]; new animname[32]; GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname)); if(strcmp(animlib, "SWIM", true) == 0) return true; } return false; }