Admin Script
#1

How to make an admin script with admin command and e.t.c?
Reply
#2

https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript
Here you can find how to make a Adm Script
Reply
#3

I'll explain to you the very basics, this is without saving it to a file.

On top of your script add:
pawn Код:
new AdminLevel[MAX_PLAYERS];
This is the variable we are going to store your admin level in.

Then you need to make a command to set the admin level.

pawn Код:
if (strcmp("/password", cmdtext, true) == 0)
        {
            AdminLevel[playerid] = 5;
            return 1;
        }
This command makes the person that types, "/password", a level 5 admin.
Change "password", to a password of your choice.

And that's it. I wont go into creating commands like "/kick", and "/ban", you will need to search for a proper tutorial, there are hundreds in the tutorial section.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)