Raised This Month: $ Target: $400
 0% 

Force team before selecting one


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 09-09-2007 , 22:12   Force team before selecting one
Reply With Quote #1

I'm trying to make a custom team menu by blocking the vgui and text team menus. I have the new menu showing up but it doesn't want to set the teams properly.

For some reason when it sets the users team, then forces a respawn, the user will be in 'spectate?' mode and randomly fall from the sky.

I tried using fakemeta 'pev_team' and the cstrike modules 'cs_set_user_team'.

The weird thing is that it works fine if the user was already on a team when calling the functions, but if you call the functions before selecting a team is when it will mess up.
hlstriker is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-09-2007 , 22:36   Re: Force team before selecting one
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?p=438587
__________________
Arkshine is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 09-10-2007 , 13:28   Re: Force team before selecting one
Reply With Quote #3

Thanks, I got the player to spawn correctly (I just needed to call joinclass).

Now is there a way to force someone into spectate? It's the same problem I was having at first trying to spawn a player on a team correctly. The player says they are in spectate on the scoreboard, but they still just drop from the info_player_start points. I even tried to call 'joinclass' for the spectator but it didn't work.

There must be some command to fully put the player in spectate.
hlstriker 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 16:04.


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