diff --git a/chat_commands/README.md b/chat_commands/README.md index bced6be..07f72ea 100644 --- a/chat_commands/README.md +++ b/chat_commands/README.md @@ -24,6 +24,13 @@ Also note that this script doesn't provide any command on its own. You must inst - Permissions/ranks to restrict some commands to a certain type of players (admin, VIP etc.) - Configurable text colors/accent. As of now the majority of the text will be white +## chat_command_suicide.gsc + +The player who runs the command dies. + +Arguments expected: none. +Example: `!suicide` + ## 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_suicide.gsc b/chat_commands/chat_command_suicide.gsc new file mode 100644 index 0000000..7844ea8 --- /dev/null +++ b/chat_commands/chat_command_suicide.gsc @@ -0,0 +1,15 @@ +#include scripts\chat_commands; + +Init() +{ + CreateCommand(["27016", "27017"], "suicide", "function", ::SuicideCommand); +} + + + +/* Command section */ + +SuicideCommand(args) +{ + self Suicide(); +} \ No newline at end of file