AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D(2)] AFK and Join Team Commands (1.1) (https://forums.alliedmods.net/showthread.php?t=122476)

MasterMe 03-27-2010 12:37

[L4D(2)] AFK and Join Team Commands (1.1)
 
1 Attachment(s)
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

chris1701 03-27-2010 12:48

Re: [L4D(2)] AFK and Join Team Commands
 
Useful plugins. Finally registered these joining and afk commands :)

IronWarrior 03-27-2010 12:50

Re: [L4D(2)] AFK and Join Team Commands
 
Really nice, will this work in L4D2 too?

MasterMe 03-27-2010 15:16

Re: [L4D(2)] AFK and Join Team Commands
 
Quote:

Originally Posted by IronWarrior (Post 1130454)
Really nice, will this work in L4D2 too?

Actually, I only tested this is my L4D2 server. ;)
Works great, no bugs I found on my server.
Also tested on full teams, when you try to go to a full team,
The window when you press "M" comes up.

Works great on L4D2, and on L4D to. (I'm sure about that.)

-MasterMe

MasterMe 03-27-2010 16:10

Re: [L4D(2)] AFK and Join Team Commands : Update to Version 1.1
 
Updated to Version 1.1, see changelog for details.

IronWarrior 04-02-2010 02:34

Re: [L4D(2)] AFK and Join Team Commands (1.1)
 
Would it be possible for you make it so when a player has been idle at the start of a round for more then x so minutes it sends them to spectator please?

So a cvar to set how long it kicks them to spectator in the first few minutes of a round starting?

MasterMe 04-04-2010 05:08

Re: [L4D(2)] AFK and Join Team Commands (1.1)
 
Quote:

Originally Posted by IronWarrior (Post 1136228)
Would it be possible for you make it so when a player has been idle at the start of a round for more then x so minutes it sends them to spectator please?

So a cvar to set how long it kicks them to spectator in the first few minutes of a round starting?

I'll put that on my "Request List" and release it as soon as possible.

-MasterMe

trimi_dogg 04-04-2010 08:28

Re: [L4D(2)] AFK and Join Team Commands (1.1)
 
i saw a server had a plugin something like yours idk if it was the same but there was an extra string i think like when you try to join a team wich is full it will give you an info it's full also when someone leaves it will tell you there is a free slot in this team

IronWarrior 04-08-2010 11:31

Re: [L4D(2)] AFK and Join Team Commands (1.1)
 
I would also suggest adding a cvar to disable/enable this plugin, people like that.

Toqom 04-10-2010 16:51

works with vs_max_team_switches 1

...and on my 12 player versus server


All times are GMT -4. The time now is 12:03.

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