SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 26/06/2019, 10:01 AM   #1
Ahura
Little Clucker
 
Join Date: Jun 2019
Posts: 1
Reputation: 0
Question Walking By Default

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...
Ahura is offline   Reply With Quote
Old 26/06/2019, 12:08 PM   #2
khRamin78
Huge Clucker
 
khRamin78's Avatar
 
Join Date: Jun 2015
Location: IRI/LA
Posts: 321
Reputation: 30
Default Re: Walking By Default

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!
khRamin78 is offline   Reply With Quote
Old 28/06/2019, 04:12 PM   #3
Lookin
Gangsta
 
Lookin's Avatar
 
Join Date: May 2010
Location: Aotearoa
Posts: 617
Reputation: 19
Default Re: Walking By Default

@khRamin78 i agree this is similar to what i would do in this instance
Lookin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the default walking style SecretBoss Scripting Help 13 23/01/2015 10:11 AM
NPC not walking X|Dragon|X Scripting Help 1 31/12/2014 12:21 AM
[Include] Walking 0.1.0 R2 NoGravity Includes 13 04/02/2011 08:44 PM
Keep Walking bomm89 Server Support 0 12/12/2010 04:46 PM
Walking NPC? bajskorv123 Help Archive 4 14/02/2010 11:13 AM


All times are GMT. The time now is 07:36 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.