English Command Processor icon

5 comments
08.04.13 01:57:36 pm
like 2 like it!
771 b, 114 Downloads
MikuAuahDark
User
Offline Off
> Data:
• Hooks: cs2d lua hook 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:
Code:
1
2
3
function CMD:commandname(id,argument1,arg2,...)
     msg2(id,"©000255000"..id.." "..argument1.." "..arg2.." "..table.concat({...}," "))
end

• code above add a command "commandname", to call the command, all you need is say !commandname <arguments> and it would call CMD:commandname

> Notes:
• You also can use COMMAND:commandname instead of CMD:commandname or CMD.commandname, it would do same.
ok This file has been reviewed and approved by Seekay (04.12.15 01:10:04 pm)

Comments

5 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
12.04.13 08:31:11 am
Up
devense cso
GAME BANNED
Offline Off
chat!
08.04.13 03:47:29 pm
Up
Avo
User
Offline Off
I prefer TLEx.

@Gajos, you´re thanking, becouse he used lua´s syntax sugar. Strange.

Spoiler >
edited 1×, last 11.04.13 05:53:28 pm
08.04.13 03:19:38 pm
Up
mafia_man
User
Offline Off
Not enough for like.
08.04.13 02:44:17 pm
like I like it!
Up
Gajos
BANNED
Offline Off
thank you for using " : " I need it
08.04.13 02:24:28 pm
like I like it!
Up
Deathliger
User
Offline Off
very useful lua for people that tired making tons of codes just for command system
edited 1×, last 19.04.17 02:27:42 pm
To the start Previous 1 Next To the start