View Single Post
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 03-14-2012 , 12:04   Re: How to block some commands on a Specific map?
Reply With Quote #8

Quote:
Originally Posted by killergirl View Post
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "KillerGirl"

// add maps here for restriction
new const rmaps[][] =
{
    
"kz_longjumps2",
    
"kzlt_weridjumps"
}

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /pro15""block")
    
register_clcmd("say /top15""blcok")
    
register_clcmd("say /nub15""block")
}

public 
block(id){
    static 
map[32]
    
    
get_mapname(mapcharsmax(map))
    
    for(new 
0sizeof(rmaps) - 1i++){
        if(
equal(rmaps[i], map)){
            
client_print(idprint_chat"This command it's blocked.")
            break
        }
    }
    
    return 
PLUGIN_HANDLED

From here you need to implement the code from your plugins.
does not work. i also DISABLED prokreedz and still not working
bazhenov93 is offline