Page 1 of 1

Can't force a player to suicide.

Posted: Wed May 13, 2015 8:51 am
by Predz
I have tried multiple ways to force a player to suicide but none seem to work. First off the client "kill" command has the SERVER_CANNOT_EXECUTE flag, and every time I try to kill them with either <PlayerEntity>.damage or <PlayerEntity>.take_damage, the server crashes if the damage is more than their current health. It will damage them if the damage value doesn't kill them but otherwise server just crashes. Any help would be much appreciated. :D

Posted: Wed May 13, 2015 10:27 am
by Ayuto
In the next release you will be able to execute the kill command. https://github.com/Source-Python-Dev-Team/Source.Python/commit/34d0d4aed50f84d4e6b178639e94faa9f6fd0552

Can you provide a test script that reproduces the crashes?

Posted: Wed May 13, 2015 4:25 pm
by necavi

Posted: Wed May 13, 2015 11:36 pm
by L'In20Cible
Don't forget you have to call the writeid command manually for permanent bans beeing saved into banned_user.cfg.

Posted: Thu May 14, 2015 3:16 am
by necavi
Right, thanks. Forgot to do so.