Possible to increase players run speed? - 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: Discussion (
https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: Possible to increase players run speed? (
/showthread.php?tid=612314)
Possible to increase players run speed? -
MafiaOink - 16.07.2016
I'm creating a gamemode is it possible to increase players run speed without forcing them to use a cleo?
Re: Possible to increase players run speed? -
iKarim - 16.07.2016
SetPlayerVelocity
Re: Possible to increase players run speed? -
MafiaOink - 16.07.2016
how give me a example, I want to make them run like ninja, like 40 KMH
Re: Possible to increase players run speed? - WhiteGhost - 16.07.2016
https://sampwiki.blast.hk/wiki/UsePlayerPedAnims
This should work,allowing all players to run like CJ
Re: Possible to increase players run speed? -
MafiaOink - 16.07.2016
Please read above!
Re: Possible to increase players run speed? -
[KHK]Khalid - 16.07.2016
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);
Re: Possible to increase players run speed? -
MafiaOink - 16.07.2016
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
Re: Possible to increase players run speed? -
Mauzen - 16.07.2016
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.
Re: Possible to increase players run speed? -
MafiaOink - 16.07.2016
yes!!