messages related to joining/leaving/dm chating shows the admin ranks, but doesn't show the RCON one.
#3

Quote:
Originally Posted by ChuckyBabe
View Post
Code:
if(PlayerInfo[playerid][AdminLevel] > 0)
        {
            else if(IsPlayerAdmin(playerid))
            {
                admrank = "{FF0000}[RCON Admin]";
            }
            else
            {
                switch(PlayerInfo[playerid][AdminLevel])
                {
                    case 1: admrank = "{FFFF00}[Moderator]";
                    case 2: admrank = "{008000}[Administrator]";
                    case 3: admrank = "{3366FF}[Manager]";
                }
            }
            format(string, sizeof(string), "{A9A9A9}[{00FF00}+{A9A9A9}]{00FF00} %s {FFFFFF}%s (%d) {00FF00}has joined the server!", admrank, pname, playerid);
            SendClientMessageToAll(COLOR_LIME, string);
        }
        else
        {
            format(string, sizeof(string), "{A9A9A9}[{00FF00}+{A9A9A9}]{FFFFFF} %s (%d) {00FF00}has joined the server!", pname, playerid);
            SendClientMessageToAll(COLOR_LIME, string);
        }
    }
    else
    {
        format(string, sizeof(string), "{FFFFFF}Welcome, the account \"{FF0000}%s{FFFFFF}\" is not registered.\nIn order to play, you must register by typing a password below.", pname);
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "{FF0000}Registration", string, "Okay", "Quit");
        format(string, sizeof(string), "{A9A9A9}[{00FF00}+{A9A9A9}]{00FF00} \"{FFFFFF}%s{00FF00}\" (%d) has joined the server for the first time!", pname, playerid);
    }
    return 1;
}
just give it a shot
sorry for late response,

it has errors, here they are:

pawn Code:
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "if"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)