Detect a player join team
I searched the entire forum for this but found absolutly nothing :( , so, how is it possible to detect when a player joins a team ?
I need this to spawn a player when he joins, a round will last some time (30mins or so) and if a player joins in time, spawn him :) I have the spawn function, just need the detection :) PS: for utmod :mrgreen: |
Re: Detect a player join team
There are several ways.
Hooking 'TxtMsg' event, 'TeamInfo' event, 'jointeam'/'joinclass' command... |
Re: Detect a player join team
PHP Code:
|
Re: Detect a player join team
Thank you verry much, you solved 2 of my problems with the link, I saw there the TeamScore event.... that witch I forgot where I'ved seen it :mrgreen:
|
Re: Detect a player join team
wouldnt the 'TeamInfo' approach be ineffective since its used to use colored chat messages?
|
Re: Detect a player join team
Yeah, would be called if you print a color message to a player. :S
|
Re: Detect a player join team
So, what do you recomend me using ? :? (ex code pls :P )
|
Re: Detect a player join team
Quote:
|
Re: Detect a player join team
PHP Code:
#Game_join_terrorist #Game_join_ct NOTE: That function will be called everytime a player changes the team to CT. No matter if he just connected, is alive etc. Put in your own checks. |
Re: Detect a player join team
Have a look there : http://forums.alliedmods.net/showthread.php?t=63818
|
All times are GMT -4. The time now is 08:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.