Team Change Event ?
Hi i'm making a plugin and i need to check when a player is changing the team and i mean like this for example if i'm on CT team and i change the team with cs_set_user_team to T how can i check that i have change the team and yes i have test it with register_event( "TeamInfo", "event_team_info", "a" ); but it doesn't work.
PHP Code:
|
Re: Team Change Event ?
Create a new bool and set it to true when someone is changing team, then reset it when you need ( without more info we can't know what you are trying to do ).
|
Re: Team Change Event ?
Quote:
PHP Code:
|
Re: Team Change Event ?
you dont understand i only want to know how to check when a player is changing the team
PHP Code:
|
Re: Team Change Event ?
|
Re: Team Change Event ?
Because what you posted won't work for him, as you cannot hook the change via cs_set_user_team() with TeamInfo. You'll be able to hook the TeamInfo fired at next spawn though.
|
Re: Team Change Event ?
If you are changing someone team with a plugin, you already know when they change teams (when you execute the function; which you are not doing correctly BTW).
If you want helpful advice, you should explain in detail of what you are actually trying to do. |
Re: Team Change Event ?
Quote:
|
Re: Team Change Event ?
How would you detect the change without adding custom natives or forwards when you, lets pretend, dont have acess (again: let's just pretend this) to the changing-team plugins sma?
|
Re: Team Change Event ?
Quote:
|
| All times are GMT -4. The time now is 13:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.