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

Changing Teams in CS-Source without choosing Skin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Roger Devil
Senior Member
Join Date: Dec 2004
Location: Germany
Old 10-31-2006 , 09:42   Changing Teams in CS-Source without choosing Skin
Reply With Quote #1

Hi,
i want to swap a player to the opposite team without killing him and showing him the dialog for choosing a model.
I know MANI has implemented something like this, but i can not figure out how its done.
The normal function playerinfo->ChangeTeam( x ) always kills the player and show him the Model-Dialog.

Can someone help me out ????
Roger Devil is offline
Send a message via ICQ to Roger Devil
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 10-31-2006 , 10:48   Re: Changing Teams in CS-Source without choosing Skin
Reply With Quote #2

Das kannste mit CCSPlayer::SwitchTeam machen...
Aber dann musste das Model selbst ändern
Knagg0 is offline
Roger Devil
Senior Member
Join Date: Dec 2004
Location: Germany
Old 10-31-2006 , 12:32   Re: Changing Teams in CS-Source without choosing Skin
Reply With Quote #3

You mean CCSPlayer::ChangeTeam(int nTeam ). I havent found any function named SwitchTeam() !!
Roger Devil is offline
Send a message via ICQ to Roger Devil
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 10-31-2006 , 17:08   Re: Changing Teams in CS-Source without choosing Skin
Reply With Quote #4

Nein ich mein CCSPlayer::SwitchTeam(int iTeamNum)

Symbol: _ZN9CCSPlayer10SwitchTeamEi
Signatur: 83 EC 10 56 57 8B 7C 24 1C 57 8B F1 E8 8F 54 F9
Knagg0 is offline
Roger Devil
Senior Member
Join Date: Dec 2004
Location: Germany
Old 11-01-2006 , 09:59   Re: Changing Teams in CS-Source without choosing Skin
Reply With Quote #5

Thanks, so i have to find the signature of SwitchTeam().

I have done this already for others, so i know what to do.
Roger Devil is offline
Send a message via ICQ to Roger Devil
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 13:12.


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