Connect from one server to another - 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: Connect from one server to another (
/showthread.php?tid=76782)
Connect from one server to another -
Newman - 06.05.2009
Hi,
i am currently working on two servers and the owner of this two servers wants to make a CMD, so that you can switch the server ingame. But i never heard that it is possible ^^
So i dont think that in PAWN its possible, but maybe in C++ as a plugin?
Please help, thanks
Re: Connect from one server to another -
HB - 06.05.2009
In pawn it is not possible, though you can make it in C++. You can make the application gta_sa.exe crash, and then connect to the new server..
Don't know if that can be done in C++ but I think it should be possible. I have no idea how.
Re: Connect from one server to another -
NeRoSiS - 06.05.2009
I think he means so you can change servers with out going out of the game it-self, so like im playing a stunt server I type /rp and it comes up with the default "connecting to RP" "Connectio established".
Would be cool, but I only think the devs with the source could do it, let's suggest that 0.3 should have a function like so =)
Re: Connect from one server to another -
Newman - 06.05.2009
hehe k, but maybe its a c++ guru there who knows the secret how to write it ^^
Re: Connect from one server to another -
ettans - 06.05.2009
Well, you basically disconnect the player from his/her current server, then open a new connection, with the input from a command, for example '
/connect 127.0.0.1:7777'. Not very hard to write in C++. Look around the forums and perhaps
SA:MP Plugin SDK.