Guten Tag.
Undzwar funktioniert mein /members Befehl nicht ganz.
Wenn ich mich Leader mache, so kommt der Name.
Jedoch wenn ich jemanden invite, so steht es bei mir drin das er Rank 13 sei.
Wenn ich dann /giverank [ID] 1 mache.
Und ich geh auf /members
Dann steh ich mit Rang 13 drin.
So sieht es bei mir aus:
Code
if(strcmp(cmd,"/members",true)==0)
{
if(IsPlayerConnected(playerid))
{
new teamnumber;
if (PlayerInfo[playerid][pLeader] != 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pLeader] == 12) teamnumber = PlayerInfo[playerid][pLeader];
else if (PlayerInfo[playerid][pMember] != 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pMember] == 11) teamnumber = PlayerInfo[playerid][pMember];
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein teil eines Teams!");
return 1;
}
SendClientMessage(playerid, 0x808000AA, "**Members Online**");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, sizeof(string), "");
if (PlayerInfo[i][pLeader] != 1 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pLeader] == 3 || PlayerInfo[i][pLeader] == 4 || PlayerInfo[i][pLeader] == 5 || PlayerInfo[i][pLeader] == 6 || PlayerInfo[i][pLeader] == 7 || PlayerInfo[i][pLeader] == 8 || PlayerInfo[i][pLeader] == 9 || PlayerInfo[i][pLeader] == 10 || PlayerInfo[i][pLeader] == 11) format(string, sizeof(string), "%s (Leader)",sendername);
else if (PlayerInfo[i][pMember] != 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 5 || PlayerInfo[i][pMember] == 6 || PlayerInfo[i][pMember] == 7 || PlayerInfo[i][pMember] == 8 || PlayerInfo[i][pMember] == 9 || PlayerInfo[i][pMember] == 10 || PlayerInfo[i][pMember] == 11) format(string, sizeof(string), "%s, Rang: %d.",sendername, PlayerInfo[i][pRank]);
if (strlen(string) > 1) SendClientMessage(playerid, 0xF5DEB3AA, string);
}
}
}
return 1;
}
Alles anzeigen
Wenn ich diese Person dann uninvite, dann /members mache dann steht die Person bei mir noch drin.
Auch wenn ich ihn /makeleader ID 0 mache, etc.