Raised This Month: $51 Target: $400
 12% 

Auto join team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghostdlr
Senior Member
Join Date: Aug 2010
Old 09-03-2010 , 12:44   Auto join team
Reply With Quote #1

I want to place players in a team based on particular criteria, after they load the map . I want to allow them to choose a Model so i can't use cs_set_user_team .

I tried:

public client_authorized(id)
{
set_task(3.0, "sett", id)
}

public sett(id) {
client_cmd(id,"jointeam 1")
}

The problem is this doesn't work each time (sometimes it prints the chooseteam menu because of the authorize time) . Some peoples load the map faster and others slower and this is a big issue .

Does anyone have another idea ?

Last edited by ghostdlr; 09-03-2010 at 12:50.
ghostdlr is offline
TheKidz
Senior Member
Join Date: May 2009
Old 09-03-2010 , 12:52   Re: Auto join team
Reply With Quote #2

autoteambalance 0 ?
__________________
TheKidz is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 09-03-2010 , 12:55   Re: Auto join team
Reply With Quote #3

mp_autoteambalance 0
mp_limitteams 0

also, set_task on 0.5 or 1, not on 3 :-?
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
ghostdlr
Senior Member
Join Date: Aug 2010
Old 09-03-2010 , 13:02   Re: Auto join team
Reply With Quote #4

If I set task on 1 or 0.5 it doesn't work at all because it takes a lot longer for the client to be authorized .
It works all the time with set_task 4 for me but some users might load the game faster and see the default chooseteam menu .

The plugin I'm working on is for a clan war server . It saves the names of the players and forces them to join the same team after retry or reconnection after a period of time .

Any other ideas ?

Last edited by ghostdlr; 09-03-2010 at 13:10.
ghostdlr 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 03:32.


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