Raised This Month: $ Target: $400
 0% 

force team join


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Major__
Junior Member
Join Date: Jan 2007
Old 02-09-2007 , 15:07   force team join
Reply With Quote #1

Ok, ive posted here before about autojoining, i got to know that i had to use cs_set_user_team inside public client_putinserver(){}

However, I do not want to display the screens after motd, (The select team, and select model). I want them to join either T och CT directly. Is it posible to accomplish this?

I have experimented with cs_set_uset_team. it seems that if a player is SPEC, and i force him to T or CT, his model is still SPEC. So, when force:ing his model to a T or CT-one, he doesnt have any weapons, health, money, etc...? Iv'e tried with spawn() and cs_user_spawn(). It seems that the only way to get them from spec to CT or T is to use: client_cmd(id, "jointeam 1") for example. I want to use cs_set_user_team(), but how can i give them a good model and knife, gun, health and $800 when i force the switch?
Major__ is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-09-2007 , 15:23   Re: force team join
Reply With Quote #2

What's wrong with jointeam client command method?
VEN is offline
Major__
Junior Member
Join Date: Jan 2007
Old 02-09-2007 , 16:22   Re: force team join
Reply With Quote #3

Well. i think its a bit "ugly" to use...

Besides, i want to block all usage of jointeam and chooseteam-menus...
Major__ is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-10-2007 , 03:57   Re: force team join
Reply With Quote #4

If you would compare the both ways, jointeam method should be better. I do not see why it can be "ugly", well let's say so. But the first way is much more ugly/hacky, so anyway... I'd prefer just to emulate join* commands to let the game do all other stuff itself, like proper spawn etc, instead of recoding the whole join functionality. Anyway if you feel like not going efficient way, it's your choice.
VEN is offline
Major__
Junior Member
Join Date: Jan 2007
Old 02-11-2007 , 08:04   Re: force team join
Reply With Quote #5

yeah. i get your ponit.

So, how do i block the meny "Select team" from appering at all? (The menu after motd)
Major__ is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-11-2007 , 08:49   Re: force team join
Reply With Quote #6

Code:
public plugin_init()     register_event("ShowMenu", "block_ChooseTeam", "b", "3=#Team_Select_Spect") public block_ChooseTeam(id)     show_menu(id, 0, " ", 1, "#Team_Select_Spect")
[ --<-@ ] Black Rose is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-11-2007 , 11:22   Re: force team join
Reply With Quote #7

EDIT: here is the better example: Auto Join on Connect

Last edited by VEN; 02-11-2007 at 13:40.
VEN 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:36.


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