22.06.2015, 10:18
Anyway to check whether a player is in water or swimming?
Anyway to toggle player's running/sprinting ability?
Anyway to toggle player's running/sprinting ability?
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; }
There is an include to detect if player's swimming.
Check : https://sampforum.blast.hk/showthread.php?tid=173944 KillerDVX, |