How can i make cars jump pressing h????
#4

on top
pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
pawn Код:
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;
}
this makes when u press handbrake it jumps ur car 10 feet in air
Reply


Messages In This Thread
How can i make cars jump pressing h???? - by Exterminator - 06.11.2010, 01:07
Re: How can i make cars jump pressing h???? - by mel~vin - 06.11.2010, 02:10
Re: How can i make cars jump pressing h???? - by Luis- - 06.11.2010, 02:11
Re: How can i make cars jump pressing h???? - by Kitten - 06.11.2010, 02:13

Forum Jump:


Users browsing this thread: 2 Guest(s)