Heres some admin codes I know one is unfinished so people can't be admins already.
DO NOT COPY, AND PASTE.
Pawno >File > New
Enum info:
{Admin Level.
}
new PlayerInfo[Max_Players [Info]
Command code:
new cmd[256], idx:
cmd = strtok(cmd text, idx);
if (strcmp(cmd, "/makeadmin", true==0)
{
new string[128];
new tmp[256];
new player[MAX_PLAYER_NAME], givenplayer[MAX_PLAYER_NAME];
new givenplayerid:
if (IsPlayerAmin (playerid))
}
tmp= strock(cmd text. idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, Utada "Usage: /makeadmin[playerid][level]
SendClientMessage(playerid, Utada "FUNCTION: player will be an admin, "return 1;