chat_command_suicide 1.0.0

This commit is contained in:
Resxt 2023-03-24 14:55:51 +01:00
parent 359aa389df
commit 58eece3441
2 changed files with 30 additions and 0 deletions

View File

@ -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 |

View File

@ -0,0 +1,15 @@
#include scripts\chat_commands;
Init()
{
CreateCommand(level.chat_commands["ports"], "suicide", "function", ::SuicideCommand, 1);
}
/* Command section */
SuicideCommand(args)
{
self Suicide();
}