SA-MP Forums Archive
RC vehicle controllable, how? - 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: RC vehicle controllable, how? (/showthread.php?tid=258974)



RC vehicle controllable, how? - justsomeguy - 02.06.2011

Hey i would like to know how do i make rc vehicles controllable? Is there some kind of a function for it?


Re: RC vehicle controllable, how? - Ash. - 02.06.2011

pawn Code:
new vid = CreateVehicle(...RC VEHICLE CREATION...);
PutPlayerInVehicle(playerid, vid, 0);
The only problem with it is you cannot seem to exit the vehicle via F or Enter (Return). You would need to script some kind of fix.


Re: RC vehicle controllable, how? - Mike Garber - 02.06.2011

Quote:
Originally Posted by funky1234
View Post
pawn Code:
new vid = CreateVehicle(...RC VEHICLE CREATION...);
PutPlayerInVehicle(playerid, vid, 0);
The only problem with it is you cannot seem to exit the vehicle via F or Enter (Return). You would need to script some kind of fix.
RemovePlayerFromVehicle(playerid);


Re: RC vehicle controllable, how? - justsomeguy - 02.06.2011

You mean like using public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)?