
   #include <amxmod>
   #include <amxmisc>
   public admin_password(id,level,cid) {
           if (!cmd_access(id,level,cid,2))
                   return PLUGIN_HANDLED
           new arg[32]
           read_argv(1,arg,31)
           set_cvar_string("sv_password",arg)
           console_print(id,"[AMX] Server password set to %s",arg)
           return PLUGIN_CONTINUE
   }
   public admin_nopass(id,level,cid){
           if (!cmd_access(id,level,cid,1))
                   return PLUGIN_HANDLED
           set_cvar_string("sv_password","")
           console_print(id,"[AMX] Server password cleared")
           return PLUGIN_CONTINUE
   }
   public plugin_init(){
           register_plugin("Admin Password","0.1","JustinHoMi")
           register_concmd("amx_password","admin_password",ADMIN_PASSWORD
   ,"<password> - sets server password")
           register_concmd("amx_nopass","admin_nopass",ADMIN_PASSWORD,"-
   clears server password")
           return PLUGIN_CONTINUE
   }
