#1

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

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

thank
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)