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