All pastes #424103 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-04 16:05 UTC
rendered paste body
        if(strcmp(cmd, "/admins", true) == 0) // cmd line obviously
        {
        for (new i = 0; i < MAX_PLAYERS; i++) //checks for max players
        {
        if (Admins[i] == 1) // checks through max players to see which is mod/mod+/admin/beckzy
        {
        if ((IsPlayerConnected(i)) && Mod[i] == 1 || ModPlus[i] == 1 || Admin[i] == 1 || Beckzy[i] == 1) // checks to see if the mod/mod+/admin/beckzy is connected
        {
        SendClientMessage(playerid, COLOR_WHITE, "Current Admins Online"); // if they are this is the title of the message going out
        }
        if ((IsPlayerConnected(i)) && Mod[i] == 1 && ModPlus[i] != 1 && Admin[i] != 1 && Beckzy[i] != 1) //checks to see if the player(s) is/are a mod
        {
        GetPlayerName(i, sendername, sizeof(sendername)); //gets the moderator(s) name(s)
        format(string, sizeof(string), "%s - Moderator", sendername); // sends the moderator(s) name(s) to the player if he is a moderator
        SendClientMessage(playerid, COLOR_WHITE, string);
        }
        if ((IsPlayerConnected(i)) && Mod[i] == 1 && ModPlus[i] == 1 && Admin[i] != 1 && Beckzy[i] != 1) //checks to see if the player(s) is/are a modplus
        {
        GetPlayerName(i, sendername, sizeof(sendername)); gets the modplus(s) name(s)
        format(string, sizeof(string), "%s - Mod+", sendername); //sends the moderator(s) name(s) to the player if he is a modplus
        SendClientMessage(playerid, COLOR_WHITE, string);
        }
        if ((IsPlayerConnected(i)) && Mod[i] == 1 && ModPlus[i] == 1 && Admin[i] == 1 && Beckzy[i] != 1) //" "admin
        {
        GetPlayerName(i, sendername, sizeof(sendername)); //" "admin(s)
        format(string, sizeof(string), "%s - Admin", sendername); // admin
        SendClientMessage(playerid, COLOR_YELLOW, string);
        }
        if ((IsPlayerConnected(i)) && Mod[i] == 1 && ModPlus[i] == 1 && Admin[i] == 1 && Beckzy[i] == 1) //" " beckzy
        {
        GetPlayerName(i, sendername, sizeof(sendername)); //" " beckzy(s)
        format(string, sizeof(string), "%s - Key Admin", sendername); // beckzy
        SendClientMessage(playerid, COLOR_MEDIAMBLUE, string);
        return 1; }
        }
        else
        {
        if (Admins[i] != 1 && (IsPlayerConnected(i)) && Mod[i] != 1 && ModPlus[i] != 1 && Admin[i] != 1 && Beckzy[i] != 1) // if none of the connected players are mod/modplus/admin/beckzy
        {
        SendClientMessage(playerid, COLOR_RED, "There are currently no admins online!"); // tells the player that no admins are online }
    return 1; }
                }
        }