Super Jump Help [SOLVED]
#3

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_HANDBRAKE))
    {
    new Float:x, Float:y, Float:z;
        GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
        SetVehicleVelocity(GetPlayerVehicleID(playerid) ,x ,y ,z+0.3);
    }
    return 1;
}
Press space and it will do what you want, if you want to change it to a different key then go there https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List
Reply


Messages In This Thread
Super Jump Help [SOLVED] - by BP13 - 29.10.2009, 22:13
Re: Super Jump Help - by Sergei - 29.10.2009, 22:16
Re: Super Jump Help - by V1ceC1ty - 30.10.2009, 00:20
Re: Super Jump Help - by BP13 - 30.10.2009, 03:23

Forum Jump:


Users browsing this thread: 1 Guest(s)