ocmd:admins(playerid,params[])
{
new name[MAX_PLAYER_NAME];
for(new i=0;i<GetMaxPlayers();i++)
{
new string[128];
GetPlayerName(i,name,sizeof(name));
switch(IsPlayerAnAdmin(i))
{
case 0:{ break; }
case 1:{ format(string,sizeof(string),"Testsupporter: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
case 2:{ format(string,sizeof(string),"Supporter: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
case 3:{ format(string,sizeof(string),"ProSUP: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
case 4:{ format(string,sizeof(string),"Moderator: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
case 5:{ format(string,sizeof(string),"SupMOD: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
case 6:{ format(string,sizeof(string),"ProMOD: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
case 7:{ format(string,sizeof(string),"High Moderator: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
case 8:{ format(string,sizeof(string),"Admin: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
case 9:{ format(string,sizeof(string),"ProADM: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
case 10:{ format(string,sizeof(string),"High Admin: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
case 11:{ format(string,sizeof(string),"Stellv. Projektleiter: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
case 12:{ format(string,sizeof(string),"Projektleiter: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string); }
}
}
}
So könntest du das machen.. könntest das natürlich auch mit einem Stock und weniger Zeilen schreiben .. Aber jetzt gib mir mal bitte die Error Zeilen