Jump to content
  • 0

Ajutor..


Iulian

Question

if (!strcmp("/speedup", cmdtext))

    {

if(IsPlayerInAnyVehicle(playerid))

{

new Float:X,Float:Y,Float:Z;

GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);

        SetVehicleVelocity(GetPlayerVehicleID(playerid), X * 1.6, Y * 1.6, Z * 1.6);

}

return 1;

    }

}

Vreau sa modific aceasta comanda.

Vreu sa o fac cand sunt intr-o masina ex cu id 400 si apas pe W sa faca aia cu SetVehicleVelocity.. ma ajutati?

Rate me :)

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Prietenas ia pune asta :

    
if(newkeys & KEY_ANALOG_UP  && IsPlayerInAnyVehicle(playerid))
    {
      new Float:X,Float:Y,Float:Z;
      GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);
        SetVehicleVelocity(GetPlayerVehicleID(playerid), X * 1.6, Y * 1.6, Z * 1.6);
    }
la public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) si o sa arate asa :
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_ANALOG_UP  && IsPlayerInAnyVehicle(playerid))
    {
      new Float:X,Float:Y,Float:Z;
      GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);
        SetVehicleVelocity(GetPlayerVehicleID(playerid), X * 1.6, Y * 1.6, Z * 1.6);
    }
return 1;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.