03.07.2012, 22:02
Ajuda eu a por /admins em sendclientmessage e aparecer todos admins online pq esse code nao aparece D::::
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid, 0xFFF0F0AA, "|___________{FFD900}Admins Online{FFFFFF}___________|");
new stringadms[2000];
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[20];
if(PlayerInfo[i][pAdmin] == 1)
{
lolz = "Divulgador";
}
if(PlayerInfo[i][pAdmin] == 2)
{
lolz = "Divulgador";
}
if(PlayerInfo[i][pAdmin] == 3)
{
lolz = "Moderador";
}
if(PlayerInfo[i][pAdmin] == 4)
{
lolz = "Moderador 2";
}
if(PlayerInfo[i][pAdmin] == 5)
{
lolz = "Master";
}
if(PlayerInfo[i][pAdmin] == 6)
{
lolz = "Sub/Gerente";
}
if(PlayerInfo[i][pAdmin] == 7)
{
lolz = "Gerente";
}
if(PlayerInfo[i][pAdmin] == 8)
{
lolz = "Sub-Dono";
}
if(PlayerInfo[i][pAdmin] == 9)
{
lolz = "Dono/Fundador";
}
if(PlayerInfo[i][pAdmin] == 10)
{
lolz = "Dono/Scripter";
}
if(away[i] == 0)
{
if(admtrampando[i] == 1)
{
format(stringadms, sizeof(stringadms), "%s\n{98F5FF}%s {FFFFFF}| Nivel: {FF69B4}[%s] {FF0000}(Trabalhando)", stringadms,sendername, lolz);
SendClientMessage(playerid, COR_ADMIN, string);
}
else
{
format(stringadms, sizeof(stringadms), "%s\n{98F5FF}%s {FFFFFF}| Nivel: {FF69B4}[%s] {FFFF00}(Jogando)",stringadms, sendername, lolz);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
else
{
format(stringadms, sizeof(stringadms), "%s\n{98F5FF}%s {FFFFFF}| Nivel: {FF69B4}[%s] {FF7F00}[Ausente]",stringadms, sendername, lolz);
SendClientMessage(playerid, COLOR_WHITE, string);
}
SendClientMessage(playerid,-1,stringadms);
}
}
}
return 1;
}