AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Moving to spectates properly (https://forums.alliedmods.net/showthread.php?t=121440)

m0v3 03-15-2010 16:48

Moving to spectates properly
 
Hi. How do I need to move a player to spectate properly , when he hasn't still chosen a team ? If I do a cs_set_user_team , then sometimes weird things start.

Jelle 03-15-2010 18:52

Re: Moving to spectates properly
 
This, I think, is not recommended by anyone in here...

But you could, if you have amx super, just make a client_cmd and make them write /spec. I have no idea how the /spec command works at all. Just an idea.

m0v3 03-15-2010 19:14

Re: Moving to spectates properly
 
Why it isn't recommended ? /spec won't work for me , because when player can write /spec , he has already chosen a team. My goal is to put a player to spec or team without choosing it , under certain conditions. Example , if player's name has word H4X , I put him into spec WITHOUT letting to choose where he wants to go. And when he changes it , I can put him into T or CT. The thing is that when a player is put into spec without choosing a team , after being put back , he doesnt have hud and such kind of stuff. It seems to me ( I may be wrong ) that he keeps being in spec somehow , and engine doesnt want to give him suit , glock/usp , etc... Can anyone help ?

If i've written too complicated, tell me , i'll try to explain better.

fysiks 03-15-2010 19:35

Re: Moving to spectates properly
 
Have you looked at this: http://forums.alliedmods.net/showthread.php?t=51098

m0v3 03-15-2010 20:14

Re: Moving to spectates properly
 
Yes. It works fine IF I wanted that the first team would be CT/T. But if I firstly put him into spec , bugs begin.

Jelle 03-15-2010 22:06

Re: Moving to spectates properly
 
Sorry. I did not understand your first post correctly then.

ConnorMcLeod 03-16-2010 02:13

Re: Moving to spectates properly
 
Try engclient_cmd(id, "jointeam", "6")

m0v3 03-16-2010 10:27

Re: Moving to spectates properly
 
ConnorMcLeod

It's the exact way I've been trying. Plugin fysiks mentioned works the same way.

Jelle

Was my second post clear enough? :/

Topic.

I've found link (https://forums.alliedmods.net/showthread.php?t=76179) There people talk about this spectator-first-team bug , but don't give clear solution to it... Has anybody encountered anything like that , and has a tip ?


All times are GMT -4. The time now is 08:39.

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