[Updated] Nemesis Round v1.1

Useless Stuffs, Spam ... etc
Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

[Updated] Nemesis Round v1.1

#1

Post by Muhammet20 » 4 years ago

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:
    1. /*
    2. Version 1.1:
    3. What is News ?
    4.  
    5. 1- Added Lonjump Plugin To Nemsesis Zombies
    6. 2- The Nemesis round now is in the last round
    7. 3- Fixed Bugs & Some Problems
    8.  
    9. And Special thanks to Jack Gameplay
    10. */
    11.  
    12.  
    13. #include <zombie_escape>
    14.  
    15. new MaxRounds
    16. new RoundCount
    17. new g_maxplayers
    18.  
    19. native give_longjump(id)
    20.  
    21. new const v_model[] = "models/zombie_escape/Nemesis_Claws.mdl"
    22. new const g_szNemsisModel[] = "Nemesis_Zombie"
    23.  
    24.  
    25. public plugin_init()
    26. {
    27.     register_plugin("[ZE] Nemsis round", "1.1", "Kaya Gaming")
    28.    
    29.     register_event("TextMsg", "new_map_or_restart", "a", "2&#Game_C", "2&#Game_w")
    30.    
    31.     MaxRounds = get_cvar_pointer("mp_maxrounds")
    32.     g_maxplayers = get_maxplayers()
    33.    
    34. }
    35.  
    36. public plugin_precache()
    37. {
    38.     new szModelPath[32]
    39.     precache_model(v_model)
    40.     formatex(szModelPath, charsmax(szModelPath), "models/player/%s/%s.mdl", g_szNemsisModel, g_szNemsisModel)
    41.     precache_model(szModelPath)
    42. }
    43.  
    44. public ze_roundend()
    45. {
    46.     RoundCount++
    47. }
    48.  
    49. public new_map_or_restart()
    50. {
    51.     RoundCount = 0
    52. }
    53.  
    54. public ze_zombie_appear(id)
    55. {
    56.     if(get_pcvar_num(MaxRounds) - RoundCount == 1)
    57.     {
    58.         set_task(0.01, "models", id)
    59.         claws_model(id)
    60.         messages(id)
    61.         give_longjump(id)
    62.        
    63.     }
    64. }
    65.  
    66. public ze_user_infected_pre(iVictim, iInfector, iDamage)
    67. {
    68.     if(get_pcvar_num(MaxRounds) - RoundCount != 1)
    69.         return
    70.        
    71.     new g_attacker = read_data(1);
    72.     new g_victim = read_data(2);
    73.    
    74.     if(g_victim != g_attacker && ze_is_user_zombie(g_attacker))
    75.     {
    76.         set_task(0.01, "kill_no_infect", g_victim)
    77.         return 1;
    78.     }
    79. }
    80.  
    81. public kill_no_infect(id)
    82. {
    83.     user_silentkill(id)
    84. }
    85.  
    86. public models(id)
    87. {
    88.     if(ze_is_user_zombie(id) && get_pcvar_num(MaxRounds) - RoundCount == 1)
    89.     {
    90.         rg_reset_user_model(id)
    91.         rg_set_user_model(id, g_szNemsisModel)
    92.     }
    93. }
    94.  
    95. public messages(id)
    96. {
    97.     PlaySound(id, "zombie_escape/Nemesis_scream.wav")
    98. }
    99.  
    100. public claws_model(id)
    101. {
    102.     if(get_pcvar_num(MaxRounds) - RoundCount == 1 && get_user_weapon(id) == CSW_KNIFE && ze_is_user_zombie(id))
    103.     {
    104.         rg_give_item(id, "weapon_knife")
    105.         set_pev(id, pev_viewmodel2, v_model)
    106.         set_pev(id, pev_weaponmodel2, "")
    107.     }
    108. }
