/ban CMD help
#1

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

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

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.
Reply
#4

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

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
Reply
#6

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.
Reply
#7

I don't want to use an admin filterscript.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)