"Freeze" vehicle - 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: "Freeze" vehicle (
/showthread.php?tid=288998)
"Freeze" vehicle -
Stefans94 - 09.10.2011
Hello,
Is it possible to freeze a vehicle?
Because i made cars that you can rent,
but they have to stay on the same position,
so that people can't push them away and stuff =p
Thanks,
Stefan
Re: "Freeze" vehicle -
Zonoya - 09.10.2011
TogglePlayerControllable(playerid, 0);
Re: "Freeze" vehicle -
Stefans94 - 09.10.2011
Quote:
Originally Posted by Zonoya
TogglePlayerControllable(playerid, 0);
|
did you even read what i said?
I said the vehicle needs to be frozen,
so people can't push it away...
I don't need to turn off the controls for a player inside a car --'
Re: "Freeze" vehicle -
Wesley221 - 09.10.2011
Probably not
Re: "Freeze" vehicle -
Zonoya - 09.10.2011
oh sorry i dont think so
Re: "Freeze" vehicle -
PrawkC - 09.10.2011
This idea may be sloppy but you could do a check if the owner/renter has entered the vehicle, and if not every X seconds it reset back to its spawn.