View Single Post
Author Message
crazydog
AlliedModders Donor
Join Date: Jan 2006
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