Liebe Community,
Ich habe vor einiger zeit einen /admins befehl erstellt. Nun will ich ein Dialog dadraus machen, aber weiß nicht wie ich das mache.
Der vorherige Befehl:
if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "______________ Admins Online ______________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "* {FFFF00}Supporter{FFFFFF}: %s [%d]", sendername,i);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "* {33CC44}Moderator{FFFFFF}: %s [%d]", sendername,i);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "* {0000FF}Administrator{FFFFFF}: %s [%d]", sendername,i);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 4)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "* {B40431}Head Administrator{FFFFFF}: %s [%d]", sendername,i);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 1336)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "* {01DFD7}Manager{FFFFFF}: %s [%d]", sendername,i);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 1337)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "* {DF0101}Stellv. Projektleiter{FFFFFF}: %s [%d]", sendername,i);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 1338)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "* {FF0000}Projektleiter{FFFFFF}: %s [%d]", sendername,i);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
SendClientMessage(playerid, COLOR_WHITE, "______________ Admins Online ______________");
}
return 1;
}
wäre echt nett wenn ihr mir helfen könntet.
MFG
James.