SA-MP Forums Archive
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: HElp (/showthread.php?tid=591724)



HElp - itachi - 15.10.2015

please I want help woth high jump for player.. on key space


Re: HElp - Ahmad45123 - 15.10.2015

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if (
newkeys KEY_JUMP)
    {
        new 
Float:x,Float:y,Float:zGetPlayerPos(playeridxyz);
        
SetPlayerVelocity(playeridxyz+0.5);
    }
    return 
1;

Change that 0.5 to make it higher and/or lower.
And also change the KEY_JUMP if you want to change the keys.
You can get all the keys from: https://sampwiki.blast.hk/wiki/Keys


Re: HElp - itachi - 15.10.2015

thank