/*** * plugin_lucifex_noadminvote.sma * * This plugin by Lucifex * Written for use on Evil Geniuses for a Better Tomorrow * Counter-Strike Server 209.37.250.123 * Website http://egbt.frontlinenet.com * * plugin_lucifex_noadminvote.sma beta version .03 July 12, 2002 * By: Lucifex Server: EGBT 209.37.250.123 * ***/ #include <core> #include <console> #include <string> #include <admin> #include <adminlib> new STRING_VERSION[MAX_DATA_LENGTH] = "0.00.03"; public plugin_init() { plugin_registerinfo("Lucifex's vote plugin.","No votes with admin present.",STRING_VERSION); plugin_registercmd("admin_vote_restart","NoAdminVote",ACCESS_ALL,""); plugin_registercmd("admin_vote_kick","NoAdminVote",ACCESS_ALL,""); plugin_registercmd("admin_vote_map","NoAdminVote",ACCESS_ALL,""); return PLUGIN_CONTINUE; } public NoAdminVote(HLCommand, HLData, HLUserName, UserIndex){ new i; new maxplayers = maxplayercount(); new Name[MAX_NAME_LENGTH]; new User[MAX_NAME_LENGTH]; new Data[MAX_DATA_LENGTH]; new Command[MAX_COMMAND_LENGTH]; new bool:bAdminPresent = false; convert_string(HLCommand,Command,MAX_COMMAND_LENGTH); convert_string(HLData,Data,MAX_DATA_LENGTH); convert_string(HLUserName,User,MAX_NAME_LENGTH); if( access(ACCESS_BAN,User)!=0 ) return PLUGIN_CONTINUE; for(i=1; i<=maxplayers; i++) { strinit(Name); if(playerinfo(i,Name,MAX_NAME_LENGTH)==1) { if( access(ACCESS_BAN,Name)!=0 ) { bAdminPresent = true; } } } if ( bAdminPresent == true ) { execclient(User, "speak ^"access denied _comma you slime^""); selfmessage("No voting with admin present."); return PLUGIN_HANDLED; } return PLUGIN_CONTINUE; }