RSSy MYGO.pl Opublikowano Sierpień 29, 2023 o 20:21 RSSy Udostępnij Opublikowano Sierpień 29, 2023 o 20:21 Hello, could someone help me to make this top a headshot top of how many I killed and how many times did I get killed by headshot? PHP Code: #include <amxmodx> #include <csx> public plugin_init() { register_plugin("Stats new", "1.0", "meNe") register_clcmd("say /top15", "show_top", 0); } public show_top(id) { show_menu(id, 0, "\n", 1) new menu = menu_create("\rTOP 15", "menu_handler") new szmenu[512] new iMax = get_statsnum() new izStats[8], izBody[8], t_sName[32]; iMax = 100 for (new i = 0; i < iMax; i++) { get_stats(i, izStats, izBody, t_sName, 31); replace_all(t_sName, 31, "<", "["); replace_all(t_sName, 31, ">", "]"); formatex(szmenu, 511, "\y%s \r| \wKills:\r %d \r| \wDeaths:\r %d", t_sName, izStats[0], izStats[1]); menu_additem(menu, szmenu) } menu_setprop(menu, MPROP_EXIT, MEXIT_ALL) menu_display(id, menu, 0) } public menu_handler(id, menu, item) { switch(item) { case 0..99: { // your command } } menu_destroy(menu); return PLUGIN_HANDLED; } https://ibb.co/yyd7pQK Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi