43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
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)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|