Add changes
This commit is contained in:
@@ -1,12 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using ReallifeGamemode.Server.Core.API;
|
||||
using ReallifeGamemode.Server.Types;
|
||||
|
||||
namespace ReallifeGamemode.Server.Core.Menus
|
||||
{
|
||||
internal class PoliceDepartment : Script
|
||||
{
|
||||
|
||||
|
||||
public PoliceDepartment()
|
||||
{
|
||||
// Marker position: 440.869 -981.045 30.689
|
||||
|
||||
CreateVisuals();
|
||||
}
|
||||
|
||||
private void CreateVisuals()
|
||||
{
|
||||
Position pos = new Position(440.869, -981.045, 30.689);
|
||||
|
||||
Api.TextLabel.CreateTextLabel("Polizeirevier\n\nDrücke ~y~E~s~, um das Menü zu öffnen", pos, 20f, 1.3f, Font.ChaletLondon, Color.White);
|
||||
Api.Marker.CreateMarker(MarkerType.VerticalCylinder, pos.Subtract(new Position(0, 0, 1.5)), new Position(), new Position(), 1f, new Color());
|
||||
IColShape colShape = Api.ColShape.CreateSphere(pos.Subtract(new Position(0, 0, 1.5)), 3f);
|
||||
|
||||
colShape.OnEntityEnter += OnPlayerEnterPoliceDepartment;
|
||||
colShape.OnEntityExit += OnPlayerExitPoliceDepartment;
|
||||
}
|
||||
|
||||
private void OnPlayerEnterPoliceDepartment(IColShape colShape, IPlayer player)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void OnPlayerExitPoliceDepartment(IColShape colShape, IPlayer player)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user