Hey
Undzwar bugt das Org system bei mir wenn man im org chat schreibt können das die anderen auch sehen.
if(strcmp("/g", cmd, true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pOrgaID] == -1)
{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist in keiner Organisation");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[84];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_BENUTZETEXT, "Benutze: /g [Chat Text]");
return 1;
}
if(strlen(result) > 70)
{
SendClientMessage(playerid, COLOR_BENUTZETEXT, "Deine Eingabe ist zu lang, Maximal 60 Zeichen");
return 1;
}
if(PlayerInfo[playerid][pOrgaID] != -1)
{
format(string, sizeof(string), " <%s> %s: %s", PlayerInfo[playerid][pOrgaName], sendername, result);
SendorgaMessage(PlayerInfo[playerid][pOrgaID], 0xD900D3FF, string);
return 1;
}
return 1;
}
return 1;
}
Und bei /org members zeigt er alle an
if(strcmp(x_nr,"Members", true) == 0)
{
if(PlayerInfo[playerid][pOrgaID] != -1)
{
SendClientMessage(playerid, 0x808000AA, "**Organisations Members Online**");
ForAllPlayers(i){
if(IsPlayerConnected(i)){
if(PlayerInfo[i][pOrgaID] == PlayerInfo[playerid][pOrgaID] && PlayerInfo[i][pOrgaID] != -1){
new jtext[20];
if(PlayerInfo[i][pJob] == 1) { jtext = "Detektiv"; }
else if(PlayerInfo[i][pJob] == 2) { jtext = "Anwalt"; }
else if(PlayerInfo[i][pJob] == 3) { jtext = "Hure"; }
else if(PlayerInfo[i][pJob] == 4) { jtext = "Drogendealer"; }
else if(PlayerInfo[i][pJob] == 5) { jtext = "Autodieb"; }
else if(PlayerInfo[i][pJob] == 6) { jtext = "Hacker"; }
else if(PlayerInfo[i][pJob] == 7) { jtext = "KFZ-Mechaniker"; }
else if(PlayerInfo[i][pJob] == 8) { jtext = "Taschedieb"; }
else if(PlayerInfo[i][pJob] == 9) { jtext = "Waffenhändler"; }
else if(PlayerInfo[i][pJob] == 10) { jtext = "Bauer"; }
else if(PlayerInfo[i][pJob] == 11) { jtext = "Hotdog-Verkäufer"; }
else if(PlayerInfo[i][pJob] == 14) { jtext = "Tuner"; }
else if(PlayerInfo[i][pJob] == 16) { jtext = "Trucker"; }
else if(PlayerInfo[i][pJob] == 17) { jtext = "Stadtreiniger"; }
else if(PlayerInfo[i][pJob] == 18) { jtext = "Pilot"; }
else if(PlayerInfo[i][pJob] == 19) { jtext = "Kurierfahrer"; }
else if(PlayerInfo[i][pJob] == 20) { jtext = "Müllmann"; }
else { jtext = "Arbeitslos"; }
GetPlayerName(i, sendername, sizeof(sendername));
format(string, sizeof(string), "ID: %d | %s | Tel. %d | Job: %s",i, sendername, PlayerInfo[i][pNummer],jtext);
SendClientMessage(playerid, COLOR_BEIGE, string);
}}}}
else
{
SendClientMessage(playerid, COLOR_BENUTZETEXT, "Du bist in keiner Organisation");
return 1;
}
return 1;
}
Danke im vorraus.