[Updated] Nemesis Round v1.1

Useless Stuffs, Spam ... etc
User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 358
Joined: 11 Months Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

[Updated] Nemesis Round v1.1

#1

Post by Muhammet20 » 2 Months 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 on 25 Jun 2019, 13:34, edited 16 times in total.
.::Kaya Gaming || Never Give Up || Zombie Escape::.
https://kaya-gaming.ga/index.php

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
alexnovac18
Member
Member
Romania
Posts: 26
Joined: 11 Months Ago
Location: Romania
Has thanked: 1 time
Been thanked: 0
Age: 17
Contact:

#2

Post by alexnovac18 » 2 Months 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: 192
Joined: 2 Years Ago
Has thanked: 14 times
Been thanked: 7 times
Age: 20
Contact:

#3

Post by sPe3doN » 2 Months Ago

alexnovac18 wrote:
2 Months 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 20 times
fun.inc
(10.48 KiB) Downloaded 20 times

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 192
Joined: 2 Years Ago
Has thanked: 14 times
Been thanked: 7 times
Age: 20
Contact:

#4

Post by sPe3doN » 2 Months Ago

Great work man

But jack already made it before
Jack GamePlay wrote:
2 Months 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. }

User avatar
alexnovac18
Member
Member
Romania
Posts: 26
Joined: 11 Months Ago
Location: Romania
Has thanked: 1 time
Been thanked: 0
Age: 17
Contact:

#5

Post by alexnovac18 » 2 Months Ago

sPe3doN wrote:
2 Months Ago
alexnovac18 wrote:
2 Months 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

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 358
Joined: 11 Months Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#6

Post by Muhammet20 » 2 Months Ago

sPe3doN wrote:
2 Months Ago
Great work man

But jack already made it before
Jack GamePlay wrote:
2 Months 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
.::Kaya Gaming || Never Give Up || Zombie Escape::.
https://kaya-gaming.ga/index.php

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 358
Joined: 11 Months Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#7

Post by Muhammet20 » 2 Months Ago

alexnovac18 wrote:
2 Months Ago
sPe3doN wrote:
2 Months Ago
alexnovac18 wrote:
2 Months 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)
		}
	}
}
.::Kaya Gaming || Never Give Up || Zombie Escape::.
https://kaya-gaming.ga/index.php

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 358
Joined: 11 Months Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#8

Post by Muhammet20 » 2 Months Ago

Muhammet20 wrote:
2 Months 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.
.::Kaya Gaming || Never Give Up || Zombie Escape::.
https://kaya-gaming.ga/index.php

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Jack GamePlay
Mod Developer
Mod Developer
Egypt
Posts: 581
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

#9

Post by Jack GamePlay » 2 Months Ago

Your code is bugged & will not work in some cases.
Fix it.

[ Post made via Android ]
Not interested in CS/Pawn anymore.
Accepting web projects.

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 358
Joined: 11 Months Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#10

Post by Muhammet20 » 2 Months Ago

Jack GamePlay wrote:
2 Months Ago
Your code is bugged & will not work in some cases.
Fix it.
Can you help me ?
where is bugs ?
.::Kaya Gaming || Never Give Up || Zombie Escape::.
https://kaya-gaming.ga/index.php

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest