
Can't force a player to suicide.
Can't force a player to suicide.
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. 

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?
Can you provide a test script that reproduces the crashes?
This was my solution to the problem: https://github.com/necavi/sp_admin_commands/blob/master/addons/source-python/plugins/admin_commands/commands/punishment.py#L62
- L'In20Cible
- Project Leader
- Posts: 1536
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 139 guests