|
Veteran Member
|
03-14-2012
, 11:04
Re: How to block some commands on a Specific map?
|
#8
|
Quote:
Originally Posted by killergirl
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(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /pro15", "block")
register_clcmd("say /top15", "blcok")
register_clcmd("say /nub15", "block")
}
public block(id){
static map[32]
get_mapname(map, charsmax(map))
for(new i = 0; i < sizeof(rmaps) - 1; i++){
if(equal(rmaps[i], map)){
client_print(id, print_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
|
|
|
|