splewis / csgo-multi-1v1

CS:GO Sourcemod plugin to create multi-1v1 arena servers
GNU General Public License v3.0
277 stars 68 forks source link

Improve validity check for client in Event_OnPlayerDeath #297

Closed walliski closed 1 year ago

walliski commented 1 year ago

When players disconnect this event is also fired. Since the player is no longer on the server, GetClientOfUserId fails to return a valid client - meaning it will return "0". As the client ID 0 is "console", it should be ignored in code that handles existing clients.

walliski commented 1 year ago

Fixes #291 and #210.

walliski commented 1 year ago

Nvm, seems like it doesn't? So it seems like the arena is actually not set then..?

walliski commented 1 year ago

Hmm, or maybe together with the mp_disconnect_kills_players 0 cvar that is mentioned in the issues.