04.09.2009, 13:38
Hey, I was wondering, what exactly is the "bind" feature you can use in server.cfg and what does it do? I've read the wiki, but I'm still really confused.
Thanks
Thanks
Originally Posted by https://sampwiki.blast.hk/wiki/Server.cfg
bind - Force the server to use a specific IP on a server. This IP must match one assigned to a network card on the server. This is useful for running multiple servers on the same port on the same box. However, there is an issue with announce where the correct IP is not sent to the master list, rather the primary IP of the server is sent.
|
Originally Posted by Don Correlli
What is hard to understand?
Quote:
|
I just don't understand what its used for or how to use it. |
new ip[16];
GetServerVarAsString("bind", ip, sizeof (ip));
if (!ip[0] || strcmp(ip, "127.0.0.1"))
{
for (;;)
{
printf("Vortex Roleplay is a private script. Don't try steal my script.");
}
}