Guten Abend, Community.
Ich habe leider heut zu tage ein Problem mit dem RGR Gangfight wen man ein Gangfight Startet & dan off geht, Geht das Gangfight system aus. "-255"
forward GW_OnPlayerDisconnect(playerid);
public GW_OnPlayerDisconnect(playerid){
for(new fs;fs<sizeof(FightSystem);fs++){
if(FightSystem[fs][fsAttackFaction] != -255 && FightSystem[fs][fsFightTime]){
if(FightSystem[fs][fsCTF][0] != -255 && FightSystem[fs][fsCTF][0] == playerid){
new fsName[MAX_PLAYER_NAME];
GetPlayerName(FightSystem[fs][fsCTF][0],fsName,MAX_PLAYER_NAME);
new fsText[128];
format(fsText,sizeof(fsText),">>> Fight <<< | %s hat es nicht geschafft die Flagge zu erobern!",fsName);
for(new i;i<MAX_PLAYERS;i++){
if(IsPlayerConnected(i)){
if(GetPlayerFaction(i) == FightSystem[fs][fsOwnerFaction] || GetPlayerFaction(i) == FightSystem[fs][fsAttackFaction]){
PlayerPlaySound(i,1058,0.0,0.0,0.0);
SendClientMessage(i,FS_COL_YELLOW,fsText);
}
}
}
FightSystem[fs][fsCTF][0] = -255;
FightSystem[fs][fsCTF][1] = 0;
FightSystem[fs][fsCTF][2] = 0;
}
if(GetPVarInt(playerid,"Spawned")==1){
GangZoneStopFlashForPlayer(playerid,FightSystem[fs][fsZoneID]);
if(GetPlayerFaction(playerid) == FightSystem[fs][fsOwnerFaction] || GetPlayerFaction(playerid) == FightSystem[fs][fsAttackFaction]){
TextDrawHideForPlayer(playerid,Fight);
TextDrawHideForPlayer(playerid,FightUnderline);
TextDrawHideForPlayer(playerid,FightSystem[fs][fsWinFaction]);
TextDrawHideForPlayer(playerid,FightSystem[fs][fsLoseFaction]);
TextDrawHideForPlayer(playerid,FightSystem[fs][fsWinKills]);
TextDrawHideForPlayer(playerid,FightSystem[fs][fsLoseKills]);
TextDrawHideForPlayer(playerid,FightSystem[fs][fsTime]);
}
}
}GangZoneHideForPlayer(playerid,FightSystem[fs][fsZoneID]);
}DeletePVar(playerid,"Spawned");
return 1;
}