Raised This Month: $ Target: $400
 0% 

[L4D2] All admin team configs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
crazydog
AlliedModders Donor
Join Date: Jan 2006
Plugin ID:
2181
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Executes a config if all players on team are admins, and when all are not admins
    Old 01-18-2011 , 23:52   [L4D2] All admin team configs
    Reply With Quote #1

    This is a simple little plugin I was using for myself. Modified to execute a config rather than run hardcoded commands.

    Requires two cfg files:
    cfg/sourcemod/adminconfig/not_admins.cfg
    cfg/sourcemod/adminconfig/all_admins.cfg

    Cvar:
    sm_adminconfig_team - Which team to check for admins [survivor/infected] - DEFAULT: infected


    In a nutshell:
    If all players on team sm_adminconfig_team are admins, all_admins.cfg is executed.
    If at least one player on team sm_adminconfig_team is not an admin, not_admins.cfg is executed.

    Example usage: When you want a plugin running only when admins are on a team.

    Code:
    Changelog:
    
    1.0 (1/18/11)
    -Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_adminconfig.sp - 9 views - 2.4 KB)

    Last edited by crazydog; 01-18-2011 at 23:55.
    crazydog 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 13:02.


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