Remember Spectators v1.2.5
10 Attachment(s)
*Only tested in L4D*
This will remember who is on the spectator team when the map changes. Once the new maps loads it will move the players back into the spectator team. CVAR: remember_spec_version Version 1.0.0: Initial Release Version 1.1.0: Minor bug fixing (validating clients). Thanks olj! Version 1.1.1: Stupid bugs... hopefully fixed validation.. Version 1.2.0: Added a check when player changes teams Version 1.2.1: Forgot to add client validation again... :shock: Version 1.2.2: Testing Version... Version 1.2.3: More minor bug fixes Version 1.2.4: Smashing tiny bugs Version 1.2.5: Bug fix. |
Re: [L4D] Remember Spectators
Nice work, bman.
I always had the problem when a player would go spectate right about the time the map would change. It would force the player to join the infected or the survivor team while still being afk, thus ruining the game for everyone. This will save me a lot of trouble. Thanks. Btw, got some error logs. Code:
L 08/20/2009 - 00:01:39: SourceMod error session started |
Re: [L4D] Remember Spectators
This should work in other mods, but team numbers would be totally different, so you will have to adjust this.
Add this function somewhere in code, then use IsValidClient check before GetClientTeam on 38 line EDIT: we dont want to do IsPlayerAlive check, so comment this out. PHP Code:
|
Re: [L4D] Remember Spectators *v1.1*
Thanks. But the error message is still their with the new version.
Code:
L 08/20/2009 - 10:21:56: SourceMod error session started |
Re: [L4D] Remember Spectators *v1.1*
There is no reason why adding valid client checking would screw this. Was there any other changes form 1.0?
|
Re: [L4D] Remember Spectators *v1.1*
Don't know either. The plugin works but those error messages needs to be taken care of.
I think he only did what you said yesterday, can't see anything different from 1.0 and 1.1 |
Re: [L4D] Remember Spectators *v1.1*
Quote:
EDIT: OH, well, validation check should be put BEFORE Any other checks. Can you swap this on your self? I cant edit 1st post. |
Re: [L4D] Remember Spectators *v1.1*
Yeah.
|
Re: [L4D] Remember Spectators *v1.1*
You mean at line 38?
|
Re: [L4D] Remember Spectators *v1.1*
Quote:
|
All times are GMT -4. The time now is 14:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.