I have had a lot of people asking me for these over at DoD Plugins so I thought I would release them for everyone to use. These have been ported over from AMX to AMXX by me. All relevent functions have been replaced so they work 100%.
You need to comment out your adminchat.amxx and replace it with this one.
I recommend you use this with the messagemode plugin I also converted from AMX.
UPDATED 7/07/06
Code:
Commands:
amx_say
amx_chat
amx_psay
amx_tsay
amx_tsayy *** Anonymous tsay
amx_csay
amx_csayy *** Anonymous csay
amx_fsay *** new command
amx_fsayy *** new command (Anonymous)
amx_scrollsay *** new command
amx_scrollsayy *** new command (Anonymous)
Teamsay:@ message = amx_chat if an admin or message from a player to admins
say:## message = amx_chat if an admin or message from a player to admins
say:# message name/id = amx_psay
say:@|@|@ color = @ is tsay @@ is csay @@@ is scrollsay Example "say:@ red message" would send "message" in red tsay
Code:
Changelog
v1.0 - Ported to AMXX
v1.1 - Added orange, ocean, and maroon colors so its the same as amxx colors
- Added teamsay @ for admin chat shortcut like default amxx adminchat
- Add hl message logging for all commands
- Fixed the one print_to_file I missed
v1.2 - Added @ shortcuts for admin commands csay (@) and tsay (@@)
v1.3 - Fixed global chat not working at all
v1.4 - Fixed psay not working
- Added handling of more say commands (for psay: say # <part of name, etc> <message>),
(for admin chat: say ## <message>) and (for scrollsay: say @@@ <message>)
- Changed how a few functions were handled
- Added the HLSW fix for psay
v1.5 - Added shortcuts for colors like amxx adminchat
v1.6 - Fixed the logging errors produced from Rcon/Console using the functions (thanks to TheRising for finding the errors)
v1.6.5 - Changed how the strings were read (thanks yet again to TheRising for that =D )
v1.7 - Added amx_say to server commands it gets logged to amx log file
Todo - Nothing for now
Code:
Colors Available: white, red, green, blue, yellow, magenta, cyan, maroon, ocean, and orange
Colors Available for shortcut colors: r = red, g = green, b = blue, y = yellow, m = magenta, c = cyan, and o = orange
Over 1 billion server (give or take a few hundred million ;D)