SA-MP Forums Archive
Runstyle help! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Runstyle help! (/showthread.php?tid=270524)



Runstyle help! - samtey - 20.07.2011

Hey guys!

I have a question! I want that every player runs like CJ in the singleplayer! THE WALKSTYLE have to stay, when they're walking like real gangsters!What should I script and where should I put it?


Re: Runstyle help! - Grim_ - 20.07.2011

To change the running style to that of singleplayer, add the UsePlayerPedAnims function in OnGameModeInit
pawn Код:
UsePlayerPedAnims( );
If you test that and are not satisfied with the way they walk, you can apply an animation when they use KEY_WALK.

https://sampwiki.blast.hk/wiki/ApplyAnimation


EDIT: Seriously? Bumping after 5 minutes...?


AW: Runstyle help! - samtey - 20.07.2011

EDIT: Thanks! I'll try!


Re: Runstyle help! - alpha500delta - 20.07.2011

Well if you want CJ running, but walkstyle to stay, then you could try and using OnPlayerKeyStateChange, ApplyAnimation and/or UsePlayerPedAnims().

Edit: A bit too late lol.


AW: Runstyle help! - samtey - 20.07.2011

But there aren't written the kinds of Runningstyles!

Could anybody gimme an example of his own script?