s1lentq / ReGameDLL_CS

:hammer: Reverse-engineered gamedll (CS 1.6 / CZero)
GNU General Public License v3.0
578 stars 198 forks source link

RG_CBasePlayer_SwitchTeam issue #759

Open TheKrytyk opened 2 years ago

TheKrytyk commented 2 years ago

Hello, as described:

` /*

and if cs_set_user_team is used in another plugin to change the team, unfortunately the event does not take place ...

justgo97 commented 2 years ago

I guess that forward is called when you use rg_join_team native.

TheKrytyk commented 2 years ago

So can event detect when AMXMODX uses cs_set_user_player by default?

justgo97 commented 2 years ago

I guess a reliable method would be creating a wrapper for cs_set_user_team and executing a custom forward that you can use later in other plugins.

steelzzz1337 commented 2 years ago

I guess a reliable method would be creating a wrapper for cs_set_user_team and executing a custom forward that you can use later in other plugins.

Try to hook event 'TeamInfo'