Longjump(Leap Jump) Plugin Code:
    1. #include <zombie_escape>
    2.  
    3. #define PLUGIN "[ZE] Extra Item:Leap"
    4. #define VERSION "1.5.7"
    5. #define AUTHOR "Fry!"
    6.  
    7. /*================================================================================
    8.  [Plugin Customization]
    9. =================================================================================*/
    10.  
    11. new bool:g_hasLongJump[33],g_SayText
    12. new Float:g_last_LongJump_time[33]
    13. new g_LongJump_force, g_LongJump_height, g_LongJump_cooldown
    14. public plugin_init()
    15. {
    16.     register_plugin(PLUGIN, VERSION, AUTHOR)
    17.    
    18.     register_cvar("ze_leap",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
    19.    
    20.     g_LongJump_force = register_cvar("ze_longjump_force", "580")
    21.     g_LongJump_height = register_cvar("ze_longjump_height", "320")
    22.     g_LongJump_cooldown = register_cvar("ze_longjump_cooldown", "10.0")
    23.    
    24.     register_forward(FM_PlayerPreThink, "fw_PlayerPreThink")
    25.    
    26.     register_event("DeathMsg", "death", "a")
    27.     register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
    28.     g_SayText = get_user_msgid("SayText")
    29. }
    30. public plugin_natives()
    31. {
    32.     register_native("give_longjump","native_give_longjump",1)
    33. }
    34. public native_give_longjump(id)
    35. {
    36.     if(ze_is_user_zombie(id))
    37.     {
    38.         g_hasLongJump[id] = true
    39.     }
    40.     else
    41.     {
    42.         g_hasLongJump[id] = false
    43.     }
    44. }
    45. stock Color(const id, const input[], any:...)
    46. {
    47.     static msg[191]
    48.     vformat(msg, 190, input, 3)
    49.    
    50.     replace_all(msg, 190, "!g", "^4")
    51.     replace_all(msg, 190, "!y", "^1")
    52.     replace_all(msg, 190, "!t", "^3")
    53.    
    54.     message_begin(MSG_ONE_UNRELIABLE, g_SayText, _, id)
    55.     write_byte(id)
    56.     write_string(msg)
    57.     message_end()
    58. }
    59. // Reset on disconnection
    60. public client_disconnected(id)
    61. {
    62.     g_hasLongJump[id] = false
    63. }
    64.  
    65. // Reset on death
    66. public death()
    67. {
    68.     g_hasLongJump[read_data(2)] = false
    69. }
    70.  
    71. // Reset if turned into human
    72. public ze_user_humanized(id)
    73. {
    74.     g_hasLongJump[id] = false
    75. }
    76.  
    77. // Reset at round start (for everyone)
    78. public event_round_start()
    79. {
    80.     for (new i = 1; i <= 32; i++)
    81.         g_hasLongJump[i] = false
    82. }  
    83. public fw_PlayerPreThink(id)
    84. {
    85.     if (!is_user_alive(id))
    86.         return FMRES_IGNORED
    87.    
    88.     if (allow_LongJump(id))
    89.     {
    90.         static Float:velocity[3]
    91.         velocity_by_aim(id, get_pcvar_num(g_LongJump_force), velocity)
    92.        
    93.         velocity[2] = get_pcvar_float(g_LongJump_height)
    94.        
    95.         set_pev(id, pev_velocity, velocity)
    96.        
    97.         g_last_LongJump_time[id] = get_gametime()
    98.     }
    99.    
    100.     return FMRES_IGNORED
    101. }
    102.  
    103. // Check if the player can longjump
    104. allow_LongJump(id)
    105. {
    106.     if (!g_hasLongJump[id])
    107.         return false
    108.    
    109.     if (!(pev(id, pev_flags) & FL_ONGROUND) || fm_get_speed(id) < 80)
    110.         return false
    111.    
    112.     static buttons
    113.     buttons = pev(id, pev_button)
    114.    
    115.     if (!is_user_bot(id) && (!(buttons & IN_JUMP) || !(buttons & IN_DUCK)))
    116.         return false
    117.    
    118.     if (get_gametime() - g_last_LongJump_time[id] < get_pcvar_float(g_LongJump_cooldown))
    119.         return false
    120.        
    121.     if(g_last_LongJump_time[id] == get_pcvar_float(g_LongJump_cooldown))
    122.     {
    123.         client_print(id,print_chat,"[ZE] You can use the Leap Jump now.")
    124.         return true
    125.     }
    126.    
    127.     return true
    128. }
    129.  
    130. // Get entity's speed (from fakemeta_util)
    131. stock fm_get_speed(entity)
    132. {
    133.     static Float:velocity[3]
    134.     pev(entity, pev_velocity, velocity)
    135.    
    136.     return floatround(vector_length(velocity))
    137. }
Please download this to put Models+Sounds:
Last edited by Muhammet20 4 years ago, edited 16 times in total.

User avatar
alexnovac18
Member
Member
Romania
Posts: 28
Joined: 5 years ago
Location: Romania
Contact:

#2

Post by alexnovac18 » 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

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#3

Post by sPe3doN » 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
Attachments
fun.inc
(10.48 KiB) Downloaded 462 times
fun.inc
(10.48 KiB) Downloaded 462 times
Image

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#4

Post by sPe3doN » 4 years ago

Great work man

But jack already made it before
Jack GamePlay wrote: 4 years ago
  1. #include <zombie_escape>
  2.  
  3. new bool:g_bNemesis[33]
  4.  
  5. public plugin_init()
  6. {
  7.     register_plugin("[ZE] First ZM are nemesis", "1.0", "Jack")
  8. }
  9.  
  10. public ze_zombie_appear()
  11. {
  12.     new iPlayers[32], iSelected[33], iTotalPlayers, id, iCount, iRandomIndex
  13.     get_players(iPlayers, iTotalPlayers)
  14.  
  15.     if (iTotalPlayers > 0)
  16.     {
  17.         for (id = 0; id <= iTotalPlayers; id++)
  18.         {
  19.             iRandomIndex = iPlayers[id]
  20.  
  21.             if (!is_user_alive(id) || !ze_is_user_zombie(id))
  22.                 continue
  23.  
  24.             iSelected[iCount] = iRandomIndex
  25.             iCount++
  26.         }
  27.     }
  28.  
  29.     iRandomIndex = iSelected[random(iCount)]
  30.     g_bNemesis[iRandomIndex] = true
  31.  
  32.     new szName[32]
  33.     get_user_name(iRandomIndex, szName, charsmax(szName))
  34.     client_print(0, print_chat, "%s became nemesis", szName)
  35.     client_print(iRandomIndex, print_chat, "You became nemesis")
  36. }
  37.  
  38. public ze_roundend()
  39. {
  40.     for (new id = 0; id <= get_member_game(m_nMaxPlayers); id++)
  41.     {
  42.         if (!is_user_alive(id) || !ze_is_user_zombie(id))
  43.                 continue
  44.  
  45.         g_bNemesis[id] = false
  46.     }
  47. }
Image

User avatar
alexnovac18
Member
Member
Romania
Posts: 28
Joined: 5 years ago
Location: Romania
Contact:

#5

Post by alexnovac18 » 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

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#6

Post by Muhammet20 » 4 years ago

sPe3doN wrote: 4 years ago Great work man

But jack already made it before
Jack GamePlay wrote: 4 years ago
  1. #include <zombie_escape>
  2.  
  3. new bool:g_bNemesis[33]
  4.  
  5. public plugin_init()
  6. {
  7.     register_plugin("[ZE] First ZM are nemesis", "1.0", "Jack")
  8. }
  9.  
  10. public ze_zombie_appear()
  11. {
  12.     new iPlayers[32], iSelected[33], iTotalPlayers, id, iCount, iRandomIndex
  13.     get_players(iPlayers, iTotalPlayers)
  14.  
  15.     if (iTotalPlayers > 0)
  16.     {
  17.         for (id = 0; id <= iTotalPlayers; id++)
  18.         {
  19.             iRandomIndex = iPlayers[id]
  20.  
  21.             if (!is_user_alive(id) || !ze_is_user_zombie(id))
  22.                 continue
  23.  
  24.             iSelected[iCount] = iRandomIndex
  25.             iCount++
  26.         }
  27.     }
  28.  
  29.     iRandomIndex = iSelected[random(iCount)]
  30.     g_bNemesis[iRandomIndex] = true
  31.  
  32.     new szName[32]
  33.     get_user_name(iRandomIndex, szName, charsmax(szName))
  34.     client_print(0, print_chat, "%s became nemesis", szName)
  35.     client_print(iRandomIndex, print_chat, "You became nemesis")
  36. }
  37.  
  38. public ze_roundend()
  39. {
  40.     for (new id = 0; id <= get_member_game(m_nMaxPlayers); id++)
  41.     {
  42.         if (!is_user_alive(id) || !ze_is_user_zombie(id))
  43.                 continue
  44.  
  45.         g_bNemesis[id] = false
  46.     }
  47. }
Jack's plugin the Nemesis is in every round , not in a random round
And also i added skin for the Nemesis and Claws

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#7

Post by Muhammet20 » 4 years ago

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)
		}
	}
}

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#8

