15.11.2011, 22:30
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
new count = 0;
SendClientMessage(playerid, COLOR_GREEN, "____________________[ Admins em Serviзo ]____________________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
new admtext[64];
switch(PlayerInfo[i][pAdmin])
{
case 1337: admtext = "{00FF00}Dono";
case 10: admtext = "Administrador - Nнvel 10";
case 15: admtext = "Administrador - Nнvel 15";
case 2: admtext = "Game-Master - Nнvel 2";
case 5: admtext = "Game-Master - Nнvel 5";
case 1: admtext = "Game-Master - Nнvel 1";
default: admtext = "Moderador Nivel 1";
}
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && AdminDuty[i] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "%s - [ %s {FFFAFA}]", sendername, admtext);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
if(count == 0) SendClientMessage(playerid,COLOR_RED,"[INFO:] De momento nгo estб nenhum membro da Staff em serviзo.");
return SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________________________________");
}