wie wird dein Admin/Clanmember definiert? z.b. pAdmin
hier ein ausschnit aus meinem edit /admins
if (strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid, COLOR_BLUE, "GDR Team Mitglieder Online");
new i = 0, aname[257];
for(; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] == 2000)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "ServerOwner: %s", aname);
SendClientMessage(playerid, COLOR_GREY, string);
}
else if(PlayerInfo[i][pAdmin] == 1339)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "ServerOwner: %s", aname);
SendClientMessage(playerid, COLOR_GREY, string);
}
else if(PlayerInfo[i][pAdmin] == 1338)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "ServerOwner: %s", aname);
SendClientMessage(playerid, COLOR_GREY, string);
}
else if(PlayerInfo[i][pAdmin] == 1337)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "ServerManager: %s", aname);
SendClientMessage(playerid, COLOR_GREY, string);
}
else if(PlayerInfo[i][pAdmin] == 4)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "SuperAdmin: %s", aname);
SendClientMessage(playerid, COLOR_GREY, string);
}
else if(PlayerInfo[i][pAdmin] == 3)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Administrator: %s", aname);
SendClientMessage(playerid, COLOR_GREY, string);
}
else if(PlayerInfo[i][pAdmin] == 2)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "SuperModerator: %s", aname);
SendClientMessage(playerid, COLOR_GREY, string);
}
else if(PlayerInfo[i][pAdmin] == 1)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Moderator: %s", aname);
SendClientMessage(playerid, COLOR_GREY, string);
}
else if(PlayerInfo[i][pSupporter] == 1)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "ClanMember: %s", aname);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
return 1;
}