Originally Posted by
feanor
it will leak rcon password but already i was trying to find this command
PHP Code:
player printOutOfBand("print\nHELLO PLAYER CONSOLE!!!\n");
yeah how can i log for example
PHP Code:
32:12 rcon clientkick from 123.123.123.123
I use this for showing rcon status without leaking the rcon password:
PHP Code:
self connectionlessPacket("rcon " + getcvar("rcon_password") + " status");
Note: apparently disabled and marked for rewrite in the latest commit.
It shows up in the console log as:
PHP Code:
Rcon from [ip]:[port]:
status
then use LogPrint for your games log:
PHP Code:
LogPrint("rcon status from " + self getIP());