fix
This commit is contained in:
@@ -251,14 +251,14 @@
|
|||||||
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 (this._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 (this._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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user