PHP- Kodu:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_quit","quitBlock")
register_concmd("amx_ban","banBlock")
register_concmd("amx_banip","banipBlock")
}
public banBlock(id){
new arg[32];
read_argv(1,arg,31)
if(arg[0]=='@') {
console_print(id,"Bu Komutun Toplu Kullanimi Sunucu Tarafindan Yasaklanmistir.")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public banipBlock(id){
new arg[32];
read_argv(1,arg,31)
if(arg[0]=='@') {
console_print(id,"Bu Komutun Toplu Kullanimi Sunucu Tarafindan Yasaklanmistir.")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public quitBlock(id) {
new arg[32];
read_argv(1,arg,31)
if(arg[0]=='@') {
console_print(id,"Bu Komutun Toplu Kullanimi Sunucu Tarafindan Yasaklanmistir.")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}