fix
This commit is contained in:
@@ -218,7 +218,7 @@
|
|||||||
setAttackBlip(bool) {
|
setAttackBlip(bool) {
|
||||||
var self = this;
|
var self = this;
|
||||||
if (bool) {
|
if (bool) {
|
||||||
self.attackBlip = mp.game.ui.addBlipForRadius(self.x, self.y, 1, 20);
|
self.attackBlip = mp.game.ui.addBlipForRadius(self.x, self.y, 1, 60);
|
||||||
mp.game.invoke(Natives.SET_BLIP_SPRITE, self.attackBlip, 378);
|
mp.game.invoke(Natives.SET_BLIP_SPRITE, self.attackBlip, 378);
|
||||||
mp.game.invoke(Natives.SET_BLIP_AS_SHORT_RANGE, self.attackBlip, false);
|
mp.game.invoke(Natives.SET_BLIP_AS_SHORT_RANGE, self.attackBlip, false);
|
||||||
|
|
||||||
@@ -251,15 +251,18 @@
|
|||||||
if ((!self._entered)) {
|
if ((!self._entered)) {
|
||||||
if (self.isInsideArea() && (self.isNearGround() == true)) {
|
if (self.isInsideArea() && (self.isNearGround() == true)) {
|
||||||
self._entered = true;
|
self._entered = true;
|
||||||
if (self._status == "attack")
|
if (self._status === "attack") {
|
||||||
mp.game.audio.playSoundFrontend(1, "Enter_Capture_Zone", "DLC_Apartments_Drop_Zone_Sounds", true);
|
mp.game.audio.playSoundFrontend(1, "Enter_Capture_Zone", "DLC_Apartments_Drop_Zone_Sounds", true);
|
||||||
|
}
|
||||||
|
|
||||||
mp.events.callRemote("Gangarea:Enter", JSON.stringify(self.id));
|
mp.events.callRemote("Gangarea:Enter", JSON.stringify(self.id));
|
||||||
}
|
}
|
||||||
} else if (self._entered == true) {
|
} else if (self._entered == true) {
|
||||||
if (!self.isInsideArea() || (self.isNearGround() == false)) {
|
if (!self.isInsideArea() || (self.isNearGround() == false)) {
|
||||||
self._entered = false;
|
self._entered = false;
|
||||||
if (self._status == "attack")
|
if (self._status === "attack") {
|
||||||
mp.game.audio.playSoundFrontend(1, "Exit_Capture_Zone", "DLC_Apartments_Drop_Zone_Sounds", true);
|
mp.game.audio.playSoundFrontend(1, "Exit_Capture_Zone", "DLC_Apartments_Drop_Zone_Sounds", true);
|
||||||
|
}
|
||||||
mp.events.callRemote("Gangarea:Leave", JSON.stringify(self.id));
|
mp.events.callRemote("Gangarea:Leave", JSON.stringify(self.id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ namespace ReallifeGamemode.Server.Gangwar
|
|||||||
a.TriggerEvent("CLIENT:win");
|
a.TriggerEvent("CLIENT:win");
|
||||||
}
|
}
|
||||||
this.Owner = FactionName;
|
this.Owner = FactionName;
|
||||||
ChatService.BroadcastFaction("~y~[GANGWAR] ~w~Deine Fraktion konnte erfolgreich das Gebiet ~g~" + getName() + "~w~ verteidigen.", dbContext.Factions.Where(f => f.Name == getOwner()).FirstOrDefault());
|
ChatService.BroadcastFaction("~y~[GANGWAR] ~w~Deine Fraktion konnte erfolgreich das Gebiet ~g~" + getName() + "~w~ erobern.", dbContext.Factions.Where(f => f.Name == getOwner()).FirstOrDefault());
|
||||||
Turfs turf = dbContext.Turfs.Where(t => t.Id == getId()).FirstOrDefault();
|
Turfs turf = dbContext.Turfs.Where(t => t.Id == getId()).FirstOrDefault();
|
||||||
turf.Owner = this.Owner;
|
turf.Owner = this.Owner;
|
||||||
turf.FactionId = dbContext.Factions.Where(f => f.Name == this.Owner).FirstOrDefault().Id;
|
turf.FactionId = dbContext.Factions.Where(f => f.Name == this.Owner).FirstOrDefault().Id;
|
||||||
|
|||||||
Reference in New Issue
Block a user