Page 2 of 3

Re: Zombie classes

Posted: 10 Nov 2018, 18:00
by DarkZombie
Jack?

Re: Zombie classes

Posted: 10 Nov 2018, 18:55
by DarkZombie
At least Raheem always helped me when he was here :!:

Re: Zombie classes

Posted: 11 Nov 2018, 10:13
by DarkZombie
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

Re: Zombie classes

Posted: 11 Nov 2018, 14:43
by ZinoZack47
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
}

Re: Zombie classes

Posted: 11 Nov 2018, 17:40
by DarkZombie
Dont working.

Re: Zombie classes

Posted: 11 Nov 2018, 17:50
by Night Fury
DarkZombie wrote: 5 years 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.

Re: Zombie classes

Posted: 11 Nov 2018, 19:12
by DarkZombie
Thanks for your help, I'm sorry. :) :roll:
PS:And good luck with your exams :!:

Re: Zombie classes

Posted: 13 Nov 2018, 11:00
by ZinoZack47
You must have the ze_zombie_class.inc in your compiler's include folder otherwise it won't compile

Re: Zombie classes

Posted: 09 Jan 2019, 15:18
by Luxurious
Why the models of Zms Not Working ?

Re: Zombie classes

Posted: 31 Aug 2019, 15:04
by z0h1r-LK
you add level zombie class woth level

Re: Zombie classes

Posted: 08 Jul 2020, 14:54
by DeVil_Raghav
Hey Escapers :), I am facing the same problem I didn't find any zombie classes.ini( or class etc...) in config file. Please suggest me what to do .

Thank you :) :D

Re: Zombie classes

Posted: 09 Jul 2020, 01:25
by Night Fury
In order for it to work, You have to add at least one zombie class regardless of the default class.

Re: Zombie classes

Posted: 29 Jul 2020, 06:18
by Kerason
Hi, I want to add zombie classes and when I compile it gives me an error! Can someone help me?
PROBLEM: g_iZombieClass[id] = ZE_WRONG_ZOMBIE_CLASS on compile ;)

Re: Zombie classes

Posted: 29 Jul 2020, 11:39
by Night Fury
Kerason wrote: 3 years ago Hi, I want to add zombie classes and when I compile it gives me an error! Can someone help me?
PROBLEM: g_iZombieClass[id] = ZE_WRONG_ZOMBIE_CLASS on compile ;)
Could you give the full error?

Re: Zombie classes

Posted: 29 Jul 2020, 13:44
by Kerason
Yes Now !
AMX Mod X Compiler 1.9.0.5249
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(5) : error 021: symbol already defined: "ze_colored_print"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(84) : error 021: symbol already defined: "GetAlivePlayersNum"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(99) : error 021: symbol already defined: "GetTeamPlayersNum"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(114) : error 021: symbol already defined: "GetDeadPlayersNum"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(129) : error 021: symbol already defined: "GetAllAlivePlayersNum"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(141) : error 021: symbol already defined: "GetAllPlayersNum"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(153) : error 021: symbol already defined: "RequiredZombies"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(166) : error 021: symbol already defined: "GetRandomAlive"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(182) : error 021: symbol already defined: "Set_MapLightStyle"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(191) : error 021: symbol already defined: "Set_NightVision"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(205) : error 021: symbol already defined: "Set_Knockback"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(233) : error 021: symbol already defined: "UpdateFrags"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(263) : error 021: symbol already defined: "SendDeathMsg"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(274) : error 021: symbol already defined: "InfectionIcon"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(287) : error 021: symbol already defined: "FixDeadAttrib"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(296) : error 021: symbol already defined: "Set_KeyValue"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(307) : error 021: symbol already defined: "Precache_Sky"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(337) : error 021: symbol already defined: "AddCommas"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(368) : error 021: symbol already defined: "PlaySound"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(381) : error 021: symbol already defined: "StopSound"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(392) : error 021: symbol already defined: "Set_Rendering"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(406) : error 021: symbol already defined: "VecMulScalar"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(414) : error 021: symbol already defined: "Show_Given_BPAmmo"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(426) : error 021: symbol already defined: "SQL_IsFail"
C:\Users\ValiPC\Desktop\ZOmbie escape compiler\include\ze_zombie_class_const.inc(448) : error 021: symbol already defined: "IsPlayerInArray"
Error: Undefined symbol "ZE_WRONG_ZOMBIE_CLASS" on line 82

Compilation aborted.
26 Errors.
Could not locate output file C:\Users\ValiPC\Desktop\ze_zombie_class.amx (compile failed).

Re: Zombie classes

Posted: 29 Jul 2020, 14:40
by Kerason
help please with Ml_NotFOund
https://imgur.com/a/JhtuYeR

Re: Zombie classes

Posted: 08 Sep 2020, 15:58
by z0h1r-LK
Make zombie classes support models and claw
just remove model from ze_resource.sma and make it in ze classes