car speed
#1

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
Reply
#2

edit handling.txt in gta sa directory
Reply
#3

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

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

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
Reply
#6

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);
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)