Hook team Join.
How to hook Team Join event? If he joined a team, except for spectator, i want to show him a menu.
|
Re: Hook team Join.
Hook the TeamInfo event.
|
Re: Hook team Join.
Note that teaminfo also calls at roundstart.
|
Re: Hook team Join.
Can you give me an example of it? so i know how to work with it.
|
Re: Hook team Join.
Check the value from the TeamInfo event for the player's team against the last time the TeamInfo event was called for that player.
If the new team is a valid team (CT or Terrorist) and is not the same as the old team, then the player changed (or joined) to that team. |
Re: Hook team Join.
Like i told you, i don't know how to work with this, and i asked for an example. I tried this but it didn't work any help?
PHP Code:
|
Re: Hook team Join.
|
Re: Hook team Join.
Quote:
|
Re: Hook team Join.
Now, if i join the server, and i press 1. for Terrorist. After the menu of Team Choose popped up, the menu that i'm joining if changing to another team pops up...
Should i use set_task() for this, or is there another solution for this? |
| All times are GMT -4. The time now is 07:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.