Post by Muhammet20 » 4 years ago

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.

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#9

Post by Night Fury » 4 years ago

Your code is bugged & will not work in some cases.
Fix it.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#10

Post by Muhammet20 » 4 years ago

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 ?

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#11

Post by Night Fury » 4 years ago

1) Let's assume that mp_maxrounds cvar is 0
From your code:
  1. 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)
  1. precache_model(v_model)
v_model is not defined so error while compiling.


3)
  1. 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)
  1. precache_model("models/player/Nemesis_Zombie/Nemesis_Zombie.mdl")
You precached the model and didn't use it.


5) From your code:
  1. g_maxplayers = get_maxplayers()
  1. if (g_maxplayers > 0)
From THE API OF THE AMXMODX:
Returns the maxplayers setting of the current server, that is how many
clients it supports.

6)
  1. for (id = 0; id <= g_maxplayers; id++)
You didn't skip dead & not connected players which would result into error with invalid ids.


7)
  1. register_event("DeathMsg", "deathmsg", "a")
  2.                 register_event("CurWeapon", "CurWeapon", "be", "1=1")
Why didn't you register them in plugin_init() ?!


8)
  1. 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)
  1. public deathmsg(id)
  2. {  
  3.     new g_attacker = read_data(1);
  4.     new g_victim = read_data(2);
  5.    
  6.     if((1 <= g_attacker <= g_maxplayers))
  7.     {
  8.         if(g_victim != g_attacker)
  9.         {
  10.             user_silentkill(g_victim)
  11.         }
  12.     }
  13. }
