CSGO Linux - Server crash on player.kick
CSGO Linux - Server crash on player.kick
When I use player.kick server crashes. I haven't tested with player.ban but I assume it is the same as the player is also kicked.
Re: CSGO Linux - Server crash on player.kick
I'm unable to reproduce the issue using this snippet:
Syntax: Select all
from events import Event
from players.entity import Player
@Event('player_say')
def player_say(event):
player = Player.from_userid(event['userid'])
player.kick('blabla')
# player.kick() works as well
Re: CSGO Linux - Server crash on player.kick
It is crashing for me, I do have SourceMod with many plugins, but the kick plugin is the only source python plugin.
When I use queue_command_string("kickid ...") no crashes, but if you are unable to reproduce that's very unfortunate. I'll have to run some more tests then. Did you test with linux, csgo?
Edit:
For some reason, delaying it by 1 tick works, so player.delay(0, player.kick, args=("Dasd",)) no crash.
When I use queue_command_string("kickid ...") no crashes, but if you are unable to reproduce that's very unfortunate. I'll have to run some more tests then. Did you test with linux, csgo?
Edit:
For some reason, delaying it by 1 tick works, so player.delay(0, player.kick, args=("Dasd",)) no crash.
Re: CSGO Linux - Server crash on player.kick
Does it crash if you use my snippet above? What happens if you don't use a kick message? What's the output of "sp info" and "sm plugin list"? And could you please show me your code that causes the crash?
Edit: Yes, tested it with CS:GO on Linux.
Edit: Yes, tested it with CS:GO on Linux.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 24 guests