What to do when out of fuel - 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: What to do when out of fuel (
/showthread.php?tid=193831)
What to do when out of fuel -
ajwar - 27.11.2010
HI, i am working on a rp server, vehicle system. What should I do when the car is out of fuel? Freezeplayer? Any good ideas? How to let him get out of the car if i freeze him?
Re: What to do when out of fuel -
boelie - 27.11.2010
TogglePlayerControllable(playerid,0);
or i had an idea last night.. maybe setvehiclevelocity set to zero under onplayerkeystatechange
didnt test it but have fun trying
Re: What to do when out of fuel -
Jochemd - 27.11.2010
You mean, of course, TogglePlayerControllable(playerid,1);
Re: What to do when out of fuel -
ajwar - 27.11.2010
Thank's for answers
Re: What to do when out of fuel -
boelie - 27.11.2010
..euhm yea..probably thanks jochemD XD
Re: What to do when out of fuel -
ajwar - 04.12.2010
When i make this:
pawn Код:
TogglePlayerControllable(playerid,1);
I can't get out of the car. Any suggestions?
Re: What to do when out of fuel -
Hal - 04.12.2010
Quote:
Originally Posted by ajwar
When i make this:
pawn Код:
TogglePlayerControllable(playerid,1);
I can't get out of the car. Any suggestions?
|
Then you make an exit command, that removes player from vehicle.
"You Car Is Out Of Fuel! [/exit]"
Re: What to do when out of fuel -
BloodyEric - 04.12.2010
Prepare for 0.3c and disable the engine.
Re: What to do when out of fuel -
ajwar - 04.12.2010
When it's coming ?