View Single Post
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 04-27-2007 , 12:35   Re: Ptahhotep's Team Balancer 1.8b3 (Immunity & alive trans)
Reply With Quote #191

@xMBx

Change row 714
Code:
if (PTB_AUTOROUNDS && (iOldTeam==UNASSIGNED) && roundCounter<=PTB_AUTOROUNDS && !(get_user_flags(id) & ADMIN_KICK))
to
Code:
if (PTB_AUTOROUNDS && (iOldTeam==UNASSIGNED) && roundCounter<=PTB_AUTOROUNDS && !(iNewTeam == SPECTATOR) )
And after row 66 you need to add
Code:
#define SPECTATOR 3
Then compile the ptb.sma
I have not tested this but it should work.
Please tell me if it works for you

Maybe this should be added by deafult as many players want to join spectator to record cheaters even right after a mapchange.
As it is now you have to be an admin with the kick flag to be able to join spectator directly after a mapchange

edit
If you dont want to force players autojoin a team then you have to set
amx_ptb autorounds 0
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/

Last edited by lantz69; 04-27-2007 at 13:00.
lantz69 is offline