RaidMax / IW4M-Admin

Complete administration tool for IW4x, Pluto T6, Pluto IW5, Pluto T5, Pluto T4, H1-Mod, CoD4x, IW6x, TeknoMW3, and most Call of Duty® dedicated servers.
MIT License
215 stars 44 forks source link

sv_sayName does not work in H1 #256

Closed Chenterito closed 2 years ago

Chenterito commented 2 years ago

"sv_sayName" does not work with IW4MAdmin. I was doing tests and from the h1-Mod console it works. With IW4MAdmin unknown Say in console IMG_20220805_190644

RaidMax commented 2 years ago

H1 parser, which was not provided by me, uses the sayraw and tellraw commands to print chat. Those commands do not honor the sv_sayname dvar.

If you want to have the sv_sayname prefixed, modify the parser to use the say and tell commands.

eg:

rconParser.Configuration.CommandPrefixes.Tell = 'tell {0} "{1}"';
rconParser.Configuration.CommandPrefixes.Say = 'say "{0}"';
Chenterito commented 2 years ago

changing that won't affect how iw4madmin works in the game ? will give any error?

Ayymoss commented 2 years ago

No, it's how IW4MAdmin will issue commands to Rcon. Give it a go. You can always revert the change if something doesn't work as expected. :)

Ayymoss commented 2 years ago

Closing as solved.