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

Switch Player to Spectator


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-08-2022 , 22:19   Re: Switch Player to Spectator
Reply With Quote #11

Quote:
Originally Posted by MrPickles View Post
PHP Code:
engclient_cmdClient"jointeam""3"); 
maybe with?
That won't work in all cases (cases were cs_set_user_team() would work).
__________________
fysiks is offline
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 08-08-2022 , 23:36   Re: Switch Player to Spectator
Reply With Quote #12

Quote:
Originally Posted by fysiks View Post
That won't work in all cases (cases were cs_set_user_team() would work).
in what cases doesnt work? cause i use it and i had no problems, maybe i forget something
MrPickles is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-09-2022 , 01:26   Re: Switch Player to Spectator
Reply With Quote #13

Changing the teams multiple times in a round for example, whereas CS only lets once, by forcing jointeam command. Also, it'll force the kill event on the player, whereas cs_set_user_team() won't. Don't forget about the jointeam 6, which requires you being dead, whereas cs_set_user_team() won't.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-09-2022 , 01:30   Re: Switch Player to Spectator
Reply With Quote #14

Quote:
Originally Posted by MrPickles View Post
in what cases doesnt work? cause i use it and i had no problems, maybe i forget something
Many client commands have limitations that prevent them from being executed at certain times. In the case of changing teams, you can change a team after having just changed teams (not sure what event or time allows you to change teams again in Counter-Strike 1.6).
__________________
fysiks is offline
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 08-09-2022 , 01:39   Re: Switch Player to Spectator
Reply With Quote #15

Thanks guys!, there are many instances where it would not work
MrPickles 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 02:54.


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