This code is meaningless.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#12

Post by Muhammet20 » 4 years ago

Jack GamePlay wrote: 4 years ago 1) Let's assume that mp_maxrounds cvar is 0
From your code:
  1. 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)
  1. precache_model(v_model)
v_model is not defined so error while compiling.


3)
  1. 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)
  1. precache_model("models/player/Nemesis_Zombie/Nemesis_Zombie.mdl")
You precached the model and didn't use it.


5) From your code:
  1. g_maxplayers = get_maxplayers()
  1. if (g_maxplayers > 0)
From THE API OF THE AMXMODX:
Returns the maxplayers setting of the current server, that is how many
clients it supports.

6)
  1. for (id = 0; id <= g_maxplayers; id++)
You didn't skip dead & not connected players which would result into error with invalid ids.


7)
  1. register_event("DeathMsg", "deathmsg", "a")
  2.                 register_event("CurWeapon", "CurWeapon", "be", "1=1")
Why didn't you register them in plugin_init() ?!


8)
  1. 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)
  1. public deathmsg(id)
  2. {  
  3.     new g_attacker = read_data(1);
  4.     new g_victim = read_data(2);
  5.    
  6.     if((1 <= g_attacker <= g_maxplayers))
  7.     {
  8.         if(g_victim != g_attacker)
  9.         {
  10.             user_silentkill(g_victim)
  11.         }
  12.     }
  13. }
This code is meaningless.
I saw the all you said is Right
but the 9th i don't understand it

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#13

Post by Muhammet20 » 4 years ago

Ok i will work on it more , and i will make another version

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 473
Joined: 5 years ago
Location: The Red City ❤
Contact:

#14

Post by z0h1r-LK » 4 years ago

NiiiiiiiiiiiiiiCe
Bro
I can add an adjustment in the plugin

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#15

Post by Muhammet20 » 4 years ago

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

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#16

Post by Muhammet20 » 4 years ago

Fixed all bugs and problems and added longjump plugin

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#17

Post by Night Fury » 4 years ago

For real, have you tested this plugin?
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#18

Post by Muhammet20 » 4 years ago

Jack GamePlay wrote: 4 years ago For real, have you tested this plugin?
yes and it's working , do you see any false ?

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#19

Post by Raheem » 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.
He who fails to plan is planning to fail

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#20

Post by Muhammet20 » 4 years ago

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

Post Reply

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

Register

Sign in

Who is online

Users browsing this forum: No registered users and 4 guests