Begin tuning system

This commit is contained in:
hydrant
2018-10-21 21:45:11 +02:00
parent 604229210e
commit 618c8cba28
5 changed files with 72 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ using GTANetworkAPI;
using Microsoft.EntityFrameworkCore;
using reallife_gamemode.Model;
using reallife_gamemode.Server.Entities;
using reallife_gamemode.Server.Managers;
/**
* @overview Life of German Reallife - Main Class (Main.cs)
@@ -25,6 +26,8 @@ namespace reallife_gamemode
NAPI.Server.SetDefaultSpawnLocation(DEFAULT_SPAWN_POSITION, DEFAULT_SPAWN_HEADING);
NAPI.Server.SetAutoSpawnOnConnect(false);
TuningManager.AddTuningGarage(new Vector3(-341, -134, 38.5), new Vector3(-334, -143, 41));
using (var context = new DatabaseContext())
{
context.Bans.FirstOrDefault();
@@ -34,5 +37,8 @@ namespace reallife_gamemode
context.SaveChanges();
}
}
[Command("dim")]
public void dim(Client player) => player.SendChatMessage(player.Dimension.ToString());
}
}