Witam , chciałbym dodać na serwer menu gracza pod literkę "v" i pod say /zakup .
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
[ROZWIĄZANE] Menu gracza
Started By S3NSUAL, 15.12.2013 16:28
Best Answer k4x4z5, 15.12.2013 22:09
#include <amxmodx> public plugin_init() register_clcmd ("say /menu", "pokaz_menu") public pokaz_menu(id) { new menu = menu_create("Menu gracza", "menu_wybor") menu_additem(menu, "Regulamin ", "0") menu_additem(menu, "Rangi", "1") menu_setprop(menu, MPROP_EXITNAME, "Wyjdz") menu_setprop(menu, MPROP_EXIT, MEXIT_ALL) menu_display(id, menu) return 1 } public menu_wybor(id, menu, item) { if(!is_user_connected(id)) return 1 if(item != MENU_EXIT && item != MENU_BACK && item != MENU_MORE) { switch(item) { case 0: Regulamin(id) case 1: Rangi(id) } } return 1 } public Regulamin(id){ show_motd(id,"regulamin.txt","Regulamin") } public Rangi(id){ show_motd(id,"rangi.txt","Rangi") }Go to the full post
5 replies to this topic
#1
Posted 15.12.2013 16:28
#2
Posted 15.12.2013 19:10
Jaki mod i co ma byc w tym menu... Nie lepiej zbindować klawisz ?
#3
Posted 15.12.2013 21:02
Mod to 4fun , ale chce do niego dodac np , zakup
kontakt do administratora
sklep
rangi
#5
Posted 15.12.2013 21:49
Ja chce takie coś:
-wpisujesz /menu to wyskakuje tobie okienko z wyborem dalszego przeniesienia np rangi i jak to dasz to ciebie przenosi do rangi txt lub cos takiego
#6
Posted 15.12.2013 22:09 Best Answer
#include <amxmodx> public plugin_init() register_clcmd ("say /menu", "pokaz_menu") public pokaz_menu(id) { new menu = menu_create("Menu gracza", "menu_wybor") menu_additem(menu, "Regulamin ", "0") menu_additem(menu, "Rangi", "1") menu_setprop(menu, MPROP_EXITNAME, "Wyjdz") menu_setprop(menu, MPROP_EXIT, MEXIT_ALL) menu_display(id, menu) return 1 } public menu_wybor(id, menu, item) { if(!is_user_connected(id)) return 1 if(item != MENU_EXIT && item != MENU_BACK && item != MENU_MORE) { switch(item) { case 0: Regulamin(id) case 1: Rangi(id) } } return 1 } public Regulamin(id){ show_motd(id,"regulamin.txt","Regulamin") } public Rangi(id){ show_motd(id,"rangi.txt","Rangi") }
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users