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

[AGAIN] Changing Teams


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
za_bullet
Junior Member
Join Date: Nov 2005
Old 05-01-2006 , 08:42   [AGAIN] Changing Teams
Reply With Quote #1

I'm still stuggling with this.

I've tried

doing a playerinfo->ChangeTeams()
doing a jointeam and then joinclass via ClientCommand(..)


Both seem to still pop-up the "choose model" screen for the client. Using the joinclass does add the "0 - Cancel" option (anyway to trigger that?).

Thanks

za.
za_bullet is offline
Send a message via AIM to za_bullet
awuh0
Senior Member
Join Date: Apr 2005
Location: /dev/null
Old 05-01-2006 , 22:01  
Reply With Quote #2

Ive tried to get around this and havent had much luck...

I settled on PLUGIN_STOP on joinclass if the player is alive just to stop them from killing themselves.
__________________
~The_wUh
_________________
Ph34r teh zombies!!!
find a better way to play CSS, connect to...
thewuh.servebeer.com
thecircus.servebeer.com
awuh0 is offline
Send a message via ICQ to awuh0 Send a message via AIM to awuh0 Send a message via MSN to awuh0
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 05-20-2006 , 10:29  
Reply With Quote #3

You can change the team with CBasePlayer::ChangeTeam and there comes no "Choose Model Screen"...

Then you have to change the class with a ClientCommand or with CCSPlayer::HandleCommand_JoinClass (the player dies)
Or you just change the player model (the player doesn't die), but i dont know if it works correct
Knagg0 is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 05-20-2006 , 22:14  
Reply With Quote #4

CCSPlayer::SwitchTeam

You need to sig it.
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
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 14:49.


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