Posts: 2,593
Threads: 34
Joined: Dec 2007
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;
}
Posts: 148
Threads: 29
Joined: Sep 2012
Reputation:
0
Well i set it full just i hide it.Stills i got same error =]
Posts: 148
Threads: 29
Joined: Sep 2012
Reputation:
0
Still i can't make it?what's wronge with my code :X
Posts: 148
Threads: 29
Joined: Sep 2012
Reputation:
0
Can someone help me please?I need this rlly fast..
Posts: 148
Threads: 29
Joined: Sep 2012
Reputation:
0
Need some help..please guys
Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
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
Posts: 148
Threads: 29
Joined: Sep 2012
Reputation:
0
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 =]
Posts: 36
Threads: 3
Joined: Sep 2013
Reputation:
0
put bind [your ip] in your server config it works for me since im using that kind of security also for my server