SA-MP Forums Archive
[HELP] Range ban - 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: [HELP] Range ban (/showthread.php?tid=95771)



[HELP] Range ban - Zothuron - 05.09.2009

Hey againnn

Now i've scripted my own admin script which works perfectly.
Except theres a flaw with the /banip command.

Using /banip you can range ban - 11.222.*.*
But because of this it also allows admins to /banip *.*.*.*

Now i could just make a rule where you are not allowed to range-ban the ip "*.*.*.*" (since that'll ban everyone)
but even with that said i still want to make sure that no-one can range-ban *.*.*.*.

I've seen it done before so it is possible, i just don't know how.

So basically what i want help with is to know if there is a way to stop people from banning the ip "*.*.*.*".
Can someone help me? :P

Thanks.


Re: [HELP] Range ban - ilikepie2221 - 05.09.2009

Maybe use strcmp and if that's true, just "return 1;" ?


Re: [HELP] Range ban - Zothuron - 05.09.2009

Quote:
Originally Posted by ilikepie2221
Maybe use strcmp and if that's true, just "return 1;" ?
True, never thought of that, thanks xD.
Now i have it to auto-ban any admin that breaks this rule

Quote:
Originally Posted by Seif_ [adream-rp.com
]
Or get trustable admins...
Lol


Re: [HELP] Range ban - Burridge - 05.09.2009

Or, don't tell your admins they can do that?


Re: [HELP] Range ban - darkrider366 - 05.09.2009

or, Just use if and find *.*.*.* and return a comment saying, Nice try admin fucker.
ban();
It's So easy.