SA-MP Forums Archive
car speed - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: car speed (/showthread.php?tid=207808)



car speed - farris - 07.01.2011

i need a way to make a car go about 2-3 times faster. i have the activation and deactivation command setup i just need the part where the car goes faster any ideas? ive seen it done before


Re: car speed - Dainyzxz - 07.01.2011

edit handling.txt in gta sa directory


Re: car speed - RoamPT - 07.01.2011

I think this could help you: https://sampwiki.blast.hk/wiki/Velocity_Tutorial


Re: car speed - farris - 07.01.2011

i want it to be compatible with the cmd is there a way to do it with velocity


Re: car speed - farris - 07.01.2011

if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new float, float:y ,float:z;
GetVehicleVelocity(GetPlayerVehicleID(playerid),x, y,z);
SetVehicleVelocity(GetPlayerVehicleID(playerid),x* 1.2,y*1.2,z*1.2);
}


ok updates i get tag mismatch warning what do i need to do to fix this


Re: car speed - Padarom - 07.01.2011

As far as I know Float is Case Sensitive. So try
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new Float:x, Float:y, Float:z;
GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
SetVehicleVelocity(GetPlayerVehicleID(playerid), x*1.2, y*1.2, z*1.2);
}