From 58eece34412d3beba9015d60f8cf04965c314fee Mon Sep 17 00:00:00 2001 From: Resxt <55228336+Resxt@users.noreply.github.com> Date: Fri, 24 Mar 2023 14:55:51 +0100 Subject: [PATCH] chat_command_suicide 1.0.0 --- chat_commands/mp/README.md | 15 +++++++++++++++ chat_commands/mp/chat_command_suicide.gsc | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 chat_commands/mp/README.md create mode 100644 chat_commands/mp/chat_command_suicide.gsc diff --git a/chat_commands/mp/README.md b/chat_commands/mp/README.md new file mode 100644 index 0000000..4950d29 --- /dev/null +++ b/chat_commands/mp/README.md @@ -0,0 +1,15 @@ +# MP Chat commands + +These scripts go in `scripts\mp` + +## chat_command_suicide.gsc + +The player who runs the command dies. + +| Example | +|---| +| `!suicide` | + +| Permission level | +|---| +| 1 | diff --git a/chat_commands/mp/chat_command_suicide.gsc b/chat_commands/mp/chat_command_suicide.gsc new file mode 100644 index 0000000..715b2a2 --- /dev/null +++ b/chat_commands/mp/chat_command_suicide.gsc @@ -0,0 +1,15 @@ +#include scripts\chat_commands; + +Init() +{ + CreateCommand(level.chat_commands["ports"], "suicide", "function", ::SuicideCommand, 1); +} + + + +/* Command section */ + +SuicideCommand(args) +{ + self Suicide(); +} \ No newline at end of file