Here's a small script I made to autoban when a player ingame advertises an IP & Port. Perhaps it'll give you an idea of how I make the scripts interact with users inside the gaming server.

http://www.paste.mircscripting.info/index.php?id=2766

Basically does this:
Quote:

[KUMB] · Kim_Annabeth(1) - 12.34.56.78:1234
Naed · !say Advertising is prohibited on this server, Kim_Annabeth.
Naed · !ban Kim_Annabeth
[KUMB] · Naed(IRC) - Advertising is prohibited on this server, Kim_Annabeth.
[KUMB] · ***(ADMIN BAN)*** player Kim_Annabeth has been banned from the gaming server.


Basically, Kim_Annabeth advertises an IP ingame. Then, Naed (the IRC bot I'm scripting) warns the player then bans them.

!say is just a command to echo stuff from IRC into the game
!ban is an IRC command that OPs use to ban players ingame via IRC.

Where it says ***(ADMIN BAN)*** is what happens in the server; it shows the player being banned ingame.