05.09.2009, 02:28
Someone tell me whats wrong, Complies no errors but doesnt show admins.
Quote:
if (strcmp(cmd, "/admins", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] List of online adminstrators"); for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 4) { new admtext[64]; if(PlayerInfo[playerid][pAdmin] == 4) { admtext = "level 4"; } else if(PlayerInfo[playerid][pAdmin] == 3) { admtext = "level 3"; } else if(PlayerInfo[playerid][pAdmin] == 2) { admtext = "level 2"; } else if(PlayerInfo[playerid][pAdmin] == 1) { admtext = "level 1"; } else { admtext = "level 1"; } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "%s %s", sendername,admtext); SendClientMessage(playerid, COLOR_ADMIN, string); } } } } return 1; } |