11-04-2014: I'm back and will actively support this plugin again.
EDIT 05-05-2011: I probably won't update this anymore since I haven't used sourcemod for a long time and don't feel like it anymore, feel free to edit it and post it in a reply here or if there are a lot of changes you can start your own thread and give us the link.
Greetings, MasterMe.
Hello everybody!
This is my first plugin that really works.
It adds all those commands:
To
spectate:
Code:
sm_afk
sm_away
sm_idle
sm_joinspectator
sm_jointeam1
sm_spectate
sm_spectators
To join
Survivors:
Code:
sm_joinsurvivors
sm_jointeam2
sm_survivors
To join
Infected:
Code:
sm_infected
sm_joininfected
sm_jointeam3
There is just 1 CVAR: "afk_spectate_commands_version", the CVAR explaines itself. ;)
All commands work with '
!' before it and should do with a '
/' to.
Feel free to edit the code to remove some commands, or add some.
I hope this is usefull.
To do list:
- Add a Check if Game is L4D2/L4D
- Add a method that also works when "vs_max_team_changes" is set to a low number.
Request list:
- Make a timer to put player to spectate and kick, and (a) convar( to setup time)
Test this list:
-On versus, test if this works with "vs_max_team_switches" to a low value (default is '1'), and try to change a few times, the game shouldn't say "You've reached the maximum team switches on this map.", if it does, let me know it. (I haven't got time to test this yet.)
Editing the commands: adding/removing.
Just open up the .SP file (source file), and read the normal English lines (they start with '//' or with '/*' and end with '*/').
Changelog:
Code:
V 1.1 - Easy Editing and Changelog.
Added a changelog on this topic and in the .SP file.
Added a editing guide for adding/removing commands in the .SP file.
V 1.0 - Initial Release :
Release on AlliedModders.
V Beta - Tested on my server :
Creating/Testing the plugin on my server.
-MasterMe