mirror of
https://github.com/PhantomGamesDevelopment/TWM2.git
synced 2026-03-11 08:20:43 +00:00
Update readme
This commit is contained in:
parent
b03f4dd2ef
commit
3b5aa5d67e
2 changed files with 216 additions and 159 deletions
|
|
@ -11,15 +11,15 @@
|
|||
|
||||
//Add custom chat commands here!
|
||||
//I've included a little sample command (in comments)
|
||||
function parseCustomCommands(%sender, %command, %args) {
|
||||
switch$(strLwr(%command)) { //CAUTION! Note the strlwr here! that means your command must show in lowercase in each case "": statement
|
||||
//function parseCustomCommands(%sender, %command, %args) {
|
||||
// switch$(strLwr(%command)) { //CAUTION! Note the strlwr here! that means your command must show in lowercase in each case "": statement
|
||||
//case "samplecommand":
|
||||
// %arg1 = getWord(%args, 0);
|
||||
// %arg2 = getWord(%args, 1)
|
||||
// //Do stuff here!
|
||||
// return 1; //return 1; - Command executed correctly
|
||||
}
|
||||
}
|
||||
// return 1; //return 1; - Command executed correctly\
|
||||
// default:
|
||||
// }
|
||||
//}
|
||||
//make sure you add all of your commands to the list by doing this:
|
||||
//addCMD("Custom", "sampleCommand", "Usage: /sampleCommand [arg1] [arg2]: Sample command ftw! people see this when they type /cmdHelp sampleCommand.");
|
||||
|
||||
//addCMD("Custom", "sampleCommand", "Usage: /sampleCommand [arg1] [arg2]: Sample command ftw! people see this when they type /cmdHelp sampleCommand.");
|
||||
Loading…
Add table
Add a link
Reference in a new issue