#1

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?
Reply
#2

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.
Reply
#3

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..
Reply
#4

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.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)