how to add
#1

If my server's max admin level is 6 how to increase to 10 can anyone say please help me with this problem
Reply
#2

What is your ADmin System ?
Reply
#3

Um, if you have a define with something like "MAX_ADMINLEVEL" I guess you'd change it to 10? If not, show your code...
Reply
#4

i am using my own system my gamemode is SATDM
Reply
#5

Send Me an Admin Command !
Reply
#6

Код:
CMD:admins(playerid,params[])
{
    new Count = 0;
    new n[MAX_PLAYER_NAME];
    new string[1000];
//    SendClientMessage(playerid, 0x00FF00FF, "__________|Admins|__________");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(PlayerInfo[i][Level] < 1) continue;
        GetPlayerName(i,n,sizeof(n));
        format(string,sizeof(string),"%sLevel %d: %s (ID: %d) - %s\n", string, PlayerInfo[i][Level], n, i, GetRankFromLevel(i));
        Count++;
    }
    if(Count == 0)
    {
        ShowPlayerDialog(playerid, 2,DIALOG_STYLE_MSGBOX, "online admins..", "No admins online", "ok", "");
        return 1;
    }
    ShowPlayerDialog(playerid, 2,DIALOG_STYLE_MSGBOX, "online admins..", string, "ok", "");
    return 1;
}
stock GetRankFromLevel(playerid)
{
    new Rank[40];
    switch(PlayerInfo[playerid][Level])
    {
        case 0:
        {
            Rank = "Regular Player";
        }
        case 1:
        {
            Rank = "Trial Administrator";
        }
        case 2:
        {
            Rank = "Junior Moderator";
        }
        case 3:
        {
            Rank = "Moderator";
        }
        case 4:
        {
            Rank = "Head Moderator";
        }
        case 5:
        {
            Rank = "Junior Administrator";
        }
        case 6:
        {
            Rank = "Administrator";
        }
        case 7:
        {
            Rank = "Senior Administrator";
        }
        case 8:
        {
            Rank = "Head Administrator";
        }
        case 9:
        {
            Rank = "Developer";
        }
        case 10:
        {
            Rank = "Head Developer";
        }
    }
    return Rank;
}
i added the rank but when i try it in the server its not working
Reply
#7

what you have to do is edditing and adding admin commands
like that PlayerInfo[playerid][Level] >= 1-10 and EDIT the SEtlevel command to = 10
Reply


Forum Jump:


Users browsing this thread: