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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MasterMe
Member
Join Date: Mar 2010
Location: Netherlands
Plugin ID:
1562
Plugin Version:
1.1
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    36 
    Plugin Description:
    Adds a lot of commands to go AFK or join a team.
    Old 03-27-2010 , 12:37   [L4D(2)] AFK and Join Team Commands (1.1)
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_afk_commands.sp - 19750 views - 7.4 KB)
    __________________

    Last edited by MasterMe; 04-11-2014 at 14:07. Reason: Updated Plugin to Version 1.1
    MasterMe is offline
    chris1701
    Senior Member
    Join Date: Nov 2009
    Old 03-27-2010 , 12:48   Re: [L4D(2)] AFK and Join Team Commands
    Reply With Quote #2

    Useful plugins. Finally registered these joining and afk commands
    chris1701 is offline
    IronWarrior
    Veteran Member
    Join Date: Jan 2010
    Old 03-27-2010 , 12:50   Re: [L4D(2)] AFK and Join Team Commands
    Reply With Quote #3

    Really nice, will this work in L4D2 too?
    IronWarrior is offline
    MasterMe
    Member
    Join Date: Mar 2010
    Location: Netherlands
    Old 03-27-2010 , 15:16   Re: [L4D(2)] AFK and Join Team Commands
    Reply With Quote #4

    Quote:
    Originally Posted by IronWarrior View Post
    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
    __________________

    Last edited by MasterMe; 03-27-2010 at 16:14.
    MasterMe is offline
    MasterMe
    Member
    Join Date: Mar 2010
    Location: Netherlands
    Old 03-27-2010 , 16:10   Re: [L4D(2)] AFK and Join Team Commands : Update to Version 1.1
    Reply With Quote #5

    Updated to Version 1.1, see changelog for details.
    __________________
    MasterMe is offline
    IronWarrior
    Veteran Member
    Join Date: Jan 2010
    Old 04-02-2010 , 02:34   Re: [L4D(2)] AFK and Join Team Commands (1.1)
    Reply With Quote #6

    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?
    IronWarrior is offline
    MasterMe
    Member
    Join Date: Mar 2010
    Location: Netherlands
    Old 04-04-2010 , 05:08   Re: [L4D(2)] AFK and Join Team Commands (1.1)
    Reply With Quote #7

    Quote:
    Originally Posted by IronWarrior View Post
    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
    __________________
    MasterMe is offline
    trimi_dogg
    New Member
    Join Date: Mar 2010
    Old 04-04-2010 , 08:28   Re: [L4D(2)] AFK and Join Team Commands (1.1)
    Reply With Quote #8

    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
    trimi_dogg is offline
    IronWarrior
    Veteran Member
    Join Date: Jan 2010
    Old 04-08-2010 , 11:31   Re: [L4D(2)] AFK and Join Team Commands (1.1)
    Reply With Quote #9

    I would also suggest adding a cvar to disable/enable this plugin, people like that.
    IronWarrior is offline
    Toqom
    Junior Member
    Join Date: Dec 2009
    Old 04-10-2010 , 16:51  
    Reply With Quote #10

    works with vs_max_team_switches 1

    ...and on my 12 player versus server
    Toqom is offline
    Reply


    Thread Tools
    Display Modes

    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 09:02.


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