SA-MP Forums Archive
Quick Questiion - 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)
+--- Thread: Quick Questiion (/showthread.php?tid=631525)



Quick Questiion - 1fret - 31.03.2017

Ok i want to make something like this which connects two teleports together, so say i enter from part a it will tp me to part b and when i enter at part b it tp me to part a. So i would make a code like /createtp which will create the textlabel below and give it a ID as shown, now i think i can manage that but i just need some guidance or link to a tutorial or some code that you would use.

Something like this:





I'M NOT REQUESTING A SCRIPT



Re: Quick Questiion - AndreiWow - 31.03.2017

Well.. uh
You can add three options to the command, like:
/createtp enter/exit/confirm

If the admin types /createtp enter it will get his locatio and save them in a variable then the admin will go at the /exit point and type /createtp exit which again will save his coords. When the admin is done he will type /createtp confirm and everything will be saved, clear the variables and done.

How are you saving those? MySQL?


Re: Quick Questiion - 1fret - 31.03.2017

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
Well.. uh
You can add three options to the command, like:
/createtp enter/exit/confirm

If the admin types /createtp enter it will get his locatio and save them in a variable then the admin will go at the /exit point and type /createtp exit which again will save his coords. When the admin is done he will type /createtp confirm and everything will be saved, clear the variables and done.

How are you saving those? MySQL?
Im thinking of using y_ini