Skompilujcie plugin i sami zobaczcie, nie mam pojęcia co jest nie tak.
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Menu Regulamin"
#define VERSION "1.0"
#define AUTHOR "Ranger"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /regulamin","open_menu");
register_clcmd("say_team menu","open_menu");
}
public open_menu(id)
{
new menu = menu_create("\yRegulamin \rBy Ranger","cmd");
menu_additem(menu,"BudownieKampy","1");
menu_additem(menu,"BronienieKampy","2");
menu_additem(menu,"OgloneBB","3");
menu_additem(menu,"OgolneSerwera","4");
menu_additem(menu,"Skille","5");
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL);
menu_display(id,menu);
}
public cmd(id, item, menu)
{
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,"BudowanieKampy.txt","BudowanieKampy");
case 2: show_motd(id,"BronienieKampy.txt","BronienieKampy");
case 3: show_motd(id,"OgolneBB.txt","OgolneBB");
case 4: show_motd(id,"OgolneSerwera.txt","OgolneSerwera");
case 5: show_motd(id,"Skille.txt","Skille");
}
return PLUGIN_CONTINUE;
}
PLIKI TXT
Wklej.to - po prostu wklej to! - paste: WXuRD
Wklej.to - po prostu wklej to! - paste: lJMDz
Wklej.to - po prostu wklej to! - paste: 2Eu8n
Wklej.to - po prostu wklej to! - paste: aUuWM
Wklej.to - po prostu wklej to! - paste: SdH4I
Użytkownik Ranger edytował ten post 29.05.2011 13:24