[Pomoc] Zombie Plague 4.3 MENU
Results 1 to 6 of 6
  1. #1
    Senior Member Array
    Join Date
    Jan 2016
    Location
    Posusje Bosna i Hercegovina
    Age
    21
    Karma
    0

    Default Zombie Plague 4.3 MENU

    Code:
    // Game Menu
    show_menu_game(id)
    {
    	static menu[250], len, userflags
    	len = 0
    	userflags = get_user_flags(id)
    	
    	// Title
    	len += formatex(menu[len], charsmax(menu) - len, "\yMILF ZombiePlague^n^n")
    	
    	// 1. [Take Weapons]
    	if (get_pcvar_num(cvar_buycustom))
    		len += formatex(menu[len], charsmax(menu) - len, "\r1.\w %L^n", id, "MENU_BUY")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d1. %L^n", id, "MENU_BUY")
    	
    	// 2. Extra items
    	if (get_pcvar_num(cvar_extraitems) && g_isalive[id])
    		len += formatex(menu[len], charsmax(menu) - len, "\r2.\w %L^n", id, "MENU_EXTRABUY")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d2. %L^n", id, "MENU_EXTRABUY")
    	
    	// 3. Zombie class
    	if (get_pcvar_num(cvar_zclasses))
    		len += formatex(menu[len], charsmax(menu) - len, "\r3.\w %L^n", id,"MENU_ZCLASS")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d3. %L^n", id,"MENU_ZCLASS")
    	
    	// 4. Unstuck
    	if (g_isalive[id])
    		len += formatex(menu[len], charsmax(menu) - len, "\r4.\w %L^n", id, "MENU_UNSTUCK")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d4. %L^n", id, "MENU_UNSTUCK")
    	
    	// 5. Help
    	len += formatex(menu[len], charsmax(menu) - len, "\r5.\w %L^n^n", id, "MENU_INFO")
    	
    	// 6. Join spec
    	if (!g_isalive[id] || !get_pcvar_num(cvar_blocksuicide) || (userflags & g_access_flag[ACCESS_ADMIN_MENU]))
    		len += formatex(menu[len], charsmax(menu) - len, "\r6.\w %L^n^n", id, "MENU_SPECTATOR")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d6. %L^n^n", id, "MENU_SPECTATOR")
    	
    	// 9. Admin menu
    	if (userflags & g_access_flag[ACCESS_ADMIN_MENU3])
    		len += formatex(menu[len], charsmax(menu) - len, "\r9.\w %L", id, "MENU3_ADMIN")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d9. %L", id, "MENU3_ADMIN")
    	
    	// 0. Exit
    	len += formatex(menu[len], charsmax(menu) - len, "^n^n\r0.\w %L", id, "MENU_EXIT")
    	
    	show_menu(id, KEYSMENU, menu, -1, "Game Menu")
    }

    Pozdrav, dali mi neko moze nadodat jos da u ovaj menu moze, neka tipka da predjem u drugi dio i da moze VIP Menu "say /vm" Knife menu "say /knife" Boost info "say /boost"

    Hvala puno unaprijed

  2. #2
    Banovani spamer Array
    Join Date
    Sep 2018
    Location
    Los Angeles
    Age
    18
    Karma
    0

    Default

    Edit cu kad napravim kod.

    EDIT:
    Code:
       ode:
    // Game Menu
    show_menu_game(id)
    {
    	static menu[250], len, userflags
    	len = 0
    	userflags = get_user_flags(id)
    	
    	// Title
    	len += formatex(menu[len], charsmax(menu) - len, "\yMILF ZombiePlague^n^n")
    	
    	// 1. [Take Weapons]
    	if (get_pcvar_num(cvar_buycustom))
    		len += formatex(menu[len], charsmax(menu) - len, "\r1.\w %L^n", id, "MENU_BUY")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d1. %L^n", id, "MENU_BUY")
    	
    	// 2. Extra items
    	if (get_pcvar_num(cvar_extraitems) && g_isalive[id])
    		len += formatex(menu[len], charsmax(menu) - len, "\r2.\w %L^n", id, "MENU_EXTRABUY")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d2. %L^n", id, "MENU_EXTRABUY")
    	
    	// 3. Zombie class
    	if (get_pcvar_num(cvar_zclasses))
    		len += formatex(menu[len], charsmax(menu) - len, "\r3.\w %L^n", id,"MENU_ZCLASS")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d3. %L^n", id,"MENU_ZCLASS")
    	
    	// 4. Unstuck
    	if (g_isalive[id])
    		len += formatex(menu[len], charsmax(menu) - len, "\r4.\w %L^n", id, "MENU_UNSTUCK")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d4. %L^n", id, "MENU_UNSTUCK")
    	
    	// 5. Help
    	len += formatex(menu[len], charsmax(menu) - len, "\r5.\w %L^n^n", id, "MENU_INFO")
    	
    	// 6. Join spec
    	if (!g_isalive[id] || !get_pcvar_num(cvar_blocksuicide) || (userflags & g_access_flag[ACCESS_ADMIN_MENU]))
    		len += formatex(menu[len], charsmax(menu) - len, "\r6.\w %L^n^n", id, "MENU_SPECTATOR")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d6. %L^n^n", id, "MENU_SPECTATOR")
    	
    	// 9. Admin menu
    	if (userflags & g_access_flag[ACCESS_ADMIN_MENU3])
    		len += formatex(menu[len], charsmax(menu) - len, "\r9.\w %L", id, "MENU3_ADMIN")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d9. %L", id, "MENU3_ADMIN")
    
    		// 10. Unstuck
    	if (g_isalive[id])
    		len += formatex(menu[len], charsmax(menu) - len, "\r4.\w %L^n", id, "MENU_KNIFE")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d4. %L^n", id, "MENU_KNIFE")
    	// 0. Exit
    	len += formatex(menu[len], charsmax(menu) - len, "^n^n\r0.\w %L", id, "MENU_EXIT")
    	
    	show_menu(id, KEYSMENU, menu, -1, "Game Menu")
    }
    To je dodat samo knife menu,a vip menu cu kad shvatim kako
    Last edited by dr.dangerS; 27-09-2018 at 16:44. Reason: Cek

  3. #3
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    9

    Default

    Ostavi link te tastature koja ima broj 10 kao odvojeno dugme.
    Pomoc oko plugina, TS3-a, discord-a mozete dobiti samo u vidu objasnjenja.
    P.S. Nemojte smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.
    P.P.S. Nemojte pitati stvari na PM vec otvori temu.

  4. #4
    Senior Member Array
    Join Date
    Jan 2016
    Location
    Posusje Bosna i Hercegovina
    Age
    21
    Karma
    0

    Default

    A kako onda skazy da sredim dali znas?
    Last edited by Skubishaa; 28-09-2018 at 13:29. Reason: pomjesao lika :D

  5. #5
    Banovani spamer Array
    Join Date
    Sep 2018
    Location
    Los Angeles
    Age
    18
    Karma
    0

    Default

    evo ti skubi za knife i za VIP:

    Code:
    // Game Menu
    show_menu_game(id)
    {
    	static menu[250], len, userflags
    	len = 0
    	userflags = get_user_flags(id)
    	
    	// Title
    	len += formatex(menu[len], charsmax(menu) - len, "\yMILF ZombiePlague^n^n")
    	
    	// 1. [Take Weapons]
    	if (get_pcvar_num(cvar_buycustom))
    		len += formatex(menu[len], charsmax(menu) - len, "\r1.\w %L^n", id, "MENU_BUY")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d1. %L^n", id, "MENU_BUY")
    	
    	// 2. Extra items
    	if (get_pcvar_num(cvar_extraitems) && g_isalive[id])
    		len += formatex(menu[len], charsmax(menu) - len, "\r2.\w %L^n", id, "MENU_EXTRABUY")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d2. %L^n", id, "MENU_EXTRABUY")
    	
    	// 3. Zombie class
    	if (get_pcvar_num(cvar_zclasses))
    		len += formatex(menu[len], charsmax(menu) - len, "\r3.\w %L^n", id,"MENU_ZCLASS")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d3. %L^n", id,"MENU_ZCLASS")
    	
    	// 4. Unstuck
    	if (g_isalive[id])
    		len += formatex(menu[len], charsmax(menu) - len, "\r4.\w %L^n", id, "MENU_UNSTUCK")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d4. %L^n", id, "MENU_UNSTUCK")
    	
    	// 5. Help
    	len += formatex(menu[len], charsmax(menu) - len, "\r5.\w %L^n^n", id, "MENU_INFO")
    	
    	// 6. Join spec
    	if (!g_isalive[id] || !get_pcvar_num(cvar_blocksuicide) || (userflags & g_access_flag[ACCESS_ADMIN_MENU]))
    		len += formatex(menu[len], charsmax(menu) - len, "\r6.\w %L^n^n", id, "MENU_SPECTATOR")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d6. %L^n^n", id, "MENU_SPECTATOR")
    	
    	// 9. Admin menu
    	if (userflags & g_access_flag[ACCESS_ADMIN_MENU3])
    		len += formatex(menu[len], charsmax(menu) - len, "\r9.\w %L", id, "MENU3_ADMIN")
    	else
    		len += formatex(menu[len], charsmax(menu) - len, "\d9. %L", id, "MENU3_ADMIN")
    
    		// C. Knife Menu
    	if (g_isalive[id])
    		len += formatex(menu[len], charsmax(menu) - len, "\rC.\w %L^n", id, "KNIFE_MENU")
    	else                                                                                           //Ove dve linije
    		len += formatex(menu[len], charsmax(menu) - len, "\dC. %L^n", id, "KNIFE_MENU")
    
    	// L. VIp Menu
    	if (get_pcvar_num(cvar_buycustom))
    		len += formatex(menu[len], charsmax(menu) - len, "\rL.\w %L^n", id, "MENU_VIP")
    	else                                                                                          //Ove dve linije
    		len += formatex(menu[len], charsmax(menu) - len, "\dL. %L^n", id, "MENU_VIP")
    
    	// 0. Exit
    	len += formatex(menu[len], charsmax(menu) - len, "^n^n\r0.\w %L", id, "MENU_EXIT")
    	
    	show_menu(id, KEYSMENU, menu, -1, "Game Menu")
    }

  6. #6
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    9

    Default

    U tom delu koga koji si ti okacio mozes samo da dodas sta ce da pise u meniju, a ne sta ce da se desi kad se izabere neka opcija.
    Pomoc oko plugina, TS3-a, discord-a mozete dobiti samo u vidu objasnjenja.
    P.S. Nemojte smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.
    P.P.S. Nemojte pitati stvari na PM vec otvori temu.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •