Zombie classes
- DarkZombie
- Member
- Posts: 76
- Joined: 5 years ago
- Contact:
Jack?
- DarkZombie
- Member
- Posts: 76
- Joined: 5 years ago
- Contact:
At least Raheem always helped me when he was here
- DarkZombie
- Member
- Posts: 76
- Joined: 5 years ago
- Contact:
So Jack has no idea? I saw that you were here in the forum.
USER STATISTICS
Joined:1 Year AgoLast active:7 Hours Ago
USER STATISTICS
Joined:1 Year AgoLast active:7 Hours Ago
- ZinoZack47
- Member
- Posts: 9
- Joined: 5 years ago
- Contact:
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
}
- DarkZombie
- Member
- Posts: 76
- Joined: 5 years ago
- Contact:
Dont working.
- Attachments
-
- errros.png (9.89 KiB) Viewed 17718 times
- errros.png (9.89 KiB) Viewed 17718 times
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
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.
- DarkZombie
- Member
- Posts: 76
- Joined: 5 years ago
- Contact:
Thanks for your help, I'm sorry.
PS:And good luck with your exams
PS:And good luck with your exams
- ZinoZack47
- Member
- Posts: 9
- Joined: 5 years ago
- Contact:
You must have the ze_zombie_class.inc in your compiler's include folder otherwise it won't compile
Why the models of Zms Not Working ?
DRK Zombie-Escape V1.6
IP : 81.169.153.129:27015
IP : 81.169.153.129:27015
-
- Member
- Posts: 25
- Joined: 3 years ago
- Contact:
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
Thank you
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
In order for it to work, You have to add at least one zombie class regardless of the default class.
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
PROBLEM: g_iZombieClass[id] = ZE_WRONG_ZOMBIE_CLASS on compile
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
Could you give the full error?
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).
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).
help please with Ml_NotFOund
https://imgur.com/a/JhtuYeR
https://imgur.com/a/JhtuYeR
Make zombie classes support models and claw
just remove model from ze_resource.sma and make it in ze classes
just remove model from ze_resource.sma and make it in ze classes
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: No registered users and 4 guests