Added Faction Color to Player Blips for Trucker, Ballas and Grove.

This commit is contained in:
Lukas Moungos
2019-12-15 13:52:06 +01:00
parent 9eac853a32
commit c90420ec16
6 changed files with 87 additions and 8 deletions

View File

@@ -125,10 +125,38 @@ namespace ReallifeGamemode.Server.Gangwar
this.takeOver(this.Owner);
}
timerCount += 1;
if(timerCount >= 69)
if(timerCount >= 60) //change to 900 before release
{
this.timer.Stop();
this.timer = null;
if(this.Def_Score > this.Att_Score)
{
this.takeOver(this.Owner);
this.Att_Score = 0;
foreach (Client gangwarPlayer in this.playerInGangwar)
{
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, 0, 0);
}
}else if(this.Def_Score < this.Att_Score)
{
this.takeOver(this.Attacker);
this.Def_Score = 0;
foreach (Client gangwarPlayer in this.playerInGangwar)
{
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, 0, 0);
}
return;
}
else if(this.Def_Score == this.Att_Score)
{
this.takeOver(this.Attacker);
this.Def_Score = 0;
foreach (Client gangwarPlayer in this.playerInGangwar)
{
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, 0, 0);
}
return;
}
}
}