Closed gabriel-munteanu closed 9 years ago
I don't see the issue. If someone has a fix they are free to create a pull request.
You can try the change on the usermessage-hook branch (https://github.com/splewis/csgo-retakes/commit/b75037c2187263db1bd224f04b1e682a020a4577) and see if it works.
Nope it didn't work. But this works: public Action Event_PlayerTeam(Handle event, const char[] name, bool dontBroadcast) { SetEventBroadcast(event, true);//disable event broadcast return Plugin_Continue; }
Thanks!
Interesting. I'll take a look at using that instead. (It could be quite useful in several of my plugins)
I installed your plugin. I joined the server and when I choose a team the server crashed. In the debug file I found this:
So the problem is from connect_log_fix extension. And I also found this post: https://forums.alliedmods.net/showpost.php?p=2278839&postcount=46 . After a little research in that thread I found this post https://forums.alliedmods.net/showthread.php?p=2203209#post2203209 that explains what is happening. That extension, which is very useful, hooks onto 'FireEvent' and check all the events in search of "player_connect" to set the IP address. I think that this hook is PreHook. Because in your plugin, you block the player_team event, it causes the server crash.
Until you will find a solution for this, I return Plugin_Continue on that hook and see a lots of team changes :D.