bissl formattiert

This commit is contained in:
hydrant
2020-05-10 22:54:18 +02:00
parent 914f2f9447
commit 2c648d52dd
105 changed files with 8184 additions and 8184 deletions

View File

@@ -13,29 +13,29 @@ using ReallifeGamemode.Server.Extensions;
namespace ReallifeGamemode.Server.Managers
{
public class LoadManager : Script
{
[ServerEvent(Event.ResourceStart)]
public void OnResourceStart()
{
[ServerEvent(Event.ResourceStart)]
public void OnResourceStart()
using (var dbContext = new DatabaseContext())
{
foreach (SavedBlip b in dbContext.Blips)
{
using (var dbContext = new DatabaseContext())
{
foreach (SavedBlip b in dbContext.Blips)
{
if (b.Active == true)
{
NAPI.Blip.CreateBlip((uint)b.Sprite, new Vector3(b.PositionX, b.PositionY, b.PositionZ), b.Scale,
b.Color, b.Name, b.Alpha, b.DrawDistance, b.ShortRange, (short)b.Rotation, b.Dimension);
}
}
foreach (ServerVehicle veh in dbContext.ServerVehicles)
{
if (!veh.Active) continue;
Vehicle current = veh.Spawn();
TuningManager.ApplyTuningToServerVehicle(veh);
}
}
if (b.Active == true)
{
NAPI.Blip.CreateBlip((uint)b.Sprite, new Vector3(b.PositionX, b.PositionY, b.PositionZ), b.Scale,
b.Color, b.Name, b.Alpha, b.DrawDistance, b.ShortRange, (short)b.Rotation, b.Dimension);
}
}
foreach (ServerVehicle veh in dbContext.ServerVehicles)
{
if (!veh.Active) continue;
Vehicle current = veh.Spawn();
TuningManager.ApplyTuningToServerVehicle(veh);
}
}
}
}
}