From da52be9cc73b6a4fd963bf4d80ac8517fb4a3124 Mon Sep 17 00:00:00 2001 From: Resxt <55228336+Resxt@users.noreply.github.com> Date: Thu, 16 Feb 2023 03:47:54 +0100 Subject: [PATCH] chat_command_text_rules 1.0.0 --- chat_commands/README.md | 6 ++++++ chat_commands/chat_command_text_rules.gsc | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 chat_commands/chat_command_text_rules.gsc diff --git a/chat_commands/README.md b/chat_commands/README.md index 07f72ea..adb2311 100644 --- a/chat_commands/README.md +++ b/chat_commands/README.md @@ -31,6 +31,12 @@ The player who runs the command dies. Arguments expected: none. Example: `!suicide` +## chat_command_text_rules.gsc + +Prints the server rules in the player's chat. +Arguments expected: none. +Example: `!rules` + ## chat_commands.gsc The core script that holds the configuration, runs all the chat logic and holds utils function that are shared between all the `chat_command` scripts. diff --git a/chat_commands/chat_command_text_rules.gsc b/chat_commands/chat_command_text_rules.gsc new file mode 100644 index 0000000..50dd8d9 --- /dev/null +++ b/chat_commands/chat_command_text_rules.gsc @@ -0,0 +1,7 @@ +#include scripts\chat_commands; + +Init() +{ + CreateCommand(["27016", "27017"], "rules", "text", ["Do not camp", "Do not spawnkill", "Do not disrespect other players"]); + CreateCommand(["27018"], "rules", "text", ["Leave your spot and don't camp after using a M.O.A.B", "Don't leave while being infected", "Do not disrespect other players"]); +} \ No newline at end of file