| pro.evolution | leonel |
06-13-2009 18:10 |
copiler error
PHP Code:
#include <amxmodx> #include <amxmisc> #pragma semicolon 1 #define menucmd "[gungame] menu admin" #define menudescription "[pro.evolution] gungame" #define menutitle "[gungame] config" #define activity 1 #define ADMIN_LEVEL ADMIN_KICK public plugin_init() { register_plugin("menu gungame", "1.00", "leonel"); register_concmd(menucmd, "cmd_menucmd", ADMIN_LEVEL, menudescription); } public cmd_menucmd(id, level, cid) { if(cmd_access(id, level, cid, 0)) { new menu = menu_create(menutitle, "handle_menucmd"); menu_additem(menu, "Abilitar deathmath", "1", 0); menu_additem(menu, "Desabilitar deathmath", "1", 0); menu_additem(menu, "Abilitar modo por time", "1", 0); menu_additem(menu, "Mesabilitar modo por time", "1", 0); menu_additem(menu, "Max de ping 150", "1", 0); menu_additem(menu, "Max de ping 200", "1", 0); menu_additem(menu, "Max de ping 250 ", "1", 0); menu_additem(menu, "Max de ping 300", "1", 0); menu_additem(menu, "Ativar gungame", "1", 0); menu_additem(menu, "Desativar gungame", "1", 0); menu_additem(menu, "Restart ", "1", 0); menu_display(id, menu, 0); } return PLUGIN_HANDLED; } public handle_menucmd(id, menu, item) { if(item == MENU_EXIT) { menu_destroy(menu); return PLUGIN_HANDLED; } else { switch(item) { case 0: { server_cmd("gg_dm 1"); #if activity == 1 client_print(0, print_chat, "[pro.evolution] Modo Deathmath"); #endif } case 1: { server_cmd("gg_dm 0"); #if activity == 1 client_print(0, print_chat, "[pro.evolution] Modo DeathMath Desativado"); #endif } case 2: { server_cmd("gg_teamplay 1"); #if activity == 1 client_print(0, print_chat, "[pro.evolution] Modo Jogar Por Time"); #endif } case 3: { server_cmd("gg_teamplay 0); #if activity == 1 client_print(0, print_chat, "[pro.evolution] Modo Jogar Por Time Desativado"); #endif } case 4: { server_cmd("amx_hpk 150"); #if activity == 1 client_print(0, print_chat, "[pro.evolution] Jogadores com ping maior que 150 serao kikados!"); #endif } case 5: { server_cmd("amx_hpk 200"); #if activity == 1 client_print(0, print_chat, "[pro.evolution] Jogadores com ping maior que 200 serao kikados!"); #endif } case 6: { server_cmd("amx_hpk 250"); #if activity == 1 client_print(0, print_chat, "[pro.evolution] Jogadores com ping maior que 250 serao kikados"); #endif } case 7: { server_cmd("amx_hpk 300"); #if activity == 1 client_print(0, print_chat, "[pro.evolution] Jogadores com ping maior que 300 serao kikados"); #endif } case 8: { server_cmd("gg_enabled 1"); #if activity == 1 client_print(0, print_chat, "[pro.evolution] gungame mod ativado!!!!"); #endif } case 9: { server_cmd("gg_enabled 0"); #if activity == 1 client_print(0, print_chat, "[pro.evolution] gungame mod desativado..."); #endif } case 10: { server_cmd("sv_restart 1"); #if activity == 1 client_print(0, print_chat, "[pro.evolution] ####Restart###"); #endif } } } return PLUGIN_HANDLED;
is a menu style amxmodmenu so that the configuration of the server so that it gives error copilar
could provide an edit for me
sorry my english xd
|