From eb801fce1a30c46455e6efb6f28aea4de4af7510 Mon Sep 17 00:00:00 2001 From: "michael.reiswich" Date: Tue, 19 Jan 2021 13:20:44 +0100 Subject: [PATCH] add help-command & eddit ahelp --- ReallifeGamemode.Client/Gui/ahelp.ts | 61 +++++++++ ReallifeGamemode.Client/Gui/introduction.ts | 2 +- ReallifeGamemode.Client/Gui/userhelp.ts | 44 +++++++ .../assets/css/helpcommand/style.css | 116 ++++++++++++++++++ .../{Introduciton.html => Introduction.html} | 0 .../assets/html/helpcommand/ahelp.html | 71 +++++++++++ .../assets/html/helpcommand/shelp.html | 47 +++++++ .../assets/html/helpcommand/userhelp.html | 45 +++++++ .../assets/js/Introduction/application.js | 18 --- .../assets/js/helpcommand/application.js | 7 ++ .../js/helpcommand/application_userhelp.js | 7 ++ ReallifeGamemode.Client/index.ts | 6 + .../Commands/AdminCommands.cs | 41 +------ .../Commands/UserCommands.cs | 6 + .../Managers/NewbieManager.cs | 17 --- 15 files changed, 414 insertions(+), 74 deletions(-) create mode 100644 ReallifeGamemode.Client/Gui/ahelp.ts create mode 100644 ReallifeGamemode.Client/Gui/userhelp.ts create mode 100644 ReallifeGamemode.Client/assets/css/helpcommand/style.css rename ReallifeGamemode.Client/assets/html/Introduction/{Introduciton.html => Introduction.html} (100%) create mode 100644 ReallifeGamemode.Client/assets/html/helpcommand/ahelp.html create mode 100644 ReallifeGamemode.Client/assets/html/helpcommand/shelp.html create mode 100644 ReallifeGamemode.Client/assets/html/helpcommand/userhelp.html create mode 100644 ReallifeGamemode.Client/assets/js/helpcommand/application.js create mode 100644 ReallifeGamemode.Client/assets/js/helpcommand/application_userhelp.js delete mode 100644 ReallifeGamemode.Server/Managers/NewbieManager.cs diff --git a/ReallifeGamemode.Client/Gui/ahelp.ts b/ReallifeGamemode.Client/Gui/ahelp.ts new file mode 100644 index 00000000..81d6720f --- /dev/null +++ b/ReallifeGamemode.Client/Gui/ahelp.ts @@ -0,0 +1,61 @@ +/** + * @overview Life of German Reallife - Gui ahelp + * @author MichaPlays + * @copyright (c) 2008 - 2021 Life of German + */ + +export default function ahelp(globalData: IGlobalData): void { + + var ahelpBrowser: BrowserMp = null; + + mp.events.add("showAhelp", () => { + + if (ahelpBrowser !== null) { + ahelpBrowser.destroy(); + ahelpBrowser = null; + globalData.InInput = false; + mp.gui.cursor.show(false, false); + mp.gui.chat.activate(true); + } + else if (!globalData.InInput) { + globalData.InInput = true; + ahelpBrowser = mp.browsers.new('package://assets/html/helpcommand/ahelp.html'); + mp.gui.chat.activate(false); + mp.gui.cursor.show(true, true); + + } + }); + + mp.events.add("removeAhelp", () => { + + if (ahelpBrowser == null) { + return; + } + else if (globalData.InInput) { + ahelpBrowser.destroy(); + ahelpBrowser = null; + globalData.InInput = false; + mp.gui.cursor.show(false, false); + mp.gui.chat.activate(true); + + } + }); + + mp.events.add("showShelp", () => { + + if (ahelpBrowser !== null) { + ahelpBrowser.destroy(); + ahelpBrowser = null; + globalData.InInput = false; + mp.gui.cursor.show(false, false); + mp.gui.chat.activate(true); + } + else if (!globalData.InInput) { + globalData.InInput = true; + ahelpBrowser = mp.browsers.new('package://assets/html/helpcommand/shelp.html'); + mp.gui.chat.activate(false); + mp.gui.cursor.show(true, true); + + } + }); +} \ No newline at end of file diff --git a/ReallifeGamemode.Client/Gui/introduction.ts b/ReallifeGamemode.Client/Gui/introduction.ts index aa96efdd..bea7d8fc 100644 --- a/ReallifeGamemode.Client/Gui/introduction.ts +++ b/ReallifeGamemode.Client/Gui/introduction.ts @@ -19,7 +19,7 @@ export default function Introduction(globalData: IGlobalData): void { } else if (!globalData.InInput) { globalData.InInput = true; - IntroductionBrowser = mp.browsers.new('package://assets/html/Introduction/Introduciton.html'); + IntroductionBrowser = mp.browsers.new('package://assets/html/Introduction/Introduction.html'); mp.gui.chat.activate(false); mp.gui.cursor.show(true, true); diff --git a/ReallifeGamemode.Client/Gui/userhelp.ts b/ReallifeGamemode.Client/Gui/userhelp.ts new file mode 100644 index 00000000..6985fc7e --- /dev/null +++ b/ReallifeGamemode.Client/Gui/userhelp.ts @@ -0,0 +1,44 @@ +/** + * @overview Life of German Reallife - Gui Introduction + * @author MichaPlays + * @copyright (c) 2008 - 2021 Life of German + */ + +export default function userhelp(globalData: IGlobalData): void { + + var userhelpBrowser: BrowserMp = null; + + mp.events.add("showUserhelp", () => { + + if (userhelpBrowser !== null) { + userhelpBrowser.destroy(); + userhelpBrowser = null; + globalData.InInput = false; + mp.gui.cursor.show(false, false); + mp.gui.chat.activate(true); + } + else if (!globalData.InInput) { + globalData.InInput = true; + userhelpBrowser = mp.browsers.new('package://assets/html/helpcommand/userhelp.html'); + mp.gui.chat.activate(false); + mp.gui.cursor.show(true, true); + + } + }); + + mp.events.add("removeUserhelp", () => { + + if (userhelpBrowser == null) { + return; + } + else if (globalData.InInput) { + userhelpBrowser.destroy(); + userhelpBrowser = null; + globalData.InInput = false; + mp.gui.cursor.show(false, false); + mp.gui.chat.activate(true); + + } + }); + +} \ No newline at end of file diff --git a/ReallifeGamemode.Client/assets/css/helpcommand/style.css b/ReallifeGamemode.Client/assets/css/helpcommand/style.css new file mode 100644 index 00000000..f4ccc5c7 --- /dev/null +++ b/ReallifeGamemode.Client/assets/css/helpcommand/style.css @@ -0,0 +1,116 @@ +html { + -webkit-box-sizing: border-box; + box-sizing: border-box; + user-select: none; +} + +*, *::before, *::after { + -webkit-box-sizing: inherit; + box-sizing: inherit; +} + +body { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + height: 100vh; + width: -webkit-fit-content; + width: -moz-fit-content; + width: fit-content; + margin: 0 auto; + padding: 1em .5em; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + font-weight: 400; + color: #FFF; +} + +main { + height: auto; + position: relative; + min-width: 50ch; + max-width: 35vw; + padding: 1em; + border-radius: .25em; + font-size: 1em; + line-height: 1.25; + background-color: rgba(0, 0, 0, 0.5); +} + + main a#close { + position: absolute; + right: 1em; + top: 1em; + height: 1em; + width: 1em; + opacity: 0.25; + } + + main a#close:hover { + opacity: 1; + } + + main a#close:before, main a#close:after { + content: ' '; + position: absolute; + left: .5em; + height: 1em; + width: 2px; + background-color: #FFF; + border-radius: 1px; + } + + main a#close:before { + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + } + + main a#close:after { + -webkit-transform: rotate(-45deg); + transform: rotate(-45deg); + } + + main h1, main p { + margin: 0; + } + + main h1 { + font-size: 1.5em; + line-height: 1; + margin-bottom: .125em; + padding-right: 1em; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + } + + main p { + margin-bottom: 1em; + line-height: 1.125; + } + + main .form { + margin-top: .25em; + } + + main .form input { + width: 100%; + padding: .5em; + font-family: "Roboto Mono"; + font-weight: 500; + font-size: 1em; + border: none; + border-radius: 5px; + background-color: rgba(0, 0, 0, 0.125); + color: inherit; + } + + main .form input:focus { + outline-width: 0; + } diff --git a/ReallifeGamemode.Client/assets/html/Introduction/Introduciton.html b/ReallifeGamemode.Client/assets/html/Introduction/Introduction.html similarity index 100% rename from ReallifeGamemode.Client/assets/html/Introduction/Introduciton.html rename to ReallifeGamemode.Client/assets/html/Introduction/Introduction.html diff --git a/ReallifeGamemode.Client/assets/html/helpcommand/ahelp.html b/ReallifeGamemode.Client/assets/html/helpcommand/ahelp.html new file mode 100644 index 00000000..2b192fcd --- /dev/null +++ b/ReallifeGamemode.Client/assets/html/helpcommand/ahelp.html @@ -0,0 +1,71 @@ + + + + + + Eingabe | Life of German + + + + + + + + + +
+
+

Befehle

+
+
+ +
+
Admin-Befehle:
+ /ac - Nachricht an alle Admins
+ /countdown ZEIT TEXT - Erstellt einen Countdown für alle
+ /freeze Name|ID - Friert den User einen
+ /unfreeze Name|ID - Befreit den User
+ /mark - Speichert derzeitige Position (XYZ)
+ /gotomark - Teleportiert zu gespeicherter Position
+ /gotolist - Listet aktive Goto-Punkte auf
+ /goto - Teleportiert zu einem gespeicherten Ort
+ /gotox X, Y, Z - Teleportiert dich zu den Koordinaten
+ /up WERT /dn WERT /lt WERT /rt WERT - Teleportiert dich Hoch, Runter, Links, Rechts
+ /setdimension Name|ID DIMENSION - Setzt einen Spieler in eine virtuelle Welt
+ /spec Name|ID - Schaut einem User zu
+ /warn Name|ID GRUND ANZAHL - Verwarnt den User
+ /ip Name|ID - Zeigt die IP-Adresse des Users
+ /kick Name|ID GRUND - Kickt einen User vom Server
+ /ban Name|ID ZEIT GRUND - Bannt einen User auf Dauer (Zeit 0 = permanent)
+ /unban Name - Bann eines Users entfernen
+ /slap Name|ID HÖHE - Wirft spieler nach oben (Standardwert = 5)
+ /takeweapon Name|ID - Nimmt einem User die Waffen weg
+ /tov CAR ID - Teleportiert dich zu einem Fahrzeug
+ /ghv CAR ID - Teleportiert Fahrzeug zu dir
+ /sethp Name|ID WERT - Setzt Leben (Standardwert = 100)
+ /setap Name|ID WERT - Setzt Rüstung (Standardwert = 100)
+ /arevive Name|ID - Belebt einen User wieder
+ /aunjail Name|ID - Holt einen User aus dem Knast
+ /aclear Name|ID - Cleart die Wanteds eines User
+ /adice WERT - Würfelt eine bestimmte ID
+ /veh FAHRZEUG FARBID1 FARBID2 - Erstellt ein FAHRZEUG
+ /fv /vfix - Repariert Fahrzeug in dem du sitzt
+ /vdestroy ID - Löscht ein Fahrzeug vom Server
+ /vcolor FARBID1 FARBID2 - Ändert die Fahrzeugfarbe
+ /vehsmoke R G B - Ändert Reifenrauchfarbe
+ /aneon R G B - Erstellt Neons für Fahrzeug
+ /vsethp FAHRZEUGID WERT - Setzt Fahrzeugzustand (Standwert = 100)
+ /factionlist - Zeigt alle Fraktionen auf dem Server
+ /businesslist - Zeigt alle Business auf dem Server
+ /joblist - Zeigt alle Jobs auf dem Server
+ /flip - Dreht das Fahrzeug
+ /respawnvehicle (ID optional) - Respwant das Fahrzeug neben einem
+ +
+ + +
+ + + + \ No newline at end of file diff --git a/ReallifeGamemode.Client/assets/html/helpcommand/shelp.html b/ReallifeGamemode.Client/assets/html/helpcommand/shelp.html new file mode 100644 index 00000000..d4e32c13 --- /dev/null +++ b/ReallifeGamemode.Client/assets/html/helpcommand/shelp.html @@ -0,0 +1,47 @@ + + + + + + Eingabe | Life of German + + + + + + + + + +
+
+

Befehle

+
+
+ +
+ /team - Zeigt Teammitglieder an
+ /tc - Teamchat
+ /aduty - Versetzt dich in den Support (Tickets erhalten)
+ /tsupport bzw. /ts - Supportfarbe erhalten (Nur in A-Duty)
+ /showtickets - Zeigt dir die Tickets an (Nur in A-Duty)
+ /rc - Im Ticket schreiben
+ /rc quit - Ticket beenden
+ /o (#RRGGBB) - Globale Nachricht an alle User
+ /pm Name|ID - Private Nachricht an einen User
+ /dimension - Zeigt die eigene Dimension
+ /to Name|ID - Teleportiert dich zu dem User
+ /gh Name|ID - Teleportiert den User zu dir
+ /clearchat - Leert den globalen Chat
+ /skick Name|ID - Kickt den Spieler leise
+ /position - Zeigt koordinaten vom Aktuellen Standpunkt an
+ + +
+ + +
+ + + + \ No newline at end of file diff --git a/ReallifeGamemode.Client/assets/html/helpcommand/userhelp.html b/ReallifeGamemode.Client/assets/html/helpcommand/userhelp.html new file mode 100644 index 00000000..5459b629 --- /dev/null +++ b/ReallifeGamemode.Client/assets/html/helpcommand/userhelp.html @@ -0,0 +1,45 @@ + + + + + + Eingabe | Life of German + + + + + + + +
+
+

Befehle

+
+
+ + Steuerung:
+ T - Chat öffnen
+ M - Interaktionsmenü öffnen und schließen
+ X - Fahrzeug auf-/abschließen sowie im Fahrzeuginteraktionsmenü öffnen
+ N - Fahrzeugmotor Starten
+ O - Onlineliste öffnen/schließen
+ I - Inventar öffnen/schließen
+ ESC - Menü öffnen zum Anpassen der Einstellungen
+ ESC -> Karte - Symbole zeigen dir die wichtigsten Orte auf der Karte
+
Befehle:
+ /dice - Würfel verwenden
+ /gc - Gruppenchat verwenden
+
Fraktionsbefehle:
+ /f - Fraktionschat
+ /ga - Gangchat
+ /r - Radiochat - interner Staatsfraktionschat
+ /d - Departmentchat - externer Staatsfraktionschat
+ +
+ + +
+ + + + \ No newline at end of file diff --git a/ReallifeGamemode.Client/assets/js/Introduction/application.js b/ReallifeGamemode.Client/assets/js/Introduction/application.js index 5e46270a..090798a1 100644 --- a/ReallifeGamemode.Client/assets/js/Introduction/application.js +++ b/ReallifeGamemode.Client/assets/js/Introduction/application.js @@ -5,21 +5,3 @@ close.onclick = function closeWindow() { mp.trigger('removeIntroduction'); console.log('Fenster geschlossen!'); } - - -/* Enter wird im Input-Feld gedrückt */ -input.onkeyup = e => { - let code = e.keyCode ? e.keyCode : e.which; - if (code === 13) { - // TODO: Wert entgegennehmen - closeWindow(); - } -} - -/* ESC wird gedrückt */ -document.onkeyup = e => { - let code = e.keyCode ? e.keyCode : e.which; - if (code === 27) { closeWindow(); } -} - -close.onclick = e => { closeWindow(); } diff --git a/ReallifeGamemode.Client/assets/js/helpcommand/application.js b/ReallifeGamemode.Client/assets/js/helpcommand/application.js new file mode 100644 index 00000000..2b2eaeb7 --- /dev/null +++ b/ReallifeGamemode.Client/assets/js/helpcommand/application.js @@ -0,0 +1,7 @@ + +let close = document.getElementById('close'); + +close.onclick = function closeWindow() { + mp.trigger('removeAhelp'); + console.log('Fenster geschlossen!'); +} diff --git a/ReallifeGamemode.Client/assets/js/helpcommand/application_userhelp.js b/ReallifeGamemode.Client/assets/js/helpcommand/application_userhelp.js new file mode 100644 index 00000000..3847024f --- /dev/null +++ b/ReallifeGamemode.Client/assets/js/helpcommand/application_userhelp.js @@ -0,0 +1,7 @@ + +let close = document.getElementById('close'); + +close.onclick = function closeWindow() { + mp.trigger('removeUserhelp'); + console.log('Fenster geschlossen!'); +} diff --git a/ReallifeGamemode.Client/index.ts b/ReallifeGamemode.Client/index.ts index 4a6b07c1..fa460179 100644 --- a/ReallifeGamemode.Client/index.ts +++ b/ReallifeGamemode.Client/index.ts @@ -237,6 +237,12 @@ bankMenuHandle(globalData); import Introduction from './Gui/introduction'; Introduction(globalData); +import ahelp from './Gui/ahelp'; +ahelp(globalData); + +import userhelp from './Gui/userhelp'; +userhelp(globalData); + require('./Gui/policedepartment'); interface VehicleData { diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index ceed805b..7d4764e1 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -146,47 +146,12 @@ namespace ReallifeGamemode.Server.Commands ChatService.SendMessage(player, "~b~ " + "/team, /tc, /position"); break; - case AdminLevel.ENTWICKLUNG: - ChatService.SendMessage(player, "~b~ " + "/team, /tc, /position"); - break; - case AdminLevel.SUPPORTER: - ChatService.SendMessage(player, "~b~ " + "/team, /tc, /position, /tsupport, /showtickets, /rc, /rc quit, /o, /pm, /dimension, /to, /gh, /clearchat, /skick"); + player.TriggerEvent("showShelp"); break; - + case AdminLevel.ADMIN: - ChatService.SendMessage(player, "~b~ " + "/team, /tc, /position, /tsupport, /showtickets, /rc, /rc quit, /o, /pm, /dimension, /to, /gh, /clearchat, /skick"); - ChatService.SendMessage(player, "~b~ " + "/ac, /countdown, /freeze, /unfreeze, /mark, /gotmark, /gotox, /up, /setdimension, /spec, /warn, /ip, /kick, /ban /unban, /slap, /takeweapon, /tov, /ghv, /factionlist, /businesslist, /joblist"); - break; - - case AdminLevel.ADMIN2: - ChatService.SendMessage(player, "~b~ " + "/team, /tc, /position, /tsupport, /showtickets, /rc, /rc quit, /o, /pm, /dimension, /to, /gh, /clearchat, /skick"); - ChatService.SendMessage(player, "~b~ " + "/ac, /countdown, /freeze, /unfreeze, /mark, /gotmark, /gotox, /up, /setdimension, /spec, /warn, /ip, /kick, /ban /unban, /slap, /takeweapon, /tov, /ghv, /factionlist, /businesslist, /joblist"); - ChatService.SendMessage(player, "~b~ " + "/sethp, /setap, /arevive, /aunjail, /aclear, /clothes, /props"); - break; - - case AdminLevel.ADMIN3: - ChatService.SendMessage(player, "~b~ " + "/team, /tc, /position, /tsupport, /showtickets, /rc, /rc quit, /o, /pm, /dimension, /to, /gh, /clearchat, /skick"); - ChatService.SendMessage(player, "~b~ " + "/ac, /countdown, /freeze, /unfreeze, /mark, /gotmark, /gotox, /up, /setdimension, /spec, /warn, /ip, /kick, /ban /unban, /slap, /takeweapon, /tov, /ghv, /factionlist, /businesslist, /joblist"); - ChatService.SendMessage(player, "~b~ " + "/sethp, /setap, /arevive, /aunjail, /aclear, /clothes, /props"); - ChatService.SendMessage(player, "~b~ " + "/adice, /settime, /setweather, /rsetap, /rgiveweapon, /giveweapon, /veh, /fv, /vfix, /vdestroy, /vlivery, /vcolor, /vehsmoke, /aneon, /mod, /showtuningmenu, /rvdestroy, /vsethp"); - break; - - case AdminLevel.HEADADMIN: - ChatService.SendMessage(player, "~b~ " + "/team, /tc, /position, /tsupport, /showtickets, /rc, /rc quit, /o, /pm, /dimension, /to, /gh, /clearchat, /skick"); - ChatService.SendMessage(player, "~b~ " + "/ac, /countdown, /freeze, /unfreeze, /mark, /gotmark, /gotox, /up, /setdimension, /spec, /warn, /ip, /kick, /ban /unban, /slap, /takeweapon, /tov, /ghv, /factionlist, /businesslist, /joblist"); - ChatService.SendMessage(player, "~b~ " + "/sethp, /setap, /arevive, /aunjail, /aclear, /clothes, /props"); - ChatService.SendMessage(player, "~b~ " + "/adice, /settime, /setweather, /rsetap, /rgiveweapon, /giveweapon, /veh, /fv, /vfix, /vdestroy, /vlivery, /vcolor, /vehsmoke, /aneon, /mod, /showtuningmenu, /rvdestroy, /vsethp"); - ChatService.SendMessage(player, "~b~ " + "/aspeed, /set, /setmoney, /givemoney, /sethandmoney, /givehandmoney, /paydaydrop, /setwage, /freekh, /ainvite, /makeleader, /managefactionranks, /setweaponrack, /rmweaponrack, /setweaponrank, /giveitem, /inventory, /save, /remove, /house, /setbusinessbankbalance, /reloaddors, /interior, /editmode, /setbliptemplate, /ipl, /load, /quicksavemode, /createturf, /setturf, /cancleturf, /reloadturfs, /deleteturfs, /setturfpoint"); - break; - - case AdminLevel.PROJEKTLEITUNG: - ChatService.SendMessage(player, "~b~ " + "/team, /tc, /position, /tsupport, /showtickets, /rc, /rc quit, /o, /pm, /dimension, /to, /gh, /clearchat, /skick"); - ChatService.SendMessage(player, "~b~ " + "/ac, /countdown, /freeze, /unfreeze, /mark, /gotmark, /gotox, /up, /setdimension, /spec, /warn, /ip, /kick, /ban /unban, /slap, /takeweapon, /tov, /ghv, /factionlist, /businesslist, /joblist"); - ChatService.SendMessage(player, "~b~ " + "/sethp, /setap, /arevive, /aunjail, /aclear, /clothes, /props"); - ChatService.SendMessage(player, "~b~ " + "/adice, /settime, /setweather, /rsetap, /rgiveweapon, /giveweapon, /veh, /fv, /vfix, /vdestroy, /vlivery, /vcolor, /vehsmoke, /aneon, /mod, /showtuningmenu, /rvdestroy, /vsethp"); - ChatService.SendMessage(player, "~b~ " + "/aspeed, /set, /setmoney, /givemoney, /sethandmoney, /givehandmoney, /paydaydrop, /setwage, /freekh, /ainvite, /makeleader, /managefactionranks, /setweaponrack, /rmweaponrack, /setweaponrank, /giveitem, /inventory, /save, /remove, /house, /setbusinessbankbalance, /reloaddors, /interior, /editmode, /setbliptemplate, /ipl, /load, /quicksavemode, /createturf, /setturf, /cancleturf, /reloadturfs, /deleteturfs, /setturfpoint"); - ChatService.SendMessage(player, "~b~ " + "/makeadmin, /whitelist, /blind"); + player.TriggerEvent("showAhelp"); break; } } diff --git a/ReallifeGamemode.Server/Commands/UserCommands.cs b/ReallifeGamemode.Server/Commands/UserCommands.cs index 8f488270..f27648db 100644 --- a/ReallifeGamemode.Server/Commands/UserCommands.cs +++ b/ReallifeGamemode.Server/Commands/UserCommands.cs @@ -72,5 +72,11 @@ namespace ReallifeGamemode.Server.Commands ChatService.SendMessage(player, "~m~" + ((VehicleHash)pVeh.Model) + " | " + veh.ToString() + " | Farbe 1: " + pVeh.PrimaryColor + " | Farbe 2: " + pVeh.SecondaryColor + " | ID: " + pVeh.Handle.Value); } } + [Command("help", "~m~Benutzung: ~s~/help")] + public void CmdHelp(Player player) + { + player.TriggerEvent("showUserhelp"); + } } } + diff --git a/ReallifeGamemode.Server/Managers/NewbieManager.cs b/ReallifeGamemode.Server/Managers/NewbieManager.cs deleted file mode 100644 index 9939ead9..00000000 --- a/ReallifeGamemode.Server/Managers/NewbieManager.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Linq; -using GTANetworkAPI; -using ReallifeGamemode.Database; -using ReallifeGamemode.Database.Entities; -using ReallifeGamemode.Database.Entities.Logs; -using ReallifeGamemode.Database.Models; -using ReallifeGamemode.Server.Util; - -namespace ReallifeGamemode.Server.Managers -{ - class NewbieManager : Script - { - - - - } -}