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