Raised This Month: $ Target: $400
 0% 

automatically added to the team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-05-2012 , 11:01   Re: automatically added to the team
Reply With Quote #1

Code:
public client_connect(id)
{
    cs_set_user_team(id, getUserPlacement(id)
}

public getUserPlacement(id)
{
    // some code to determine where you want to put the player
    return CsTeams:team
}
unless you're looking for the actual plugin. in which case....post in the request forum.
Liverwiz is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-05-2012 , 11:03   Re: automatically added to the team
Reply With Quote #2

Quote:
Originally Posted by Liverwiz View Post
Code:
public client_connect(id)
{
    cs_set_user_team(id, getUserPlacement(id)
}

public getUserPlacement(id)
{
    // some code to determine where you want to put the player
    return CsTeams:team
}
unless you're looking for the actual plugin. in which case....post in the request forum.
It's unable to change team in client_connect
The menu for team selecting is shown after client_putinserver and after player closes MOTD too

Edit: client_connect is executed when player is seeing message Establishing connection to server and only three lines from box are charged.
__________________

Last edited by claudiuhks; 05-05-2012 at 11:14.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-05-2012 , 11:06   Re: automatically added to the team
Reply With Quote #3

Quote:
Originally Posted by claudiuhks View Post
It's unable to change team in client_connect
The menu for team selecting is shown after client_putinserver and after player closes MOTD too
boo. It was a nice thought though.
Liverwiz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-06-2012 , 03:52   Re: automatically added to the team
Reply With Quote #4

Quote:
Originally Posted by Liverwiz View Post
Code:
public client_connect(id)
{
    cs_set_user_team(id, getUserPlacement(id)
}

public getUserPlacement(id)
{
    // some code to determine where you want to put the player
    return CsTeams:team
}
unless you're looking for the actual plugin. in which case....post in the request forum.
If you don't already know that this won't work then I suggest that you stop trying to help people unless you have tested the code.
__________________
fysiks 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 00:20.


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