Walking By Default - 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: Walking By Default (
/showthread.php?tid=667514)
Walking By Default -
Ahura - 26.06.2019
Hi guys.
i want to use player walk without using W+ALT;
not an animation!!!!!
walking by default!
just like GTA IV , GTA5 or etc...
and when i hold Space Key, character runs!
sorry for my bad eng...
Re: Walking By Default -
khRamin78 - 26.06.2019
there is no function like that but you can do something like this!
in a timer or onplayerupdate! idk
Check if the player is using Any Key > UP-DOWN-LEFT-RIGHT
and the player is on the foot(not in the vehicle)
and do this
Code:
ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
and whenever it is a player Holding space key!
just don't call that apply animation ! so it will be samp default run!
Re: Walking By Default -
Lookin - 28.06.2019
@khRamin78 i agree this is similar to what i would do in this instance