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

Allowing players to switch to spectate


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shinji
Junior Member
Join Date: Apr 2012
Old 04-02-2012 , 20:20   Allowing players to switch to spectate
Reply With Quote #1

How do I configure the server to allow a player to spectate after they have joined a team? In addition to this it would be nice if I could set it up so when players are dead they can spectate anyone regardless of team.

Last edited by shinji; 04-02-2012 at 20:58.
shinji is offline
pillepallus
Senior Member
Join Date: Oct 2011
Old 04-02-2012 , 20:48   Re: Allowing players to switch to spectate
Reply With Quote #2

mp_allowspectators "1"
pillepallus is offline
shinji
Junior Member
Join Date: Apr 2012
Old 04-02-2012 , 20:55   Re: Allowing players to switch to spectate
Reply With Quote #3

I tried that already but it don't work. You can choose spectate at the beginning but you can't switch to the spectate team without rejoining the server. My config file will probably be useful. Rcon password and email removed.

Code:
hostname Clan LBZ -= Not Recruiting =-
rcon_password REMOVED
exec banned_user.cfg
exec banned_ip.cfg
mp_logdetail 0
mp_logmessages 1
mp_timelimit 60
mp_autokick 0
mp_autoteambalance 0
mp_c4timer 30
mp_flashlight 0
mp_footsteps 1
mp_forcechasecam 0
mp_freezetime 3
mp_friendlyfire 0
mp_hostagepenalty 4
mp_limitteams 1
mp_roundtime 4
mp_tkpunish 0
sv_restartround 1
sv_maxspeed 320
sv_proxies 1
allow_spectators 90
mp_startmoney 800
mp_chattime 5
sv_allowupload 1
sv_voiceenable 1
sv_alltalk 1
sv_voicequality 5
sv_voicecodec vaudio_speex
pausable 0
decalfrequency 40
mp_falldamage 1
sv_aim 0

//Enabling sv_cheats will allow anyone to execute rcon commands and add/remove admins
sv_cheats 0

sv_maxrate 30000
sv_minrate 0
sv_lan 0
sv_contact [email protected]
sv_region 0
sv_maxupdaterate 120
sv_minupdaterate 20
sv_unlag 1
sv_maxunlag .5
host_framerate 0

// Redirect downloads to remote server... :)
//sv_downloadurl ""
shinji is offline
pillepallus
Senior Member
Join Date: Oct 2011
Old 04-02-2012 , 21:16   Re: Allowing players to switch to spectate
Reply With Quote #4

mp_forcecamera = "0" (restricts spectator modes for dead players, default is 1 so u need to add)
pillepallus is offline
shinji
Junior Member
Join Date: Apr 2012
Old 04-03-2012 , 00:12   Re: Allowing players to switch to spectate
Reply With Quote #5

Thanks guys for that. Oddly enough after setting mp_forcecamera I noticed the spectate option show up when I was dead. Do you know if there is a way to get that option to show while I'm alive?
shinji is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 04-03-2012 , 06:37   Re: Allowing players to switch to spectate
Reply With Quote #6

I believe mp_allowspectators 2 might be the command you're looking for. I think 0 doesn't allow spectating at all, 1 only allows you to switch to spectate when dead, and 2 allows you to switch whenever you want.

But I could be making that up.
__________________
Boycott ESEA
My servers
ghostofmybrain is offline
pillepallus
Senior Member
Join Date: Oct 2011
Old 04-03-2012 , 10:57   Re: Allowing players to switch to spectate
Reply With Quote #7

@shinji: please try 0-2 and please report what happen. so we know more too. thanks!
pillepallus is offline
shinji
Junior Member
Join Date: Apr 2012
Old 04-03-2012 , 18:52   Re: Allowing players to switch to spectate
Reply With Quote #8

Quote:
Originally Posted by pillepallus View Post
@shinji: please try 0-2 and please report what happen. so we know more too. thanks!
I checked and only 0 and 1 did anything. 0 disallows and 1 allows but only when dead or before actual round start (during freeze). 2 does the same as 1. I went back and checked and the server that I thought had it so you could go to spectate during play didn't actually allow that.
shinji is offline
pillepallus
Senior Member
Join Date: Oct 2011
Old 04-03-2012 , 19:02   Re: Allowing players to switch to spectate
Reply With Quote #9

Quote:
Originally Posted by shinji View Post
I checked and only 0 and 1 did anything. 0 disallows and 1 allows but only when dead or before actual round start (during freeze). 2 does the same as 1. I went back and checked and the server that I thought had it so you could go to spectate during play didn't actually allow that.
thank u for info!

here some plugins for more options if needed:

AMXX: http://forums.alliedmods.net/showthread.php?t=64326
SM: http://forums.alliedmods.net/showthread.php?t=157498
pillepallus is offline
shinji
Junior Member
Join Date: Apr 2012
Old 04-03-2012 , 19:04   Re: Allowing players to switch to spectate
Reply With Quote #10

That will work. Thanks!
shinji 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 07:42.


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