Topic: How to create chat commands?

I am making a city server, but i need to make things like /login <username> <password> . I also need to do things like /ninja or /medic or /ninja4ever (upgrades) . I am stuck on this, so please HELP!!!

From the Almighty BoinG - TeeWorlds Player


Re: How to create chat commands?

Try to find the code that handles chat messages (perhaps put a `dbg_msg` there to check whether you found the right place) and try to make it do different things depending on what message the player typed.