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

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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:
    44 
    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 - 19830 views - 7.4 KB)
    __________________

    Last edited by MasterMe; 04-11-2014 at 14:07. Reason: Updated Plugin to Version 1.1
    MasterMe is offline
     



    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 18:40.


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