SA-MP Forums Archive
One IP Server. Different IP + GM = No Start - 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: One IP Server. Different IP + GM = No Start (/showthread.php?tid=491378)



One IP Server. Different IP + GM = No Start - MrTinder - 30.01.2014

So..That's my code:

pawn Код:
new ip[16];
    GetServerVarAsString("bind", ip, sizeof(ip));
    if(!strcmp(ip, "84.238.***.**"))
    {
        print("ERROR: You're not authorised to use this script.");
        SendRconCommand( "exit" );
    }
i have bind in my server.cfg but when i try to start the server it show

Код:
Unable to start server on 84.238.***.**:7777. Port in use?



Re: One IP Server. Different IP + GM = No Start - Jefff - 30.01.2014

Set full ip in .cfg

+

pawn Код:
new ip[16];
GetServerVarAsString("bind", ip, sizeof(ip));
if(ip[0] == '\0' || strcmp(ip, "84.238.", true, 7) != 0)
{
    print("ERROR: You're not authorised to use this script.");
    SendRconCommand( "exit" );
    return 0;
}



Re: One IP Server. Different IP + GM = No Start - MrTinder - 30.01.2014

Well i set it full just i hide it.Stills i got same error =]


Re: One IP Server. Different IP + GM = No Start - MrTinder - 30.01.2014

Still i can't make it?what's wronge with my code :X


Re: One IP Server. Different IP + GM = No Start - MrTinder - 30.01.2014

Can someone help me please?I need this rlly fast..


Re: One IP Server. Different IP + GM = No Start - MrTinder - 31.01.2014

Need some help..please guys


Re: One IP Server. Different IP + GM = No Start - PowerPC603 - 31.01.2014

Why do you even need such code?
Limiting your script to run on only your computer?

Don't release your script if you don't want other computers to be able to run your script.
And if you decide to release it anyway:
- either scripters will just remove that code (you have to include the full source anyway when releasing it)
- why release something others aren't able to use it


Re: One IP Server. Different IP + GM = No Start - MrTinder - 31.01.2014

I'm not going to release a free GM.I need it for my own gamemode.My hosting company got RAT on their machines and some of the mods got downloaded by hackers.That's why i need this code..I upload only .amx in my host.Please help me =]


Re: One IP Server. Different IP + GM = No Start - freeze98 - 24.08.2014

put bind [your ip] in your server config it works for me since im using that kind of security also for my server