How can I make that LSPD cruiser will be faster?
#4

Quote:
Originally Posted by iZN
Посмотреть сообщение
pawn Код:
// after includes ?
new Float:vSPEED = 2.0;

// OnPlayerKeyStateChange
new vID = GetPlayerVehicleID(playerid),
    vModel = GetVehicleModel(vID);

if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && vModel == MODEL_ID_HERE) // add vehicle model ID here
{
    static Float:POS_X, Float:POS_Y, Float:POS_Z;

    GetVehicleVelocity(vID, POS_X, POS_Y, POS_Z);
    if(POS_X < 2.0 && POS_Y < 2.0 && POS_Z < 1.3)
    {
        SetVehicleVelocity(vID, floatmul(POS_X, vSPEED), floatmul(POS_Y, vSPEED), floatmul(POS_Z, vSPEED));
    }
}
Wow thank you very much, two questions:
Where should I place it into the script and how do you define the speed? I mean, how do you define the new Cruiser Speed will be exactly like Infernus?
Reply


Messages In This Thread
How can I make that LSPD cruiser will be faster? - by dimitri8 - 12.06.2014, 10:37
Re: How can I make that LSPD cruiser will be faster? - by Cutt3r - 12.06.2014, 10:46
Re: How can I make that LSPD cruiser will be faster? - by iZN - 12.06.2014, 10:56
Re: How can I make that LSPD cruiser will be faster? - by dimitri8 - 12.06.2014, 16:52
Re : How can I make that LSPD cruiser will be faster? - by mirou123 - 12.06.2014, 16:57

Forum Jump:


Users browsing this thread: 2 Guest(s)