[MP/ZM] Black Ops II Chat Commands
I took some time to work on a chat commands script and I decided that it's good enough to release it.
The idea behind this is to split the core system and each command in separate files to make it easy to work with, both for the end user and for developers (or people trying to create their own commands)
The main script called
chat_commandsprovides most of what's used by other commands.
It does all the chat handling, the permission system, handles the errors, provides the utils functions that each command can use and so on.
Each command has its own file which makes it very easy to configure, to pick the ones you want, to review and edit their code and even to create your own.
It works both in custom games and on dedicated servers and it also supports both MP and ZM.
Feel free to request any feature/improvement you would like to see added or to ask for commands to be added.
Feedback and bug/issue reports are also appreciated.
Thanks to LKurama for helping me testing!
This chat commands system is also available on MW3.
If you're interested just click on the icon below
Excitingtron "a script error" is very vague, can't really help here.
If you get an error without editing any of the scripts then I assume you didn't follow the install instructions and didn't read the instructions for when you don't either.
The chat_commands.gsc script is made to be placed in the scripts folder.
If you place it in scripts\mp or scripts\zm then you need to edit the include of all the command script you add
Read the [IMPORTANT] part
If this is not the issue then you will need to provide more details like a screenshot of the error.
As for the permission you can do it several ways and it depends on if you're using a server or custom games.
You can either edit the CFG of your server or add
SetDvar("cc_permission_4", "Resxt");at the very bottom of this function
Also please note that like explained on the repository the permission system is disabled by default to make it easier for beginners
You will need to change
cc_permission_enabledto 1 as well
Resxt hi, i correctly installed the scripts (i think), and the game console says that they're successfully loaded into the game, but only the ones with "cc_" can be enabled. When i enter the prefix ones, the game says "unknown command". Do you have any idea what am i doing wrong?
RYNO7965 the latest Plutonium update introduced issues with the compiler.
Before that update and since my chat commands release everything has been working fine and I didn't make any change.
So the only thing to do is revert back to the previous Plutonium version (no I can't help with this) or wait for Plutonium to push an update that reverts the changes they made to the compiler.
Maybe you can try compiling all the chat commands you use including the main file with gsc-tool and see how it goes, might work.
I just pushed
chat_commands 1.1.2that allows you to type the beginning of a player's name instead of having to always type his full name. It's a small update but it will make it a lot better to use now so I recommend that you update
chat_commands.gscto get that feature