SA-MP Forums Archive
How can i brake - 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: How can i brake (/showthread.php?tid=524799)



How can i brake - NeroX98 - 08.07.2014

Im asking is there any SCRIPT/CODE/SNIPPET to make the car brake ?


Re: How can i brake - BroZeus - 08.07.2014

u mean blast it or break it visibley?


Re: How can i brake - NeroX98 - 08.07.2014

I want the car to start braking (like pressing "s" while driving it).


Re: How can i brake - BroZeus - 08.07.2014

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys & KEY_YES) && !(oldkeys & KEY_YES))
{
if(!IsPlayerInAnyVehicle(playerid))return 1;
SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 0.0);
}

return 1;
}
this will brake ur car when you press Y key