RC-XD? - 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-XD? (
/showthread.php?tid=257629)
RC-XD? -
sciman001 - 27.05.2011
How can i program a thing where i do /xd and BUY a rc-xd. Its a rc car. I can drive it around as long as i want. I press... c to explode it. It DOES NOT hurt you. You teleport to the place you were last at. How do it?
Re: RC-XD? -
cessil - 27.05.2011
iirc all rc's are vehicles so you'd have to create the vehicle and then put the player in the vehicle
https://sampwiki.blast.hk/wiki/CreateVehicle
https://sampwiki.blast.hk/wiki/PutPlayerInVehicle
Re: RC-XD? -
(SF)Noobanatior - 27.05.2011
Код:
if /xd then createcar and putplayerincar
//then h to blow it up at it is the horn
then onplayerkeypress
if KEY_HORN
then set the player spectating that car explode it
then teleport back to where they started