SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 16/07/2016, 04:52 PM   #1
MafiaOink
Big Clucker
 
MafiaOink's Avatar
 
Join Date: Jun 2014
Location: Pakistan
Posts: 187
Reputation: 28
Default Possible to increase players run speed?

I'm creating a gamemode is it possible to increase players run speed without forcing them to use a cleo?
__________________
MafiaOink is offline   Reply With Quote
Old 16/07/2016, 04:57 PM   #2
iKarim
Banned
 
Join Date: Oct 2015
Posts: 579
Reputation: 142
Default Re: Possible to increase players run speed?

SetPlayerVelocity
iKarim is offline   Reply With Quote
Old 16/07/2016, 04:59 PM   #3
MafiaOink
Big Clucker
 
MafiaOink's Avatar
 
Join Date: Jun 2014
Location: Pakistan
Posts: 187
Reputation: 28
Default Re: Possible to increase players run speed?

how give me a example, I want to make them run like ninja, like 40 KMH
__________________
MafiaOink is offline   Reply With Quote
Old 16/07/2016, 05:00 PM   #4
WhiteGhost
Guest
 
Posts: n/a
Default Re: Possible to increase players run speed?

http://wiki.sa-mp.com/wiki/UsePlayerPedAnims
This should work,allowing all players to run like CJ
  Reply With Quote
Old 16/07/2016, 05:03 PM   #5
MafiaOink
Big Clucker
 
MafiaOink's Avatar
 
Join Date: Jun 2014
Location: Pakistan
Posts: 187
Reputation: 28
Default Re: Possible to increase players run speed?

Please read above!
__________________
MafiaOink is offline   Reply With Quote
Old 16/07/2016, 05:21 PM   #6
[KHK]Khalid
Gangsta
 
[KHK]Khalid's Avatar
 
Join Date: Jan 2012
Location: Alexandria, Egypt
Posts: 854
Reputation: 136
Default Re: Possible to increase players run speed?

Dunno, try something like that

pawn Code:
// Get player's velocity
new Float:x, Float:y, Float:z;
GetPlayerVelocity(playerid, x, y, z);
// Add to current velocity
new Float:increment = 10.0;
x += increment;
y += increment;
z += increment;
// Set player's velocity to incremented velocity that we calculated
SetPlayerVelocity(playerid, x, y, z);
[KHK]Khalid is offline   Reply With Quote
Old 16/07/2016, 05:28 PM   #7
MafiaOink
Big Clucker
 
MafiaOink's Avatar
 
Join Date: Jun 2014
Location: Pakistan
Posts: 187
Reputation: 28
Default Re: Possible to increase players run speed?

I tried but different, Get Velocity multiply by 2.0 or 1.2 and set it then only X and Y but it will kill me cuz of too fast velocity if I jump that will happen else i CAN run fast
trying ur will make me go to oceans LOL or loading screen Just tried it
__________________
MafiaOink is offline   Reply With Quote
Old 16/07/2016, 05:55 PM   #8
Mauzen
High-roller
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 4,877
Reputation: 1597
Default Re: Possible to increase players run speed?

SetPlayerVelocity doesnt work as expected while on the ground. It will instantly brake the player down to normal speed, eventually causing "falling damage" when the velocity is high enough.
Mauzen is offline   Reply With Quote
Old 16/07/2016, 10:46 PM   #9
MafiaOink
Big Clucker
 
MafiaOink's Avatar
 
Join Date: Jun 2014
Location: Pakistan
Posts: 187
Reputation: 28
Default Re: Possible to increase players run speed?

yes!!
__________________
MafiaOink 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 increase run speed or gamespeed wind0wS_8 Scripting Help 2 02/08/2013 05:49 PM
increase speed cruising Help Archive 12 06/06/2011 09:40 PM
[FilterScript] Increase Players run speed sheepondrugs Filterscripts 1 11/08/2010 12:08 AM
How to increase armor or speed on a car? Zack9764 Help Archive 2 08/04/2010 08:20 PM
How can i increase running speed? saionaara Help Archive 6 10/11/2009 03:43 PM


All times are GMT. The time now is 10:01 AM.


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