Raised This Month: $ Target: $400
 0% 

Method to Auto-Select Team w/o Showing Team Menu?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-27-2005 , 07:01   Method to Auto-Select Team w/o Showing Team Menu?
Reply With Quote #1

Does anyone know if there's a way to automatically assign a player to a team when they connect without having them see the team select menu?

I'm thinking along the lines that they connect to the server, breeze through the MOTD, and then are presented with the class select menu rather than the team select menu.
Brad is offline
DarlD
Senior Member
Join Date: Aug 2004
Old 12-27-2005 , 07:07  
Reply With Quote #2

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

would'nt this work?
__________________
DarlD is offline
Send a message via MSN to DarlD
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 12-27-2005 , 12:19  
Reply With Quote #3

Lol?
Code:
#include <amxmodx>
#include <cstrike>

public client_connect(id)
{
         cs_set_user_team()
}
be nice at least include the inclues for him :O hahaha lol...
Styles is offline
Send a message via AIM to Styles
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-27-2005 , 13:38  
Reply With Quote #4

I'm THIS far from slapping you both upside the head.
Brad is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-27-2005 , 16:24  
Reply With Quote #5

Quote:
Originally Posted by Brad
I'm THIS far from slapping you both upside the head.
'

I would have done it more like this.

"I'm |---| this far from slapping you both upside the head."
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-27-2005 , 16:58  
Reply With Quote #6

I thought about doing it a similar way but I didn't feel it flowed nicely enough.

As it is, teame06 shared with me a way to do it. I'm going to test it and after I see how well it works, I'll post it.
Brad is offline
bubbacs
Member
Join Date: Sep 2005
Old 12-28-2005 , 17:26   team select
Reply With Quote #7

I would be very interested in this plugin also.
I can test on two servers now!
I have tried but can't get a version done and to work right.

Let me know if I can help in any way.

Thanks.
bubbacs is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 12-29-2005 , 11:02  
Reply With Quote #8

I already done this a while ago.
Just use jointeam N on putinserver.
VEN is offline
bubbacs
Member
Join Date: Sep 2005
Old 12-29-2005 , 13:27  
Reply With Quote #9

haha
care to explain that to a 51 yr old man?

i really cant understand that.

not trying to be rude.

just some things have flown past me now a days.


Thanks.
bubbacs is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 12-29-2005 , 16:29  
Reply With Quote #10

I guess forcing ppl into teams can only be done in client_putinserver since on client_connect they are still connecting, and you should AlWaYs tell the user why they were forced to join a specific team.
Then bind a function to the command clients use to choose teams (sry, forgot it ) which displays a msg "You aren't allowed to switch teams yourself here." or something, to prevent ppl joining the team they want to after playing a round or two...

I'm not sure if you can prevent this "initial" team selection menu from showing up at all, since client_putinserver is actually called if the client chose a team. But I guess it is the only way to get what you want, just write into the MotD of the server a line like "Choose your team, but don't think you'll always get the team you want " to make clear whuzzup ^^

Greetz MGee
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
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 15:54.


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