Raised This Month: $ Target: $400
 0% 

autojoin teams


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Major__
Junior Member
Join Date: Jan 2007
Old 01-21-2007 , 23:36   autojoin teams
Reply With Quote #1

Hi all.

have been trying to use cs_set_user_team, Is there some reason why it wont work :

client_connect ( id ){
cs_set_user_team(id, 1)
}


?

It works if the player is on some team allready, but how can i set the team when he/she joins?
Major__ is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-21-2007 , 23:51   Re: autojoin teams
Reply With Quote #2

PHP Code:
public client_putinserver(id)
          
//... 
Other than that, search.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
s p l i t
Senior Member
Join Date: May 2006
Location: US, NC
Old 01-22-2007 , 02:13   Re: autojoin teams
Reply With Quote #3

With the client_connect forward they are not yet fully into the server.
s p l i t is offline
Send a message via AIM to s p l i t Send a message via MSN to s p l i t
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-22-2007 , 05:08   Re: autojoin teams
Reply With Quote #4

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 #5

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 #6

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
Major__
Junior Member
Join Date: Jan 2007
Old 02-06-2007 , 20:09   Re: autojoin teams
Reply With Quote #7

Ok, taking this one step further...

I can place the players in T or CT as i wish using cs_set_user_team, however hlds thinks they are still in spec/unasigned. ive been trying user_kill, user_silentkill and spawn.

This is how i want it: the user connects, he gets the first motdscreen. clicks OK and the team selection menu is NOT shown, he is placed directly in a team. Anyone know how i can accomplish this?
Major__ 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