SA-MP Forums Archive
/ban CMD help - 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: /ban CMD help (/showthread.php?tid=136570)



/ban CMD help - NiiRV4N4 - 25.03.2010

How can I make a simple /ban command without logging into /rcon and just being a normal admin like a level 1 admin?


Re: /ban CMD help - Correlli - 25.03.2010

Learn how to script in PAWN or search for an existing /ban command.


Re: /ban CMD help - russo666 - 25.03.2010

yup you need to learn how to script for create an admin system and make the ban command.

you can search for an admin system and learn from it.

use this for example -> http://forum.sa-mp.com/index.php?topic=160724.0

easy to understand.


Re: /ban CMD help - NiiRV4N4 - 25.03.2010

I tryed using other /ban commands. They don't work, obviously.


Re: /ban CMD help - MaykoX - 25.03.2010

1. You'll need an Administrator FS. If you don't have that get one. (Because i guess you have no admin scripted in..)
2. I guess in all administrator FS's you get an /ban cmd...

You can use search for some good FS's


Re: /ban CMD help - Calgon - 25.03.2010

This may sound complex, for you being new and all.

Create an array (which will store the player's admin level), save it upon login/logoff (you should create some kind of password protector for this) and load it upon login and unload it upon logoff.

Then, for your ban command it's simple. You'll be able to use a simple 1 line if statement to detect their admin level, for example:

pawn Код:
if( AdminLevel[playerid] == 69 )
Then you just have to execute the Ban() function.


Re: /ban CMD help - NiiRV4N4 - 25.03.2010

I don't want to use an admin filterscript.