Guten Abend,
wenn ich /admins im spiel mache werde ich als Supporter Moderator Super Moderator usw.. angezeigt ich sollte eigl. nur als Server Leitung angzeigt werden mit 2000 Admin Level.
Was ist daran Falsch..?
Bitte hilfe!
Danke!
if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, " ");
SendClientMessage(playerid, COLOR_GRAD1, " Admins und Supporter wo Online sind:");
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] Tel-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] Tel-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] Tel-Nummer: %d",PlayerInfo[i][pSupporter],sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," %d* Supporter: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] >= 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," %d* Moderator: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] >= 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," %d* Super Moderator: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] >= 4)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," %d* Administrator: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] >= 1337)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," %d* Super Administrator: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] >= 1338)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," %d* Technische Leitung: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],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* Server Leitung: %s[%d] Tel-Nummer: %d",PlayerInfo[i][pAdmin],sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}