From the Scripting Manual
procedure OnAdminMessage(IP, Msg: string); Parameter Info: IP (String): IP Address of the admin who sent the command. Msg (String): Command received by the admin. Description: This procedure will be called every time a TCP Admin sends data to the Server. Note: REFRESH, SHUTDOWN and REFRESHX will not be called with this function.