.amx not possible on that 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: .amx not possible on that IP.. (
/showthread.php?tid=169632)
.amx not possible on that IP.. -
rbN. - 20.08.2010
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..
Re: .amx not possible on that IP.. -
Mujib - 20.08.2010
public OnFilterScriptInit()
{
new current = GetServerVarAsString("bind");
new allowed = "127.0.0.1";
if(current != allowed) return 0;
}
Re: .amx not possible on that IP.. -
killer98p - 20.08.2010
Nevermind.(Message deleted
)
Re: .amx not possible on that IP.. -
rbN. - 20.08.2010
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..
Re: .amx not possible on that IP.. -
rbN. - 20.08.2010
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?