Chat Hooks

How would i create something that calls from across the map. For example, someone uses a command such as “#account”. And it returns it with a console command such as "say /pm <UserID> Your account balance is <Ammount>.

I’v seen it done before. He called commands from across the map, returning them as console commands. And he used an SQL Database to store the information.

I just need to know what the code looks like for the #account command to return as a console command.

There is a subforum for lua questions. People who are apt at lua coding will be more likely to read your post there.