Hi
I'd really like to be able to define custom chat triggers which would enable the admin to define the outcome of a trigger.
The main reason I'd like this is pretty convoluted but quite simply I'd like to be able to define something like this
Code:
Trigger1 {
trigger !song
output say !!song
}
Trigger2 {
trigger !dj
output say !!dj
}
So in my simple example above a
client would type
!song and as a result the
Console: would say
!!song
I reckon this could be useful for a myriad of other reasons for admins too.
MANI had a similar system called commandlist.txt
It looked like this :
Code:
//
// Mani Admin Plugin 2005
//
// file : commandlist.txt
//
// This file allows you to change the in game say commands
// by replacing them with your own version.
//
// The format is "yourcommand" type replacement command
//
// The type refers to either: -
//
// R = an RCON command to be executed (User must be admin with RCONSay
// authorisation
//
// An example would be: -
//
// "@botadd" R bot_add
// "@alltalk" R sv_alltalk 1
// "@rr" R mp_restartgame 2
//
//
// C = run a client command on your machine, anyone can use these
//
// An example would be: -
//
// "@menu" C admin
// "@vote" C say votemap
// "@kickmenu" C admin kick
//
// S = replace an @say command with your own version
//
// An example would be: -
//
// "@torch" S @ma_burn
// "@kill" S @ma_slay
//
// Note that comments must be started on a new line
// Do not do "@botadd" R bot_add // command to add bots
//
"@botadd" R bot_add
"@botkick" R bot_kick
"@addbot" R bot_add
"@kickbot" R bot_kick
"@kickbots" R bot_kick
"@rr" R mp_restartgame 2
Is this a possibility?
Would anyone be willing to code this?
__________________