Raised This Month: $ Target: $400
 0% 

autojoin teams


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-22-2007 , 05:08   Re: autojoin teams
Reply With Quote #1

so that will be:

Code:
public client_putinserver(id){
cs_set_user_team(id, 1) 
}


client_putinserver is called after clientconnect, at the same time that 'clientbegin' is called(quake engine), it's around the same time when the client starts to see the motd screen/ choosing of the teams.
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Major__
Junior Member
Join Date: Jan 2007
Old 01-22-2007 , 05:18   Re: autojoin teams
Reply With Quote #2

Ah! thank you...

I was fooling around with client_cme(id, "chooseteam;select 1") for a while there
Major__ is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-22-2007 , 05:34   Re: autojoin teams
Reply With Quote #3

Quote:
Originally Posted by Major__ View Post
Ah! thank you...

I was fooling around with client_cme(id, "chooseteam;select 1") for a while there
That solution can be 'hacked/work around' if the client knows that the server has such a plugin,
It can repeatly press the '2' button or whatever the button may be for selecting a team.
that's why you should use cs_set_user_team,instead of 'chooseteam'. Unless the plugin isn't meant for counterstrike, then there are other solutions.
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Reply



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 22:28.


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