Admin Script help
#2

pawn Код:
if(!strcmp(cmdtext, "/admins"))
{
    new string[128], playername[MAX_PLAYER_NAME], text[40];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        GetPlayerName(i, playername, sizeof(playername));
        if(playerinfo[i][AdminLevel] == 1) { text = "Level 1" }
        if(playerinfo[i][AdminLevel] == 2) { text = "Level 2" }
        if(playerinfo[i][AdminLevel] == 3) { text = "Level 3" } // Etc. Add more if you have more levels.
    }
        format(string, sizeof(string), "%s: %s", text, playername);
        SendClientMessage(playerid, 0xFFFFFF, string);
    return 1;
}
Reply


Messages In This Thread
Admin Script help - by jonnyboy - 06.04.2011, 15:53
Re: Admin Script help - by Biesmen - 06.04.2011, 16:01
Re: Admin Script help - by jonnyboy - 06.04.2011, 16:19
Re: Admin Script help - by Biesmen - 06.04.2011, 17:01

Forum Jump:


Users browsing this thread: 2 Guest(s)