Code formatiert
This commit is contained in:
@@ -73,7 +73,8 @@ namespace ReallifeGamemode.Server.Events
|
||||
if (GlobalHelper.CustomJoinMessages.ContainsKey(player.SocialClubName))
|
||||
{
|
||||
ChatService.BroadcastAdmin("!{#FFFF00}*** " + GlobalHelper.CustomJoinMessages[player.SocialClubName] + " [ID: " + player.Handle.Value + "] (" + user.AdminLevel.GetName() + ")", AdminLevel.TEAM);
|
||||
} else if (user.IsAdmin(AdminLevel.TEAM))
|
||||
}
|
||||
else if (user.IsAdmin(AdminLevel.TEAM))
|
||||
{
|
||||
ChatService.BroadcastAdmin("!{#FFFF00}*** " + user.Name + " [ID: " + player.Handle.Value + "]" + " hat sich als " + user.AdminLevel.GetName() + " eingeloggt!", AdminLevel.TEAM);
|
||||
}
|
||||
|
||||
@@ -120,7 +120,8 @@ namespace ReallifeGamemode.Server.Gangwar
|
||||
if (this.Def_Score <= 0)
|
||||
{
|
||||
this.takeOver(this.Attacker);
|
||||
} else if (this.Att_Score <= 0)
|
||||
}
|
||||
else if (this.Att_Score <= 0)
|
||||
{
|
||||
this.takeOver(this.Owner);
|
||||
}
|
||||
@@ -137,7 +138,8 @@ namespace ReallifeGamemode.Server.Gangwar
|
||||
{
|
||||
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, 0, 0);
|
||||
}
|
||||
}else if(this.Def_Score < this.Att_Score)
|
||||
}
|
||||
else if (this.Def_Score < this.Att_Score)
|
||||
{
|
||||
this.takeOver(this.Attacker);
|
||||
this.Def_Score = 0;
|
||||
@@ -178,7 +180,8 @@ namespace ReallifeGamemode.Server.Gangwar
|
||||
}
|
||||
}
|
||||
|
||||
if(playerInside.Find(c => c == client) == null) {
|
||||
if (playerInside.Find(c => c == client) == null)
|
||||
{
|
||||
playerInside.Add(client);
|
||||
client.SetData("GotInsideOfTurf", true);
|
||||
}
|
||||
|
||||
@@ -233,7 +233,8 @@ namespace ReallifeGamemode.Server.Managers
|
||||
{
|
||||
for (int i = 0; i <= vItem.Amount; i++)
|
||||
{
|
||||
if(GetUserInventoryWeight(client) + (iItem.Gewicht * i) > 40000) {
|
||||
if (GetUserInventoryWeight(client) + (iItem.Gewicht * i) > 40000)
|
||||
{
|
||||
vItem.Amount = i - 1;
|
||||
break;
|
||||
}
|
||||
@@ -621,7 +622,8 @@ namespace ReallifeGamemode.Server.Managers
|
||||
if (fItem.Amount > amount)
|
||||
{
|
||||
fItem.Amount -= amount;
|
||||
}else if(fItem.Amount == amount)
|
||||
}
|
||||
else if (fItem.Amount == amount)
|
||||
{
|
||||
context.UserItems.Remove(fItem);
|
||||
}
|
||||
|
||||
@@ -203,7 +203,8 @@ namespace ReallifeGamemode.Server.Wanted
|
||||
if (((int)(user.JailTime / 60)) == 0 && user.JailTime != 0)
|
||||
{
|
||||
timeMinutes = 1;
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
timeMinutes = (int)(user.JailTime / 60);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user