.amx not possible on that IP..
#1

Like in, you have a gamemode/filterscript, and somebody steals it.. Is there any possibility to do like, if you run that gamemode/script on that IP, it is online. If not, it quits itself..
Reply
#2

public OnFilterScriptInit()
{
new current = GetServerVarAsString("bind");
new allowed = "127.0.0.1";
if(current != allowed) return 0;
}
Reply
#3

Nevermind.(Message deleted )
Reply
#4

Quote:
Originally Posted by Mujib
Посмотреть сообщение
public OnFilterScriptInit()
{
new current = GetServerVarAsString("bind");
new allowed = "127.0.0.1";
if(current != allowed) return 0;
}
So like, this quits the server?

/edit:

above one doesnt work..
Reply
#5

Hi, I have this code now:

pawn Код:
new
        ip[16];
    new allowed[16];
    allowed = ("MAIIPWASHERE");
    GetServerVarAsString("bind", ip, sizeof (ip));
    if (!ip[0] || strcmp(ip, "MYIPWASHERE"))
    {
        for (;;)
        {
            printf("Don't steal my script!");
        }
    }
Problem is, when I use bind @ my server.cfg, I always get this:

Код:
[19:05:48] Unable to start server on ******:7777. Port in use?
Without the 'bind' it's all fine..
How to solve?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)