#1

I want to make a system that will allow you to upgrade your car through the command / upgrade.
Okay, now I do not know how to change the power of cars to go faster. I found a filescript, where all cars have increased speed, Ex:
Infernus normal = 220km,
with fs
Infernus = 300km
I want to upgrade through /upgrade, not all cars have this upgrade already.
I make something like that , but works like a boost for 2-3 seconds and then is go back to normal speed.
PHP код:
CMD:upgrade(playerid)
{
    new 
Float:Velocity[3];
    
GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
    
SetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0] * 1.8 Velocity[1] * 1.8Velocity[2] * 1.8);
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)