Hallo Leute,
Ist es Möglich, eine Adminliste zu machen, wo auch Admins angezeigt werden, die nichtmal Online sind?
Hier ein Befehl:
if (strcmp(cmd, "/alladmins", true) == 0 || strcmp(cmd, "/allsupporter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, " ");
SendClientMessage(playerid, COLOR_GRAD1, " Admins und Supporter:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," %d* Admin: %s[%d] Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pSupporter] >=1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," %d* Supporter: %s[%d] Nummer: %d",PlayerInfo[i][pSupporter],sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pSupporter] == 6)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," %d* Admin: %s[%d] Nummer: %d",PlayerInfo[i][pSupporter],sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] >= 2000)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," %d* Projektleiter: %s[%d] Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
MfG