SA-MP Forums Archive
/tune - 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: /tune (/showthread.php?tid=156798)



/tune - iLcke - 24.06.2010

Well, I seen a few servers with /tune and it sends them to the correct transfender, like, elegy goes to wheel arch, banshee would go to normal transfender.. ect, how would i do that?


Re: /tune - Flashy - 24.06.2010

You need to create firstly a command with dcmd, zcmd, or other methods.
Then you must get the position frmo the player with GetPlayerPos.
Next to that you must set the position where you want to spawn with SetPlayerPos.

All the functions you can find at SAMP Wiki.
Try it and when you have problems post here.


Re: /tune - iLcke - 24.06.2010

Quote:
Originally Posted by Flashy
You need to create firstly a command with dcmd, zcmd, or other methods.
Then you must get the position frmo the player with GetPlayerPos.
Next to that you must set the position where you want to spawn with SetPlayerPos.

All the functions you can find at SAMP Wiki.
Try it and when you have problems post here.
You don't get it. At all. Yeah /tune setplayerpos to teleport to spots, but, im trying to figure out this >. Say they have an ELEGY. It sends them to wheel arch, if they have a banshee, it sends them to regular tranfender.. WITHOUT making 2-3 to tune commands..


Re: /tune - LTomi - 24.06.2010

You can get the model ID (NOT the vehicle ID!) of player's vehicle by GetPlayerVehicleModel and send him or her to the appropriate tuning shop by checking if the vehicle is tunable in which shop. You can also send them a warning message if their vehicle is not tunable.


Re: /tune - iLcke - 24.06.2010

Quote:
Originally Posted by LTomi
You can get the model ID (NOT the vehicle ID!) of player's vehicle by GetPlayerVehicleModel and send him or her to the appropriate tuning shop by checking if the vehicle is tunable in which shop. You can also send them a warning message if their vehicle is not tunable.
thank you