Player Speed and Jump. - 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: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Player Speed and Jump. (
/showthread.php?tid=228747)
Player Speed and Jump. -
Randomai - 20.02.2011
How i can change player speed and jump highness?
Re: Player Speed and Jump. -
Calgon - 20.02.2011
GetPlayerVelocity
SetPlayerVelocity
SetPlayerPos
Re: Player Speed and Jump. -
Randomai - 20.02.2011
example?can anyone make player run 30% faster?
AW: Player Speed and Jump. -
Nero_3D - 20.02.2011
That would be an example for a higher jump
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_JUMP) {
new
Float: vX,
Float: vY,
Float: vZ;
GetPlayerVelocity(playerid, vX, vY, vZ);
SetPlayerVelocity(playerid, vX, vY, (vZ * 1.3));
}
return 1;
}
Just look at the code and make it for running (you could use KEY_SPRINT for that)