Ich habe ein Problem, undzwar habe ich das mit dem adminRang gemacht das die Adminränge in einem stock angezeigt werden und über spielt werden.
Und ich wollte wissen wie ich das machen kann, weil wenn ich /admins mache steht da überall Projektleiter: stan.brady
Und wenn ein user das macht steht da User: stan.brady kann mir jemand helfen?
Der Code von /admins:
if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Teamliste:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pSupporter] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Supporter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pSupporter] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Supporter %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 1337)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 1338)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 2000)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 2001)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[i][pAdmin] == 2002)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
}
return 1;
}