- Joined
- Apr 24, 2012
- Messages
- 5,111
Example:
This is just a typical mode system. Example, once "ap" was detected in a game mode that starts with "-", it will execute the function onEnterAP 
The code haven't been compiled yet since I coded it with Notepad++.
JASS:
call CreateCommand("ap") //allpick
call CreateCommand("ar") //allrandom
call RegisterCommandEvent("ap", function onEnterAP)
call RegisterCommandEvent("ar", function onEnterAR)
The code haven't been compiled yet since I coded it with Notepad++.