Raised This Month: $32 Target: $400
 8% 

Detect a player join team


Post New Thread Reply   
 
Thread Tools Display Modes
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 01-22-2008 , 05:27   Re: Detect a player join team
Reply With Quote #11

Quote:
Originally Posted by pharse View Post
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.
Yes, and that's what I need, because it's a mod with respawn (utons) and he should respawn

conorr, your code is too complicated

but I don't see the code working i placed a client_print on the event and it doesn't print it when I change teams
__________________

Last edited by Hunter-Digital; 01-22-2008 at 05:37.
Hunter-Digital is offline
pharse
Senior Member
Join Date: Jan 2008
Location: Germany, BW
Old 01-22-2008 , 10:11   Re: Detect a player join team
Reply With Quote #12

Oh, right, sorry, this event should have the "a" flag, not "b", since it is public ("XXX is joining the Counter-Terrorist force"). So no player id is passed.... hm perhaps have a look at the PTB script. It can block joining the winning team, which means that the team select menu is somehow hooked.
__________________
pharse is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 01-22-2008 , 23:04   Re: Detect a player join team
Reply With Quote #13

Quote:
Originally Posted by X-olent View Post
wouldnt the 'TeamInfo' approach be ineffective since its used to use colored chat messages?
nope, amxx sent messages are not hooked
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 01-07-2010 , 17:37   Re: Detect a player join team
Reply With Quote #14

I'm making a plugin for locking teams, how can I redirect the player to the team choose menu if he chooses a locked team?
Seta00 is offline
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 05-07-2016 , 10:31   Re: Detect a player join team
Reply With Quote #15

This function works only when the player joins the first team or any team?
__________________
skz is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode