HELP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP (
/showthread.php?tid=664624)
HELP -
Calinut200 - 05.03.2019
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.8, Velocity[2] * 1.8);
return 1;
}