Approved Zombie classes

Gameplay Addons
User avatar
DarkZombie
Member
Member
Hungary
Posts: 68
Joined: 5 Months Ago
Donation: 1x donated in total €6.00
Has thanked: 16 times
Been thanked: 0
Contact:

Re: Zombie classes

#31

Post by DarkZombie » 2 Months Ago

Jack?

User avatar
DarkZombie
Member
Member
Hungary
Posts: 68
Joined: 5 Months Ago
Donation: 1x donated in total €6.00
Has thanked: 16 times
Been thanked: 0
Contact:

#32

Post by DarkZombie » 2 Months Ago

At least Raheem always helped me when he was here :!:

User avatar
DarkZombie
Member
Member
Hungary
Posts: 68
Joined: 5 Months Ago
Donation: 1x donated in total €6.00
Has thanked: 16 times
Been thanked: 0
Contact:

#33

Post by DarkZombie » 2 Months Ago

So Jack has no idea? I saw that you were here in the forum.
USER STATISTICS
Joined:1 Year AgoLast active:7 Hours Ago :D

User avatar
ZinoZack47
Member
Member
Morocco
Posts: 9
Joined: 5 Months Ago
Has thanked: 0
Been thanked: 1 time
Contact:

#34

Post by ZinoZack47 » 2 Months Ago

Just try this code (didn't compile it)

Code: Select all

#include <zombie_escape>
#include <ze_zombie_class>

native ze_open_knife_menu(id)

// Keys
const OFFSET_CSMENUCODE = 205
const KEYSMENU = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_8|MENU_KEY_9|MENU_KEY_0

public plugin_init()
{
	register_plugin("[ZE] Main Menu", ZE_VERSION, AUTHORS)
	
	// Commands
	register_clcmd("chooseteam", "Cmd_ChooseTeam")
	register_clcmd("say /ze", "Cmd_ChooseTeam")
	register_clcmd("say_team /ze", "Cmd_ChooseTeam")
	
	// Register Menus
	register_menu("Main Menu", KEYSMENU, "Main_Menu")
}

public Cmd_ChooseTeam(id)
{
	if (!is_user_connected(id))
		return PLUGIN_CONTINUE;
	
	if (get_member(id, m_iTeam) == TEAM_TERRORIST || get_member(id, m_iTeam) == TEAM_CT)
	{
		Show_Menu_Main(id)
		return PLUGIN_HANDLED // Kill the Choose Team Command
	}
	
	// Player in Spec? Allow him to open choose team menu so he can join
	return PLUGIN_CONTINUE
}

// Main Menu
public Show_Menu_Main(id)
{
	static szMenu[250]
	new iLen
    
	// Title
	iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\w%L^n^n", id, "MAIN_MENU_TITLE")
	
	// 1. Buy Weapons
	if (!ze_is_auto_buy_enabled(id)) // AutoBuy not enabled - normal case
	{
		if (is_user_alive(id))
		{
			iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\w1.\r %L^n", id, "MENU_WEAPONBUY")
		}
		else
		{
			iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d1. %L^n", id, "MENU_WEAPONBUY")
		}
	}
	else
	{
		// Auto-Buy enabled - Re-enable case
		iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\w1.\r %L^n", id, "MENU_WEAPONBUY_RE_ENABLE")
	}
	
	// 2. Extra Items
	if (is_user_alive(id))
	{
		iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\w2.\r %L^n", id, "MENU_EXTRABUY")
	}
	else
	{
		iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d2. %L^n", id, "MENU_EXTRABUY")
	}
	
	// 3. Knife menu
	if (is_user_alive(id))
	{
		iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\w3.\r Knife menu^n")
	}
	else
	{
		iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d3. Knife menu^n")
	}
	// 4. Zombie Classes Menu
	iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\w4.\r Zombie Classes menu^n")

	// 0. Exit
	iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n^n\w0.\r EXIT")
    
	// Fix for AMXX custom menus
	set_pdata_int(id, OFFSET_CSMENUCODE, 0)
	show_menu(id, KEYSMENU, szMenu, -1, "Main Menu")
}

// Main Menu
public Main_Menu(id, key)
{
	// Player disconnected?
	if (!is_user_connected(id))
		return PLUGIN_HANDLED
    
	switch (key)
	{
		case 0: // Buy Weapons
		{
			if (!ze_is_auto_buy_enabled(id))
			{
				ze_show_weapon_menu(id)
			}
			else
			{
				ze_disable_auto_buy(id)
				Show_Menu_Main(id)
			}
		}
		case 1: // Extra Items
		{
			if (is_user_alive(id))
			{
				ze_show_items_menu(id)
			}
			else
			{
				ze_colored_print(id, "%L", id, "DEAD_CANT_BUY_WEAPON")
			}
		}
		case 2: // Knife menu
		{
			if (is_user_alive(id))
			{
				ze_open_knife_menu(id)
			}
			else
			{
				ze_colored_print(id, "%L", id, "DEAD_CANT_BUY_WEAPON")
			}
		}
		case 3: ze_open_zombie_classes_menu(id) // Zombie Classes Menu
	}
	return PLUGIN_HANDLED
}
These users thanked the author ZinoZack47 for the post:
Jack GamePlay (2 Months Ago)

User avatar
DarkZombie
Member
Member
Hungary
Posts: 68
Joined: 5 Months Ago
Donation: 1x donated in total €6.00
Has thanked: 16 times
Been thanked: 0
Contact:

#35

Post by DarkZombie » 2 Months Ago

Dont working.
Attachments
errros.png
errros.png (9.89 KiB) Viewed 222 times
errros.png
errros.png (9.89 KiB) Viewed 222 times

User avatar
Jack GamePlay
Mod Developer
Mod Developer
Egypt
Posts: 534
Joined: 1 Year Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 42 times
Age: 19
Contact:

#36

Post by Jack GamePlay » 2 Months Ago

DarkZombie wrote:
2 Months Ago
Dont working.
Go to the first post & make a file called ze_zombie_class.inc then put it in addons/amxmodx/scripting/include.
I have exams so i won't leave my study to help you, nah you can help yourself.
Image

User avatar
DarkZombie
Member
Member
Hungary
Posts: 68
Joined: 5 Months Ago
Donation: 1x donated in total €6.00
Has thanked: 16 times
Been thanked: 0
Contact:

#37

Post by DarkZombie » 2 Months Ago

Thanks for your help, I'm sorry. :) :roll:
PS:And good luck with your exams :!:

User avatar
ZinoZack47
Member
Member
Morocco
Posts: 9
Joined: 5 Months Ago
Has thanked: 0
Been thanked: 1 time
Contact:

#38

Post by ZinoZack47 » 2 Months Ago

You must have the ze_zombie_class.inc in your compiler's include folder otherwise it won't compile

Luxurious
Member
Member
Egypt
Posts: 90
Joined: 11 Months Ago
Location: Egypt
Has thanked: 2 times
Been thanked: 1 time
Contact:

#39

Post by Luxurious » 1 Week Ago

Why the models of Zms Not Working ?

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests