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