Mein /members befehl spackt aber warum der zeigt alle user vom server an warum?
if(strcmp(cmdtext, "/members", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid,Hellblau,"Fraktions Member Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new rname[20],pID;
if(isPlayerInFrakt(playerid,1))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Cadett";}
case 2:{rname="Polizist";}
case 3:{rname="OffRoad Cop";}
case 4:{rname="Officer";}
case 5:{rname="CoLeader";}
case 6:{rname="Leader";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,2))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Agent";}
case 2:{rname="Professional Agent";}
case 3:{rname="Special Agent";}
case 4:{rname="Elite Agent";}
case 5:{rname="CoDirector";}
case 6:{rname="Director";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,3))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="";}
case 2:{rname="";}
case 3:{rname="";}
case 4:{rname="";}
case 5:{rname="CoDirector";}
case 6:{rname="Director";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,4))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Soldat";}
case 2:{rname="Unteroffizier";}
case 3:{rname="Oberoffizier";}
case 4:{rname="Hauptmann";}
case 5:{rname="Major";}
case 6:{rname="General";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,5))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Rettungshelfer";}
case 2:{rname="Rettungssanitäter";}
case 3:{rname="Rettungsassistent";}
case 4:{rname="Notarzt";}
case 5:{rname="Wachleiter";}
case 6:{rname="Leiter";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,6))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Neuling";}
case 2:{rname="UmweltMinister";}
case 3:{rname="Sekretär";}
case 4:{rname="StaatsMinister";}
case 5:{rname="Stellvertreter";}
case 6:{rname="Präsident";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,7))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Auszubildener";}
case 2:{rname="Taxineuling";}
case 3:{rname="Taxifahrer";}
case 4:{rname="Fahrdienstleiter";}
case 5:{rname="Dienstvorgesetzter";}
case 6:{rname="Firmenchef";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,8))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Praktikant";}
case 2:{rname="Reporter";}
case 3:{rname="Redaktionassistent";}
case 4:{rname="Tv-Moderator";}
case 5:{rname="Redakter";}
case 6:{rname="Chefredakter";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,9))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Azubi";}
case 2:{rname="Anwärter";}
case 3:{rname="Ortnungshüter";}
case 4:{rname="LeitenderBeamter";}
case 5:{rname="Ausbilder";}
case 6:{rname="Direktor";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,10))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Knecht";}
case 2:{rname="Associate";}
case 3:{rname="Soldier";}
case 4:{rname="Capo";}
case 5:{rname="Unterboss";}
case 6:{rname="Boss";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,11))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Knecht";}
case 2:{rname="Dealer";}
case 3:{rname="Smoker";}
case 4:{rname="Homie";}
case 5:{rname="O.G Nigger";}
case 6:{rname="BigBoss";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,12))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Forastero";}
case 2:{rname="Asociado";}
case 3:{rname="Soldato";}
case 4:{rname="JuntaCapo";}
case 5:{rname="BajoBoss";}
case 6:{rname="ElJefe";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,13))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="NuevoAmigo";}
case 2:{rname="Companero";}
case 3:{rname="Soldato";}
case 4:{rname="ElConseJero";}
case 5:{rname="LaViceJefe";}
case 6:{rname="ElJefe";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,14))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Azubi";}
case 2:{rname="Fahrlehrer";}
case 3:{rname="Fluglehrer";}
case 4:{rname="Ausbilder";}
case 5:{rname="CoInhaber";}
case 6:{rname="Inhaber";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,15))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Shestiorka";}
case 2:{rname="Lideri";}
case 3:{rname="Sovetnik";}
case 4:{rname="Vor";}
case 5:{rname="Zarj";}
case 6:{rname="Avtoritet";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,16))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Aussenseiter";}
case 2:{rname="Bambino";}
case 3:{rname="Soldier";}
case 4:{rname="Capo";}
case 5:{rname="Unterboss";}
case 6:{rname="Boss";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,17))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Wakashu";}
case 2:{rname="Kyodai";}
case 3:{rname="Gashira";}
case 4:{rname="Saiko";}
case 5:{rname="Komono";}
case 6:{rname="Oyabun";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,18))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="";}
case 2:{rname="";}
case 3:{rname="";}
case 4:{rname="";}
case 5:{rname="";}
case 6:{rname="";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,19))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="";}
case 2:{rname="";}
case 3:{rname="";}
case 4:{rname="";}
case 5:{rname="";}
case 6:{rname="";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,20))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="Knecht";}
case 2:{rname="Lehrling";}
case 3:{rname="Selbstmörder";}
case 4:{rname="Kamikaze Experte";}
case 5:{rname="Pyrotechniker";}
case 6:{rname="Al-Jihad";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
else if(isPlayerInFrakt(playerid,21))
{
switch(GetPVarInt(playerid,"Rank"))
{
case 1:{rname="";}
case 2:{rname="";}
case 3:{rname="";}
case 4:{rname="";}
case 5:{rname="";}
case 6:{rname="";}
}
new string[128];
format(string, 256, "%s: %s | ID: %i",RankName(playerid),SpielerName(i),pID);
SendClientMessage(playerid,Grau,string);
}
}
}
}
return 1;
}