tuia wrote:It's not documented here in the public forum, freddy asked me to patch the server executable, so that some commands, like game.killPlayer could be run.
You need to go to 0x00558268 address or 0x00158268 offset and change the byte value 75 to EB and save the file. After that, typing those commands from the server console won't prompt the "Unauthorized method" error message and they will be executed.
Okay, I've found and edited this value, but I've got another problem. In BFSM I created a custom ingame command -
!kill - by addings this line to PlayerMenu.con:
Code: Select all
Console Commands>"game.killPlayer %bfid"|cmd,[kill]
sadly this seems to work only for users that have full admin access rights. For the rest of them the BFRM says
"Command failed. User XXXXX is not authorised to issue console commands." , while rest of admin commands works fine. I don't understand this
![Crying or Very Sad :cry:](./images/smilies/icon_cry.gif)
At this moment the only real way of using game.killplayer command is running the slow remote console, what is not very handy.