17.05.2013, 16:50
Queria passar esse comando pra SendClientMessage
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
new DialogHugo[1500];
//SendClientMessage(playerid, COLOR_WHITE, "|__________________[ Admins Online ]__________________|");
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 = "Sub/Moderador";
}
if(PlayerInfo[i][pAdmin] == 2)
{
lolz = "Moderador";
}
if(PlayerInfo[i][pAdmin] == 3)
{
lolz = "Auxiliar";
}
if(PlayerInfo[i][pAdmin] == 4)
{
lolz = "Sub/Master";
}
if(PlayerInfo[i][pAdmin] == MASTER)
{
lolz = "Master";
}
if(PlayerInfo[i][pAdmin] == SUB_GERENTE)
{
lolz = "Sub/Gerente";
}
if(PlayerInfo[i][pAdmin] == GERENTE)
{
lolz = "Gerente";
}
if(PlayerInfo[i][pAdmin] == SUB_DONO)
{
lolz = "Sub/Dono";
}
if(PlayerInfo[i][pAdmin] == DONO)
{
lolz = "Dono";
}
if(PlayerInfo[i][pAdmin] == Dono_Hoster)
{
lolz = "Dono/Hoster";
}
if(PlayerInfo[i][pAdmin] == Dono_Scripter)
{
lolz = "Dono/Scripter";
}
if(away[i] == 0)
{
if(admtrampando[i] == 1)
{
format(string, 128, "{98F5FF}%s {FFFFFF}[%s] {98F5FF}(Trabalhando)\n", sendername, lolz);
strcat(DialogHugo,string);
}
else
{
format(string, 128, "{98F5FF}%s {FFFFFF}[%s] {9AFF9A}(Jogando)\n", sendername, lolz);
strcat(DialogHugo,string);
}
}
else
{
format(string, 128, "{98F5FF}%s {FFFFFF}[%s] {FF4040}(Ausente)\n", sendername, lolz);
strcat(DialogHugo,string);
}
ShowPlayerDialog(playerid, 8789, DIALOG_STYLE_MSGBOX, "Administradores Online", DialogHugo, "Fechar", "");
}
}
}
return true;
}