Admin Script
#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


Messages In This Thread
Admin Script - by IvancheBG - 24.03.2011, 07:53
Re: Admin Script - by BASITJALIL - 24.03.2011, 08:04
Re: Admin Script - by PinkFloydLover - 24.03.2011, 09:02

Forum Jump:


Users browsing this thread: 1 Guest(s)