This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[CSGO] I try to lock steamid to team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mustang09
Junior Member
Join Date: Jan 2017
Old 01-25-2017 , 14:33   [CSGO] I try to lock steamid to team
Reply With Quote #1

When client joins server after a freeze time, client have to spec his team but when I used CS_SwitchTeam() to assign client to team client didn't spec his team and be like CCTV on A or B site. Then I need to know how to force client to spec his team.

Last edited by mustang09; 02-11-2017 at 02:20.
mustang09 is offline
blaacky
Senior Member
Join Date: Oct 2012
Old 01-25-2017 , 18:01   Re: [CSGO] I try to lock steamid to team
Reply With Quote #2

Try using AddComandListener on the "jointeam" command and block it. Inside the command listener, use CS_SwitchTeam and CS_RespawnPlayer.
blaacky is offline
mustang09
Junior Member
Join Date: Jan 2017
Old 01-25-2017 , 23:47   Re: [CSGO] I try to lock steamid to team
Reply With Quote #3

Quote:
Originally Posted by blaacky View Post
Try using AddComandListener on the "jointeam" command and block it. Inside the command listener, use CS_SwitchTeam and CS_RespawnPlayer.
I dont want client spawn after round_freeze_end. Please looks at putPlayerToTeam function it will be called when client joined server. And then looks at roundState != 1 it means after round_freeze_end.

Last edited by mustang09; 02-11-2017 at 02:20.
mustang09 is offline
mustang09
Junior Member
Join Date: Jan 2017
Old 01-27-2017 , 02:28   Re: [CSGO] I try to lock steamid to team
Reply With Quote #4

I have solved the problem!
I Just try change some value of entity m_iObserverMode and m_hObserverTarget after cs_switchteam. but I think some entity is missing, does It has other observer entity?
mustang09 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 14:01.


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