OnPlayerCommand
From the Scripting Manual
function OnPlayerCommand(ID: Byte; Text: string): boolean; Parameter Info: ID (Byte): Player ID of the player who typed the command. Text (String): Self Explanitory. Description: This procedure will be called every time a player types a / slash command. Including things like /kill, /victory etc.