Page 1 of 3
[Updated] Nemesis Round v1.1
Posted: 17 Jun 2019, 20:09
by Muhammet20
Hi all,
I made this plugin who is so much users/members needs it
Thanks to Raheem and Jack , They helped me so much <3
Commands:
- The commands are just a Longjump(Leap Jump) For The Nemesis
Nemesis Round Plugin Code:
/*
Version 1.1:
What is News ?
1- Added Lonjump Plugin To Nemsesis Zombies
2- The Nemesis round now is in the last round
3- Fixed Bugs & Some Problems
And Special thanks to Jack Gameplay
*/
#include <zombie_escape>
new MaxRounds
new RoundCount
new g_maxplayers
native give_longjump(id)
new const v_model[] = "models/zombie_escape/Nemesis_Claws.mdl"
new const g_szNemsisModel[] = "Nemesis_Zombie"
public plugin_init()
{
register_plugin("[ZE] Nemsis round", "1.1", "Kaya Gaming")
register_event("TextMsg", "new_map_or_restart", "a", "2&#Game_C", "2&#Game_w")
MaxRounds = get_cvar_pointer("mp_maxrounds")
g_maxplayers = get_maxplayers()
}
public plugin_precache()
{
new szModelPath[32]
precache_model(v_model)
formatex(szModelPath, charsmax(szModelPath), "models/player/%s/%s.mdl", g_szNemsisModel, g_szNemsisModel)
precache_model(szModelPath)
}
public ze_roundend()
{
RoundCount++
}
public new_map_or_restart()
{
RoundCount = 0
}
public ze_zombie_appear(id)
{
if(get_pcvar_num(MaxRounds) - RoundCount == 1)
{
set_task(0.01, "models", id)
claws_model(id)
messages(id)
give_longjump(id)
}
}
public ze_user_infected_pre(iVictim, iInfector, iDamage)
{
if(get_pcvar_num(MaxRounds) - RoundCount != 1)
return
new g_attacker = read_data(1);
new g_victim = read_data(2);
if(g_victim != g_attacker && ze_is_user_zombie(g_attacker))
{
set_task(0.01, "kill_no_infect", g_victim)
return 1;
}
}
public kill_no_infect(id)
{
user_silentkill(id)
}
public models(id)
{
if(ze_is_user_zombie(id) && get_pcvar_num(MaxRounds) - RoundCount == 1)
{
rg_reset_user_model(id)
rg_set_user_model(id, g_szNemsisModel)
}
}
public messages(id)
{
PlaySound(id, "zombie_escape/Nemesis_scream.wav")
}
public claws_model(id)
{
if(get_pcvar_num(MaxRounds) - RoundCount == 1 && get_user_weapon(id) == CSW_KNIFE && ze_is_user_zombie(id))
{
rg_give_item(id, "weapon_knife")
set_pev(id, pev_viewmodel2, v_model)
set_pev(id, pev_weaponmodel2, "")
}
}
Longjump(Leap Jump) Plugin Code:
#include <zombie_escape>
#define PLUGIN "[ZE] Extra Item:Leap"
#define VERSION "1.5.7"
#define AUTHOR "Fry!"
/*================================================================================
[Plugin Customization]
=================================================================================*/
new bool:g_hasLongJump[33],g_SayText
new Float:g_last_LongJump_time[33]
new g_LongJump_force, g_LongJump_height, g_LongJump_cooldown
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("ze_leap",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
g_LongJump_force = register_cvar("ze_longjump_force", "580")
g_LongJump_height = register_cvar("ze_longjump_height", "320")
g_LongJump_cooldown = register_cvar("ze_longjump_cooldown", "10.0")
register_forward(FM_PlayerPreThink, "fw_PlayerPreThink")
register_event("DeathMsg", "death", "a")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
g_SayText = get_user_msgid("SayText")
}
public plugin_natives()
{
register_native("give_longjump","native_give_longjump",1)
}
public native_give_longjump(id)
{
if(ze_is_user_zombie(id))
{
g_hasLongJump[id] = true
}
else
{
g_hasLongJump[id] = false
}
}
stock Color(const id, const input[], any:...)
{
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!t", "^3")
message_begin(MSG_ONE_UNRELIABLE, g_SayText, _, id)
write_byte(id)
write_string(msg)
message_end()
}
// Reset on disconnection
public client_disconnected(id)
{
g_hasLongJump[id] = false
}
// Reset on death
public death()
{
g_hasLongJump[read_data(2)] = false
}
// Reset if turned into human
public ze_user_humanized(id)
{
g_hasLongJump[id] = false
}
// Reset at round start (for everyone)
public event_round_start()
{
for (new i = 1; i <= 32; i++)
g_hasLongJump[i] = false
}
public fw_PlayerPreThink(id)
{
if (!is_user_alive(id))
return FMRES_IGNORED
if (allow_LongJump(id))
{
static Float:velocity[3]
velocity_by_aim(id, get_pcvar_num(g_LongJump_force), velocity)
velocity[2] = get_pcvar_float(g_LongJump_height)
set_pev(id, pev_velocity, velocity)
g_last_LongJump_time[id] = get_gametime()
}
return FMRES_IGNORED
}
// Check if the player can longjump
allow_LongJump(id)
{
if (!g_hasLongJump[id])
return false
if (!(pev(id, pev_flags) & FL_ONGROUND) || fm_get_speed(id) < 80)
return false
static buttons
buttons = pev(id, pev_button)
if (!is_user_bot(id) && (!(buttons & IN_JUMP) || !(buttons & IN_DUCK)))
return false
if (get_gametime() - g_last_LongJump_time[id] < get_pcvar_float(g_LongJump_cooldown))
return false
if(g_last_LongJump_time[id] == get_pcvar_float(g_LongJump_cooldown))
{
client_print(id,print_chat,"[ZE] You can use the Leap Jump now.")
return true
}
return true
}
// Get entity's speed (from fakemeta_util)
stock fm_get_speed(entity)
{
static Float:velocity[3]
pev(entity, pev_velocity, velocity)
return floatround(vector_length(velocity))
}
Please download this to put Models+Sounds:
Re: Nemesis Round
Posted: 18 Jun 2019, 00:04
by alexnovac18
Hi , i cant complie because have errors,
Code: Select all
// D:\Date 2019\scripting\include\fun.inc(28) : error 017: undefined symbol "HIT_GENERIC"
// D:\Date 2019\scripting\include\fun.inc(28) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(29) : error 017: undefined symbol "HIT_HEAD"
// D:\Date 2019\scripting\include\fun.inc(29) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(30) : error 017: undefined symbol "HIT_CHEST"
// D:\Date 2019\scripting\include\fun.inc(30) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(31) : error 017: undefined symbol "HIT_STOMACH"
// D:\Date 2019\scripting\include\fun.inc(31) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(32) : error 017: undefined symbol "HIT_LEFTARM"
// D:\Date 2019\scripting\include\fun.inc(32) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(33) : error 017: undefined symbol "HIT_RIGHTARM"
// D:\Date 2019\scripting\include\fun.inc(33) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(34) : error 017: undefined symbol "HIT_LEFTLEG"
// D:\Date 2019\scripting\include\fun.inc(34) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(35) : error 017: undefined symbol "HIT_RIGHTLEG"
// D:\Date 2019\scripting\include\fun.inc(35) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(141) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\include\fun.inc(161) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\nemesis_round.sma(28) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\nemesis_round.sma(45) : error 017: undefined symbol "START_ZOMBIE_APPEAR"
// D:\Date 2019\scripting\nemesis_round.sma(71) : error 035: argument type mismatch (argument 2)
// D:\Date 2019\scripting\nemesis_round.sma(80) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\nemesis_round.sma(98) : error 021: symbol already defined: "client_print_color"
// D:\Date 2019\scripting\nemesis_round.sma(101) : error 021: symbol already defined: "vformat"
// D:\Date 2019\scripting\nemesis_round.sma(103) : error 025: function heading differs from prototype
// D:\Date 2019\scripting\nemesis_round.sma(103) : error 010: invalid function or declaration
Re: Nemesis Round
Posted: 18 Jun 2019, 03:22
by sPe3doN
alexnovac18 wrote: ↑4 years ago
Hi , i cant complie because have errors,
Code: Select all
// D:\Date 2019\scripting\include\fun.inc(28) : error 017: undefined symbol "HIT_GENERIC"
// D:\Date 2019\scripting\include\fun.inc(28) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(29) : error 017: undefined symbol "HIT_HEAD"
// D:\Date 2019\scripting\include\fun.inc(29) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(30) : error 017: undefined symbol "HIT_CHEST"
// D:\Date 2019\scripting\include\fun.inc(30) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(31) : error 017: undefined symbol "HIT_STOMACH"
// D:\Date 2019\scripting\include\fun.inc(31) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(32) : error 017: undefined symbol "HIT_LEFTARM"
// D:\Date 2019\scripting\include\fun.inc(32) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(33) : error 017: undefined symbol "HIT_RIGHTARM"
// D:\Date 2019\scripting\include\fun.inc(33) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(34) : error 017: undefined symbol "HIT_LEFTLEG"
// D:\Date 2019\scripting\include\fun.inc(34) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(35) : error 017: undefined symbol "HIT_RIGHTLEG"
// D:\Date 2019\scripting\include\fun.inc(35) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(141) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\include\fun.inc(161) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\nemesis_round.sma(28) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\nemesis_round.sma(45) : error 017: undefined symbol "START_ZOMBIE_APPEAR"
// D:\Date 2019\scripting\nemesis_round.sma(71) : error 035: argument type mismatch (argument 2)
// D:\Date 2019\scripting\nemesis_round.sma(80) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\nemesis_round.sma(98) : error 021: symbol already defined: "client_print_color"
// D:\Date 2019\scripting\nemesis_round.sma(101) : error 021: symbol already defined: "vformat"
// D:\Date 2019\scripting\nemesis_round.sma(103) : error 025: function heading differs from prototype
// D:\Date 2019\scripting\nemesis_round.sma(103) : error 010: invalid function or declaration
Try change fun.inc in include file
Re: Nemesis Round
Posted: 18 Jun 2019, 03:26
by sPe3doN
Great work man
But jack already made it before
Jack GamePlay wrote: ↑4 years ago
#include <zombie_escape>
new bool:g_bNemesis[33]
public plugin_init()
{
register_plugin("[ZE] First ZM are nemesis", "1.0", "Jack")
}
public ze_zombie_appear()
{
new iPlayers[32], iSelected[33], iTotalPlayers, id, iCount, iRandomIndex
get_players(iPlayers, iTotalPlayers)
if (iTotalPlayers > 0)
{
for (id = 0; id <= iTotalPlayers; id++)
{
iRandomIndex = iPlayers[id]
if (!is_user_alive(id) || !ze_is_user_zombie(id))
continue
iSelected[iCount] = iRandomIndex
iCount++
}
}
iRandomIndex = iSelected[random(iCount)]
g_bNemesis[iRandomIndex] = true
new szName[32]
get_user_name(iRandomIndex, szName, charsmax(szName))
client_print(0, print_chat, "%s became nemesis", szName)
client_print(iRandomIndex, print_chat, "You became nemesis")
}
public ze_roundend()
{
for (new id = 0; id <= get_member_game(m_nMaxPlayers); id++)
{
if (!is_user_alive(id) || !ze_is_user_zombie(id))
continue
g_bNemesis[id] = false
}
}
Re: Nemesis Round
Posted: 18 Jun 2019, 04:41
by alexnovac18
sPe3doN wrote: ↑4 years ago
alexnovac18 wrote: ↑4 years ago
Hi , i cant complie because have errors,
Code: Select all
// D:\Date 2019\scripting\include\fun.inc(28) : error 017: undefined symbol "HIT_GENERIC"
// D:\Date 2019\scripting\include\fun.inc(28) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(29) : error 017: undefined symbol "HIT_HEAD"
// D:\Date 2019\scripting\include\fun.inc(29) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(30) : error 017: undefined symbol "HIT_CHEST"
// D:\Date 2019\scripting\include\fun.inc(30) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(31) : error 017: undefined symbol "HIT_STOMACH"
// D:\Date 2019\scripting\include\fun.inc(31) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(32) : error 017: undefined symbol "HIT_LEFTARM"
// D:\Date 2019\scripting\include\fun.inc(32) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(33) : error 017: undefined symbol "HIT_RIGHTARM"
// D:\Date 2019\scripting\include\fun.inc(33) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(34) : error 017: undefined symbol "HIT_LEFTLEG"
// D:\Date 2019\scripting\include\fun.inc(34) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(35) : error 017: undefined symbol "HIT_RIGHTLEG"
// D:\Date 2019\scripting\include\fun.inc(35) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(141) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\include\fun.inc(161) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\nemesis_round.sma(28) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\nemesis_round.sma(45) : error 017: undefined symbol "START_ZOMBIE_APPEAR"
// D:\Date 2019\scripting\nemesis_round.sma(71) : error 035: argument type mismatch (argument 2)
// D:\Date 2019\scripting\nemesis_round.sma(80) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\nemesis_round.sma(98) : error 021: symbol already defined: "client_print_color"
// D:\Date 2019\scripting\nemesis_round.sma(101) : error 021: symbol already defined: "vformat"
// D:\Date 2019\scripting\nemesis_round.sma(103) : error 025: function heading differs from prototype
// D:\Date 2019\scripting\nemesis_round.sma(103) : error 010: invalid function or declaration
Try change fun.inc in include file
not work bro, :
Code: Select all
// D:\Date 2019\scripting\include\fun.inc(28) : error 017: undefined symbol "HIT_GENERIC"
// D:\Date 2019\scripting\include\fun.inc(28) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(29) : error 017: undefined symbol "HIT_HEAD"
// D:\Date 2019\scripting\include\fun.inc(29) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(30) : error 017: undefined symbol "HIT_CHEST"
// D:\Date 2019\scripting\include\fun.inc(30) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(31) : error 017: undefined symbol "HIT_STOMACH"
// D:\Date 2019\scripting\include\fun.inc(31) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(32) : error 017: undefined symbol "HIT_LEFTARM"
// D:\Date 2019\scripting\include\fun.inc(32) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(33) : error 017: undefined symbol "HIT_RIGHTARM"
// D:\Date 2019\scripting\include\fun.inc(33) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(34) : error 017: undefined symbol "HIT_LEFTLEG"
// D:\Date 2019\scripting\include\fun.inc(34) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(35) : error 017: undefined symbol "HIT_RIGHTLEG"
// D:\Date 2019\scripting\include\fun.inc(35) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(141) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\include\fun.inc(161) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\ze_nemesis_new.sma(28) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\ze_nemesis_new.sma(45) : error 017: undefined symbol "START_ZOMBIE_APPEAR"
// D:\Date 2019\scripting\ze_nemesis_new.sma(74) : error 035: argument type mismatch (argument 2)
// D:\Date 2019\scripting\ze_nemesis_new.sma(83) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\ze_nemesis_new.sma(101) : error 021: symbol already defined: "client_print_color"
// D:\Date 2019\scripting\ze_nemesis_new.sma(104) : error 021: symbol already defined: "vformat"
// D:\Date 2019\scripting\ze_nemesis_new.sma(106) : error 025: function heading differs from prototype
// D:\Date 2019\scripting\ze_nemesis_new.sma(106) : error 010: invalid function or declaration
Re: Nemesis Round
Posted: 18 Jun 2019, 09:25
by Muhammet20
sPe3doN wrote: ↑4 years ago
Great work man
But jack already made it before
Jack GamePlay wrote: ↑4 years ago
#include <zombie_escape>
new bool:g_bNemesis[33]
public plugin_init()
{
register_plugin("[ZE] First ZM are nemesis", "1.0", "Jack")
}
public ze_zombie_appear()
{
new iPlayers[32], iSelected[33], iTotalPlayers, id, iCount, iRandomIndex
get_players(iPlayers, iTotalPlayers)
if (iTotalPlayers > 0)
{
for (id = 0; id <= iTotalPlayers; id++)
{
iRandomIndex = iPlayers[id]
if (!is_user_alive(id) || !ze_is_user_zombie(id))
continue
iSelected[iCount] = iRandomIndex
iCount++
}
}
iRandomIndex = iSelected[random(iCount)]
g_bNemesis[iRandomIndex] = true
new szName[32]
get_user_name(iRandomIndex, szName, charsmax(szName))
client_print(0, print_chat, "%s became nemesis", szName)
client_print(iRandomIndex, print_chat, "You became nemesis")
}
public ze_roundend()
{
for (new id = 0; id <= get_member_game(m_nMaxPlayers); id++)
{
if (!is_user_alive(id) || !ze_is_user_zombie(id))
continue
g_bNemesis[id] = false
}
}
Jack's plugin the Nemesis is in every round , not in a random round
And also i added skin for the Nemesis and Claws
Re: Nemesis Round
Posted: 18 Jun 2019, 09:51
by Muhammet20
alexnovac18 wrote: ↑4 years ago
sPe3doN wrote: ↑4 years ago
alexnovac18 wrote: ↑4 years ago
Hi , i cant complie because have errors,
Code: Select all
// D:\Date 2019\scripting\include\fun.inc(28) : error 017: undefined symbol "HIT_GENERIC"
// D:\Date 2019\scripting\include\fun.inc(28) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(29) : error 017: undefined symbol "HIT_HEAD"
// D:\Date 2019\scripting\include\fun.inc(29) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(30) : error 017: undefined symbol "HIT_CHEST"
// D:\Date 2019\scripting\include\fun.inc(30) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(31) : error 017: undefined symbol "HIT_STOMACH"
// D:\Date 2019\scripting\include\fun.inc(31) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(32) : error 017: undefined symbol "HIT_LEFTARM"
// D:\Date 2019\scripting\include\fun.inc(32) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(33) : error 017: undefined symbol "HIT_RIGHTARM"
// D:\Date 2019\scripting\include\fun.inc(33) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(34) : error 017: undefined symbol "HIT_LEFTLEG"
// D:\Date 2019\scripting\include\fun.inc(34) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(35) : error 017: undefined symbol "HIT_RIGHTLEG"
// D:\Date 2019\scripting\include\fun.inc(35) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(141) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\include\fun.inc(161) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\nemesis_round.sma(28) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\nemesis_round.sma(45) : error 017: undefined symbol "START_ZOMBIE_APPEAR"
// D:\Date 2019\scripting\nemesis_round.sma(71) : error 035: argument type mismatch (argument 2)
// D:\Date 2019\scripting\nemesis_round.sma(80) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\nemesis_round.sma(98) : error 021: symbol already defined: "client_print_color"
// D:\Date 2019\scripting\nemesis_round.sma(101) : error 021: symbol already defined: "vformat"
// D:\Date 2019\scripting\nemesis_round.sma(103) : error 025: function heading differs from prototype
// D:\Date 2019\scripting\nemesis_round.sma(103) : error 010: invalid function or declaration
Try change fun.inc in include file
not work bro, :
Code: Select all
// D:\Date 2019\scripting\include\fun.inc(28) : error 017: undefined symbol "HIT_GENERIC"
// D:\Date 2019\scripting\include\fun.inc(28) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(29) : error 017: undefined symbol "HIT_HEAD"
// D:\Date 2019\scripting\include\fun.inc(29) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(30) : error 017: undefined symbol "HIT_CHEST"
// D:\Date 2019\scripting\include\fun.inc(30) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(31) : error 017: undefined symbol "HIT_STOMACH"
// D:\Date 2019\scripting\include\fun.inc(31) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(32) : error 017: undefined symbol "HIT_LEFTARM"
// D:\Date 2019\scripting\include\fun.inc(32) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(33) : error 017: undefined symbol "HIT_RIGHTARM"
// D:\Date 2019\scripting\include\fun.inc(33) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(34) : error 017: undefined symbol "HIT_LEFTLEG"
// D:\Date 2019\scripting\include\fun.inc(34) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(35) : error 017: undefined symbol "HIT_RIGHTLEG"
// D:\Date 2019\scripting\include\fun.inc(35) : error 008: must be a constant expression; assumed zero
// D:\Date 2019\scripting\include\fun.inc(141) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\include\fun.inc(161) : error 017: undefined symbol "kRenderFxNone"
// D:\Date 2019\scripting\ze_nemesis_new.sma(28) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\ze_nemesis_new.sma(45) : error 017: undefined symbol "START_ZOMBIE_APPEAR"
// D:\Date 2019\scripting\ze_nemesis_new.sma(74) : error 035: argument type mismatch (argument 2)
// D:\Date 2019\scripting\ze_nemesis_new.sma(83) : error 017: undefined symbol "v_model"
// D:\Date 2019\scripting\ze_nemesis_new.sma(101) : error 021: symbol already defined: "client_print_color"
// D:\Date 2019\scripting\ze_nemesis_new.sma(104) : error 021: symbol already defined: "vformat"
// D:\Date 2019\scripting\ze_nemesis_new.sma(106) : error 025: function heading differs from prototype
// D:\Date 2019\scripting\ze_nemesis_new.sma(106) : error 010: invalid function or declaration
try this code:
Code: Select all
#include <cstrike>
#include <fun>
#include <zombie_escape>
new MaxRounds
new RoundCount
new g_maxplayers
new first_round,last_round
public plugin_init()
{
register_plugin("[ZE] Nemsis round", "1.0", "Kaya Gaming")
register_logevent("round_end", 2, "1=Round_End")
register_event("TextMsg", "new_map_or_restart", "a", "2&#Game_C", "2&#Game_w")
last_round = register_cvar("ze_last_round_num","1")
MaxRounds = get_cvar_pointer("mp_maxrounds")
g_maxplayers = get_maxplayers()
}
public plugin_precache()
{
precache_model("models/player/Nemesis_Zombie/Nemesis_Zombie.mdl")
precache_model(v_model)
}
public round_end()
{
RoundCount++
}
public new_map_or_restart()
{
RoundCount = 0
}
public ze_zombie_appear()
{
new Min = get_pcvar_num(last_round)
new Max = get_pcvar_num(MaxRounds)
new RoundLimit = get_pcvar_num(MaxRounds)
if (g_maxplayers > 0)
{
for (id = 0; id <= g_maxplayers; id++)
{
if(RoundLimit - RoundCount == random_num(Min,Max))
{
register_event("DeathMsg", "deathmsg", "a")
register_event("CurWeapon", "CurWeapon", "be", "1=1")
messages(id)
if(ze_is_user_zombie(id))
{
models(id)
}
}
}
}
}
public models(id)
{
if(ze_is_user_zombie(id))
{
cs_reset_user_model(id)
cs_set_user_model(id, "Kaya_Co-Owner_Zombie")
}
}
public messages(id)
{
new g_victim = read_data(2)
static name[32]
get_user_name(id,name[id],charsmax(name))
client_print_color(id, "!n[!gZombie Escape!n] !nPlayer !t%s !gis the !tNemesis!n.",name[g_victim])
client_cmd(id,"spk zombie_escape/Nemesis_scream.wav")
}
public CurWeapon(id)
{
if(!is_user_alive(id)) return PLUGIN_CONTINUE
if(ze_is_user_zombie(id) && get_user_weapon(id)==CSW_KNIFE)
{
give_item(id, "weapon_knife")
set_pev(id, pev_viewmodel2, v_model)
set_pev(id, pev_weaponmodel2, "")
}
return PLUGIN_CONTINUE
}
public deathmsg(id)
{
new g_attacker = read_data(1);
new g_victim = read_data(2);
if((1 <= g_attacker <= g_maxplayers))
{
if(g_victim != g_attacker)
{
user_silentkill(g_victim)
}
}
}
Re: Nemesis Round
Posted: 18 Jun 2019, 09:57
by Muhammet20
Muhammet20 wrote: ↑4 years ago
Hi all,
i made this plugin who is so much users/members needs it
Commands:
_____________
Don't change this command(Recommended)
ze_last_round_num || Default: 1
code:
_________
Code: Select all
#include <cstrike>
#include <fun>
#include <zombie_escape>
new MaxRounds
new RoundCount
new g_maxplayers
new first_round,last_round
public plugin_init()
{
register_plugin("[ZE] Nemsis round", "1.0", "Kaya Gaming")
register_logevent("round_end", 2, "1=Round_End")
register_event("TextMsg", "new_map_or_restart", "a", "2&#Game_C", "2&#Game_w")
first_round = register_cvar("ze_first_round_num","6")
last_round = register_cvar("ze_last_round_num","1")
MaxRounds = get_cvar_pointer("mp_maxrounds")
g_maxplayers = get_maxplayers()
}
public plugin_precache()
{
precache_model("models/player/Nemesis_Zombie/Nemesis_Zombie.mdl")
precache_model(v_model)
}
public round_end()
{
RoundCount++
}
public new_map_or_restart()
{
RoundCount = 0
}
public ze_zombie_appear()
{
new Min = get_pcvar_num(last_round)
new Max = get_pcvar_num(first_round)
new RoundLimit = get_pcvar_num(MaxRounds)
if (g_maxplayers > 0)
{
for (id = 0; id <= g_maxplayers; id++)
{
if(RoundLimit - RoundCount == random_num(Min,Max))
{
register_event("DeathMsg", "deathmsg", "a")
register_event("CurWeapon", "CurWeapon", "be", "1=1")
messages(id)
if(ze_is_user_zombie(id))
{
models(id)
}
}
}
}
}
public models(id)
{
if(ze_is_user_zombie(id))
{
cs_reset_user_model(id)
cs_set_user_model(id, "Kaya_Co-Owner_Zombie")
}
}
public messages(id)
{
new g_victim = read_data(2)
static name[32]
get_user_name(id,name[id],charsmax(name))
client_print_color(id, "!n[!gZombie Escape!n] !nPlayer !t%s !gis the !tNemesis!n.",name[g_victim])
client_cmd(id,"spk zombie_escape/Nemesis_scream.wav")
}
public CurWeapon(id)
{
if(!is_user_alive(id)) return PLUGIN_CONTINUE
if(ze_is_user_zombie(id) && get_user_weapon(id)==CSW_KNIFE)
{
give_item(id, "weapon_knife")
set_pev(id, pev_viewmodel2, v_model)
set_pev(id, pev_weaponmodel2, "")
}
return PLUGIN_CONTINUE
}
public deathmsg(id)
{
new g_attacker = read_data(1);
new g_victim = read_data(2);
if((1 <= g_attacker <= g_maxplayers))
{
if(g_victim != g_attacker)
{
user_silentkill(g_victim)
}
}
}
Please download this to put Models+Sounds:
https://www.mediafire.com/file/lxd934ma ... e.rar/file
There was some problems
Fixed.
There was some problems
Fixed.
Re: Nemesis Round
Posted: 18 Jun 2019, 11:01
by Night Fury
Your code is bugged & will not work in some cases.
Fix it.
Re: Nemesis Round
Posted: 18 Jun 2019, 11:21
by Muhammet20
Jack GamePlay wrote: ↑4 years ago
Your code is bugged & will not work in some cases.
Fix it.
Can you help me ?
where is bugs ?
Re: Nemesis Round
Posted: 18 Jun 2019, 16:39
by Night Fury
1) Let's assume that mp_maxrounds cvar is 0
From your code:
if(RoundLimit - RoundCount == random_num(Min,Max))
So while min & max are positive values, roundlimit which is 0, its below code will never be executed.
2)
v_model is not defined so error while compiling.
3)
cs_set_user_model(id, "Kaya_Co-Owner_Zombie")
This model is not precached & we use rg_set_user_model not cs_set_user_model.
4)
precache_model("models/player/Nemesis_Zombie/Nemesis_Zombie.mdl")
You precached the model and didn't use it.
5) From your code:
g_maxplayers = get_maxplayers()
From
THE API OF THE AMXMODX:
Returns the maxplayers setting of the current server, that is how many
clients it supports.
6)
for (id = 0; id <= g_maxplayers; id++)
You didn't skip dead & not connected players which would result into error with invalid ids.
7)
register_event("DeathMsg", "deathmsg", "a")
register_event("CurWeapon", "CurWeapon", "be", "1=1")
Why didn't you register them in plugin_init() ?!
8)
if(ze_is_user_zombie(id) && get_user_weapon(id)==CSW_KNIFE)
By this code, you just change the model of any zombie's claws.
9)
public deathmsg(id)
{
new g_attacker = read_data(1);
new g_victim = read_data(2);
if((1 <= g_attacker <= g_maxplayers))
{
if(g_victim != g_attacker)
{
user_silentkill(g_victim)
}
}
}
This code is meaningless.
Re: Nemesis Round
Posted: 18 Jun 2019, 18:42
by Muhammet20
Jack GamePlay wrote: ↑4 years ago
1) Let's assume that mp_maxrounds cvar is 0
From your code:
if(RoundLimit - RoundCount == random_num(Min,Max))
So while min & max are positive values, roundlimit which is 0, its below code will never be executed.
2)
v_model is not defined so error while compiling.
3)
cs_set_user_model(id, "Kaya_Co-Owner_Zombie")
This model is not precached & we use rg_set_user_model not cs_set_user_model.
4)
precache_model("models/player/Nemesis_Zombie/Nemesis_Zombie.mdl")
You precached the model and didn't use it.
5) From your code:
g_maxplayers = get_maxplayers()
From
THE API OF THE AMXMODX:
Returns the maxplayers setting of the current server, that is how many
clients it supports.
6)
for (id = 0; id <= g_maxplayers; id++)
You didn't skip dead & not connected players which would result into error with invalid ids.
7)
register_event("DeathMsg", "deathmsg", "a")
register_event("CurWeapon", "CurWeapon", "be", "1=1")
Why didn't you register them in plugin_init() ?!
8)
if(ze_is_user_zombie(id) && get_user_weapon(id)==CSW_KNIFE)
By this code, you just change the model of any zombie's claws.
9)
public deathmsg(id)
{
new g_attacker = read_data(1);
new g_victim = read_data(2);
if((1 <= g_attacker <= g_maxplayers))
{
if(g_victim != g_attacker)
{
user_silentkill(g_victim)
}
}
}
This code is meaningless.
I saw the all you said is Right
but the 9th i don't understand it
Re: Nemesis Round
Posted: 18 Jun 2019, 18:44
by Muhammet20
Ok i will work on it more , and i will make another version
Re: Nemesis Round
Posted: 19 Jun 2019, 12:17
by z0h1r-LK
NiiiiiiiiiiiiiiCe
Bro
I can add an adjustment in the plugin
Re: Nemesis Round
Posted: 19 Jun 2019, 18:41
by Muhammet20
lizoumapper wrote: ↑4 years ago
NiiiiiiiiiiiiiiCe
Bro
I can add an adjustment in the plugin
I Fixed so much bugs with @Jack's help
and still adding somethings + testing
i will make another version better than this
Re: [Updated] Nemesis Round v1.1
Posted: 19 Jun 2019, 19:56
by Muhammet20
Fixed all bugs and problems and added longjump plugin
Re: [Updated] Nemesis Round v1.1
Posted: 20 Jun 2019, 15:11
by Night Fury
For real, have you tested this plugin?
Re: [Updated] Nemesis Round v1.1
Posted: 20 Jun 2019, 16:00
by Muhammet20
Jack GamePlay wrote: ↑4 years ago
For real, have you tested this plugin?
yes and it's working , do you see any false ?
Re: [Updated] Nemesis Round v1.1
Posted: 21 Jun 2019, 08:57
by Raheem
Hello,
The nemesis will infect or kill players? It should kill but i can't find the usage of: ze_user_infected_pre()
forward. Explain me how this will works.
Also upload files on our website better than using external links like Mediafire.
Re: [Updated] Nemesis Round v1.1
Posted: 21 Jun 2019, 20:31
by Muhammet20
Raheem wrote: ↑4 years ago
Hello,
The nemesis will infect or kill players? It should kill but i can't find the usage of:
ze_user_infected_pre()
forward. Explain me how this will works.
Also upload files on our website better than using external links like Mediafire.
ok i will edit it