Possible to increase players run speed?
#1

I'm creating a gamemode is it possible to increase players run speed without forcing them to use a cleo?
Reply
#2

SetPlayerVelocity
Reply
#3

how give me a example, I want to make them run like ninja, like 40 KMH
Reply
#4

https://sampwiki.blast.hk/wiki/UsePlayerPedAnims
This should work,allowing all players to run like CJ
Reply
#5

Please read above!
Reply
#6

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);
Reply
#7

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
Reply
#8

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.
Reply
#9

yes!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)