Witam potrzebuję pluginu który polega na tym że gdy gracz zabije przeciwnika to wyświetla się menu (dla tego który zabił) z nagrodami
Nagrody sobie sam zrobie chodzi mi tylko żeby odpalało się te menu
EDIT: znalazłem urywek kodu ale to raczej nie zadziała
#include <amxmodx> #include <amxmisc> #include <ColorChat> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "AMXX" new nazwa_gracza[33][35]; public plugin_init(){ register_plugin(PLUGIN, VERSION, AUTHOR); register_event("DeathMsg", "DeathMsg", "a"); } public client_authorized(id) { get_user_name(id, nazwa_gracza[id], 34); } public DeathMsg(){ new Attacker = read_data(1); new Victim = read_data(2); if(get_user_team(Attacker)==2) { for(new id=0;id<=32;id++) { if(is_user_connected(id)) { { new menu = menu_create("\rNagroda"); menu_additem(menu, "\wxxt", "1", 0); menu_additem(menu, "\wxxt", "2", 0); menu_additem(menu, "\wxx", "3", 0); menu_additem(menu, "\wxx", "4", 0); menu_additem(menu, "\wxx", "5", 0); menu_additem(menu, "\wxxx", "6", 0); menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); menu_display(id, menu, 0); } } } } }
Użytkownik XXL edytował ten post 01.08.2015 09:27