CSGO - Move all players to spec
Hi,
I'm writing a menu on sourcepawn which one of the options is moving all players to spectate. How can I do this? I've been seeing same examples but I can't find one which I can move all players to spectate, only moving one player. Thanks |
Re: CSGO - Move all players to spec
To move all players to spectator is as simple as iterating client Ids, checking if they are in the game and not spectating, and moving to spectator with ChangeClientTeam() (CS_SwitchTeam() can only switch a client to CT or T):
PHP Code:
|
Re: CSGO - Move all players to spec
Quote:
mrtn, Thanks! That Works :twisted: Now I need to move a specific player, how can I do that? First I need to show each player in the menu and when one player is selected, move to CT or TR. Thanks! |
All times are GMT -4. The time now is 22:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.