Tworze menu z tym poradnikiem ******* sr ze inne forum mój kod sma
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#define PLUGIN "Menu poke"
#define VERSION "1.0"
#define AUTHOR "Krecik"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /menulist" ,"menu_action",0)
}
public menu_action(id)
{
new menu = menu_create("\rWybierz:", "wybor")
menu_additem(menu, "\wOgolne zasady", "1", 0)
menu_additem(menu, "\wAdmini", "2", 0)
menu_additem(menu, "\wMapy", "3", 0)
menu_additem(menu, "\wRegulamin", "4", 0)
menu_additem(menu, "\wBuy Zone", "5", 0)
menu_additem(menu, "\wAdmin Zone", "6", 0)
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
client_cmd(id,"bind ^"f12^" ^"say /menulist^"")
}
public wybor(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new acces, callback
menu_item_getinfo(menu, item, acces, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1:show_motd(id,"zasady.txt","Zasady:")
case 2:show_motd(id,"admini.txt","Admini:")
case 3:show_motd(id,"mapy.txt","Mapy:")
case 4:show_motd(id,"regulamin.txt","Regulamin:")
case 5:show_motd(id,"buyzone.txt","Buy:")
}
return PLUGIN_CONTINUE
}
Moje pruby usunołem z kodu HELP
ps: i tak co by confąć sie dało
Wiru: Abes Mapper sr nie wiedziałam
Użytkownik Wiru edytował ten post 07.02.2011 07:35