Cruise Control 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cruise Control Help (
/showthread.php?tid=252080)
Cruise Control Help -
The_J0ker - 30.04.2011
I'm trying to make a cruise control system for my server but when i added it. it causes pawno crashes anyone know
pawn Код:
if (strcmp("/cc", cmdtext, true, 10) == 0)
{
new Float:vX, Float:vY, Float:vZ;
GetVehicleVelocity(GetPlayerVehicleID(playerid), vX, vY, vZ);
SetVehicleVelocity(GetPlayerVehicleID(playerid), vX, vY, vZ);
SendClientMessage(playerid, COLOR_ORANGE,"Cruise control engaged to turn it of type /cc again.");
return 1;
}
return 0;
Re: Cruise Control Help -
coole210 - 30.04.2011
It's probably something else in the script.
EDIT:
You're script won't even work, it needs a timer to keep setting the velocity, to keep it cruising.
Re: Cruise Control Help -
The_J0ker - 30.04.2011
could you explain it more as i don't understand
Re: Cruise Control Help -
The_J0ker - 04.05.2011
how would i put a timer on it ?