Posts: 334
Threads: 52
Joined: May 2011
Reputation:
0
Which anim is the one who dives underwater? I mean when you press Left Click and dive, which animation is it? And how to check if an animation is being used by a player? I mean the Dive animation, how to check if a Player dives?
Posts: 432
Threads: 34
Joined: Apr 2013
Reputation:
0
I don't know which anim it is but u can check anim with it:
if(GetPlayerAnimationIndex(playerid))
Posts: 334
Threads: 52
Joined: May 2011
Reputation:
0
Can you show me an example?
Posts: 565
Threads: 32
Joined: Jul 2012
Reputation:
0
SWIM
Swim_Breast
SWIM_crawl
Swim_Dive_Under
Swim_Glide
Swim_jumpout
Swim_Tread
Swim_Under
Maybe this?
Posts: 432
Threads: 34
Joined: Apr 2013
Reputation:
0
If swim dive under is anim then use it to check
if(GetPlayerAnimationIndex(playerid))
{
new animlib[32];
new animname[32];
GetAnimationName(GetPlayerAnimationIndex(playerid) ,animlib,32,animname,32);
if(!strcmp(animname, "swim dive under", true)){