jump car script +rep
#1

this is script jump car how to make when press h or caps lock jump car ?
PHP код:
        new Float:xFloat:yFloat:z;
        
GetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z);
        
SetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z+2); 
this is script jump car how to make when press h or caps lock jump car ?
Reply
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys & KEY_LOOK_BEHIND)
    {
            if(IsPlayerInAnyVehicle(playerid))
            {
                        new Float:x, Float:y, Float:z;
                        GetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z);
                        SetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z+2);  
             }
    }
    return 1;
}
KEY LOOK BEHIND should be the CAPS LOCK key if I'm not wrong. If you want other key, use this link:

https://sampwiki.blast.hk/wiki/GetPlayerKeys
Reply
#3

OO thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)