chat_command_suicide 1.0.0

This commit is contained in:
Resxt 2023-02-16 03:46:11 +01:00
parent 113424553d
commit f1d6ce7c20
2 changed files with 22 additions and 0 deletions

View File

@ -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.) - 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 - 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 ## 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. 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.

View File

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