Hooks: say
Lines: 36
LUAFunction Used: setmetatable, pairs, unpack
Reserved Variable: SHOW_MESSAGE_WHEN_CMD_NOT_FOUND, CommandProcessor, COMMAND, CMD
Description: This lua allow you to add command easily by creating a function of the commands without editing many code on the CommandProcessor.lua itself
How To Install: you all know it right
How To Configure: open CommandProcessor.lua with any text editor, and you can edit variable SHOW_MESSAGE_WHEN_CMD_NOT_FOUND true/false. true by default
How To Add Commands:
you can create a command by just simply creating it's function.
Example:
1
2
3
2
3
function CMD:commandname(id,argument1,arg2,...) 	msg2(id,"©000255000"..id.." "..argument1.." "..arg2.." "..table.concat({...}," ")) end
Notes:
You also can use COMMAND:commandname instead of CMD:commandname or CMD.commandname, it would do same.
Approved by Seekay
Download
771 b, 496 Downloads