Mega jump help - 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)
+--- Thread: Mega jump help (
/showthread.php?tid=368131)
Mega jump help -
TaToUaL - 12.08.2012
Well, this is the script:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_JUMP))
{
SetPlayerVelocity(playerid, 0.0,0.2,0.5);
}
}
This script works, but the player mega jump is on specific directions..
How can i make my mega jump directional?
AW: Mega jump help -
Nero_3D - 12.08.2012
just get the current vX and vY
pawn Код:
new
Float: vX,
Float: vY,
Float: vZ
;
GetPlayerVelocity(playerid, vX, vY, vZ);
SetPlayerVelocity(playerid, vX, vY, 0.5);
Re: Mega jump help -
leonardo1434 - 12.08.2012
By the math. make yourself these calc's.
Re: Mega jump help -
TaToUaL - 12.08.2012
Okay, thanks for your help Nero