mirror of
https://github.com/Resxt/Plutonium-T6-Scripts.git
synced 2025-04-19 13:42:54 +00:00
chat_command_suicide 1.0.0
This commit is contained in:
parent
359aa389df
commit
58eece3441
15
chat_commands/mp/README.md
Normal file
15
chat_commands/mp/README.md
Normal 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 |
|
15
chat_commands/mp/chat_command_suicide.gsc
Normal file
15
chat_commands/mp/chat_command_suicide.gsc
Normal 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();
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user