How to make it so the server starts if the server is running on the right ip? - 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: How to make it so the server starts if the server is running on the right ip? (
/showthread.php?tid=492901)
How to make it so the server starts if the server is running on the right ip? -
Crypto20 - 06.02.2014
I want to make a script for my samp server and if someone were to steal my server and its not the right ip the samp-server.exe stops running and shuts the server off. If its the right ip the server starts and its defined through pawno.
Anyone know what i am talking about?
Re: How to make it so the server starts if the server is running on the right ip? -
Hoborific - 06.02.2014
in server.cfg add bind 127.0.0.1 //(ip here)
https://sampwiki.blast.hk/wiki/Server.cfg
you can also code this into the gamemode with GetServerVarAsString()