[Help] Setting a vehicle 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)
+--- Thread: [Help] Setting a vehicle speed. (
/showthread.php?tid=436608)
[Help] Setting a vehicle speed. -
xXRealLegitXx - 12.05.2013
For this, I want to create a command that boosts the player's vehicle's speed by 50 mph every time it is used. I tried to search for a function in SA:MP, but nothing came up. I know that this is possible as I have seen it done on many servers.
Код:
CMD:speed(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
// Insert function here
}
return 1;
}
Re: [Help] Setting a vehicle speed. -
BossZk - 12.05.2013
https://sampwiki.blast.hk/wiki/SetVehicleVelocity this should help you out