Hallo,
hab mal eine frage also:
ich habe das:
if (strcmp(cmd, "/admins", true) == 0 strcmp(cmd, "/supporter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GREEN, "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),"Praktikant Level 1: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Praktikant Level 2: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Supporter Level 1: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] == 4)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Supporter Level 2: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] == 5)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Supporter Level 3: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] == 6)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Administrator: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] == 7)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Fraktions-/Leaderverwalter: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] ==
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Serververwaltung: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] == 9)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Full Admin: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pAdmin] == 10)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"[RGR]Teamleiter/in: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
if(PlayerInfo[i][pAdmin] == 2000)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"[RGR] Server Owner: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, RED, string);
}
if(PlayerInfo[i][pAdmin] == 2001)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"[RGR] Server Owner & Spendenverwalter: %s Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, COLOR_GOLD, string);
}
}
}
}
return 1;
}
Ins Script eingebaut,an der richtigen stelle.
nur wen ich ingame /admins machen kommt zwar adminsoniline: aber keine name der admins
Woran liegt es ich habe nur das og. eingefügt.
tmt