SA-MP Forums Archive
[Help] Player's Animation - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Player's Animation (/showthread.php?tid=352848)



[Help] Player's Animation - Saw® - 21.06.2012

Hi , i'm asking myself a lot of times , can we change the player's speed (or called Cj animation) ?
will it be like speed hack ?
- If we can change it , sould i put it under Public OnplayerKey.. ?

Thank you.


Re: [Help] Player's Animation - zombieking - 21.06.2012

Yeah you should , and yes it is possible , and I am working on something like this.. you should set the anim "sprint_civi" from the animlib "PED" or something like that , example:

pawn Код:
ApplyAnimation(playerid,"PED","sprint_civi",5,1,1,1,1,1);
But you should put it at OnPlayerkeystatechange..


Re: [Help] Player's Animation - Saw® - 21.06.2012

Thanks I really need a script like this one , not to copy , but understand how it happens...


Re: [Help] Player's Animation - [NWA]Hannes - 21.06.2012

Quote:
Originally Posted by zombieking
Посмотреть сообщение
pawn Код:
ApplyAnimation(playerid,"PED","sprint_civi",5,1,1,1,1,1);
What animation is this?


Re: [Help] Player's Animation - Saw® - 21.06.2012

Quote:
Originally Posted by zombieking
Посмотреть сообщение
Yeah you should , and yes it is possible , and I am working on something like this.. you should set the anim "sprint_civi" from the animlib "PED" or something like that , example:

pawn Код:
ApplyAnimation(playerid,"PED","sprint_civi",5,1,1,1,1,1);
But you should put it at OnPlayerkeystatechange..
hmm... witch key should i to use ? KEY_SPACE ?


Re: [Help] Player's Animation - zombieking - 21.06.2012

KEY_SPRINT

@[NWA]Hannes : "sprint_civi" from animlib "PED" is CJ Run animation.


Re: [Help] Player's Animation - [NWA]Hannes - 21.06.2012

Wouldn't it just be easier to enable CJ running instead of having an animation?

You can enable CJ running by putting
pawn Код:
UsePlayerPedAnims();
under "public OnGameModeInit()"


Re: [Help] Player's Animation - Saw® - 21.06.2012

So i just have to choose one the two choices? :
Puting ApplyAnimation(playerid,"PED","sprint_civi",5,1,1, 1,1,1);
or UsePlayerPedAnims(); ?


Respuesta: [Help] Player's Animation - zombieking - 21.06.2012

UsePlayerPedAnims will enable it FOR ALL THE PLAYERS. I meant to apply it to specific players.