mirror of
https://github.com/Resxt/Plutonium-IW5-Scripts.git
synced 2025-04-19 12:42:54 +00:00
chat_command_suicide 1.0.0
This commit is contained in:
parent
113424553d
commit
f1d6ce7c20
@ -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.
|
||||
|
15
chat_commands/chat_command_suicide.gsc
Normal file
15
chat_commands/chat_command_suicide.gsc
Normal file
@ -0,0 +1,15 @@
|
||||
#include scripts\chat_commands;
|
||||
|
||||
Init()
|
||||
{
|
||||
CreateCommand(["27016", "27017"], "suicide", "function", ::SuicideCommand);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Command section */
|
||||
|
||||
SuicideCommand(args)
|
||||
{
|
||||
self Suicide();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user