When a player type !help for the help commands, console write his commands on public chat. How can i set to private?
IIRC you need to find the position which says say $msg and replace it with tell $playerid $msg... and hack that into Perl code ^^
Edit:
I checked the source now, this seems to be it: https://github.com/voron00/Nanny/blo...nanny.pl#L2749
Try to replace this:
With:PHP Code:
&rcon_command("say $name^7: Вы можете использовать ^1!stats ^7чтобы узнать свою подробную статистику");
But since the !say $name scheme is like over 20 times there, you gotta replace it in every line.PHP Code:
&rcon_command("tell $slot $name^7: Вы можете использовать ^1!stats ^7чтобы узнать свою подробную статистику");
Last edited by kung foo man; 12th March 2017 at 02:13. Reason: checked actual source
timescale 0.01
sttte93 (12th March 2017)
I wouldn't recommend doing that because nanny is 100% sinchoronous and will not respond to anyone else until she finishes that help command (unless you feel like a boss and will implent threads lol)
sudo apt-get rekt
sttte93 (12th March 2017)
Ok, thank you.
I have another problem with nanny. It's about guids. I have an original Guid for cod2 but, sometimes (random) when a map changes, my guid becomes 0.
I already set, in the nanny.cfg, guid_sanity_check = yes and restarted, many times, the server. It's affect also other players with original guid, not only me. And is a cracked server.
Any suggestions?
Last edited by sttte93; 12th March 2017 at 10:44.
Just reconnect, or use your ip as auth.
sudo apt-get rekt
sttte93 (12th March 2017)
masterserver doing the derpy dance again.
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
sttte93 (12th March 2017)
PHP Code:
root@administrator:~/cod2/cod13/Nanny# ./nanny.sh
Can't locate Rcon/KKrcon.pm in @INC (you may need to install the Rcon::KKrcon module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at nanny.pl line 63.
BEGIN failed--compilation aborted at nanny.pl line 63 (#1)
(F) You said to do (or require, or use) a file that couldn't be found.
Perl looks for the file in all the locations mentioned in @INC, unless
the file name included the full path to the file. Perhaps you need
to set the PERL5LIB or PERL5OPT environment variable to say where the
extra library is, or maybe the script needs to add the library name
to @INC. Or maybe you just misspelled the name of the file. See
"require" in perlfunc and lib.
Uncaught exception from user code:
Can't locate Rcon/KKrcon.pm in @INC (you may need to install the Rcon::KKrcon module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at nanny.pl line 63.
BEGIN failed--compilation aborted at nanny.pl line 63.
Last edited by bulent; 3rd May 2020 at 01:45.
Have you installed the KKrcon module? http://kkrcon.sourceforge.net/
Slow and Steady wins the race