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.