switch player to spec
im using this code to switch player to spec but for some reason its glitching. it switches the player to spec for 5 seconds and then switches them back to their old team. when u tab it shows ur on ur old team but ur really in spec and wont spawn next round or round after that. any1 know why the score board is glitching heres the code
Code:
stock fm_set_user_team(id, CsTeams:team) |
Re: switch player to spec
Does cs_set_user_team() not work?
|
Re: switch player to spec
Depending on what you want, you can also use :
dllfunc(DLLFunc_ClientPutInServer, id) |
Re: switch player to spec
naw cs_set_user_team does hte same thing ill try the clientputinserver thing
|
Re: switch player to spec
Quote:
|
Re: switch player to spec
Quote:
PHP Code:
|
Re: switch player to spec
what would i replace with
Code:
(g_menuOption[id] % 3) + 1to make it become spectator |
Re: switch player to spec
CS_TEAM_SPECTATOR, or 3
|
Re: switch player to spec
You can use this instead of your code:
PHP Code:
Also, this code doesn't require cstrike tags. :D |
Re: switch player to spec
g_Msg_TeamInfo = get_user_msgid("TeamInfo")?? in plugin_init
and if so it just puts me in spec for 2 seconds and then back to my old team. but i dont respawn on new round i just stay dead |
| All times are GMT -4. The time now is 09:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.