[Updated] Nemesis Round v1.1

Useless Stuffs, Spam ... etc
Templaso
Senior Member
Senior Member
Romania
Posts: 119
Joined: 5 years ago
Location: Bucharest
Contact:

#51

Post by Templaso » 4 years ago

Raheem wrote: 4 years ago Try and use final released compiler:
    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.  
    18. native give_longjump(id)
    19.  
    20. new const v_model[] = "models/zombie_escape/Nemesis_Claws.mdl"
    21. new const g_szNemsisModel[] = "Nemesis_Zombie"
    22.  
    23.  
    24. public plugin_init()
    25. {
    26.     register_plugin("[ZE] Nemsis round", "1.1", "Kaya Gaming")
    27.    
    28.     register_event("TextMsg", "new_map_or_restart", "a", "2&#Game_C", "2&#Game_w")
    29.    
    30.     MaxRounds = get_cvar_pointer("mp_maxrounds")
    31. }
    32. public plugin_precache()
    33. {
    34.     new szModelPath[32]
    35.     precache_model(v_model)
    36.     formatex(szModelPath, charsmax(szModelPath), "models/player/%s/%s.mdl", g_szNemsisModel, g_szNemsisModel)
    37.     precache_model(szModelPath)
    38. }
    39. public ze_roundend()
    40. {
    41.     RoundCount++
    42. }
    43. public new_map_or_restart()
    44. {
    45.     RoundCount = 0
    46. }
    47. public ze_zombie_appear(id)
    48. {
    49.     if(get_pcvar_num(MaxRounds) - RoundCount == 1)
    50.     {
    51.         set_task(0.1, "models", id)
    52.         claws_model(id)
    53.         messages(id)
    54.         give_longjump(id)
    55.     }
    56. }
    57. public ze_user_infected_pre(iVictim, iInfector, iDamage)
    58. {
    59.     if(get_pcvar_num(MaxRounds) - RoundCount != 1)
    60.         return 0;
    61.        
    62.     new g_attacker = read_data(1);
    63.     new g_victim = read_data(2);
    64.    
    65.     if(g_victim != g_attacker && ze_is_user_zombie(g_attacker))
    66.     {
    67.         set_task(0.01, "kill_no_infect", g_victim)
    68.     }
    69.    
    70.     return 1;
    71. }
    72. public kill_no_infect(id)
    73. {
    74.     user_silentkill(id)
    75. }
    76. public models(id)
    77. {
    78.     if(ze_is_user_zombie(id) && get_pcvar_num(MaxRounds) - RoundCount == 1)
    79.     {
    80.         rg_reset_user_model(id)
    81.         rg_set_user_model(id, g_szNemsisModel)
    82.     }
    83. }
    84.  
    85. public messages(id)
    86. {
    87.     PlaySound(id, "zombie_escape/nemesis_fantasy_scream.wav")
    88. }
    89.  
    90. public claws_model(id)
    91. {
    92.     if(get_pcvar_num(MaxRounds) - RoundCount == 1 && get_user_weapon(id) == CSW_KNIFE && ze_is_user_zombie(id))
    93.     {
    94.         rg_give_item(id, "weapon_knife")
    95.         set_pev(id, pev_viewmodel2, v_model)
    96.         set_pev(id, pev_weaponmodel2, "")
    97.     }
    98. }
This forward ze_user_infected_pre() should be defined in your includes as:

good but this still: nemesis_round.sma(54) : error 025: function heading differs from prototype

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

#52

Post by Raheem » 4 years ago

Change: To: Approved tag removed from this plugin.. I never test or compiled it even.
He who fails to plan is planning to fail

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

#53

Post by Raheem » 4 years ago

Final 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.  
  18. native give_longjump(id)
  19.  
  20. new const v_model[] = "models/zombie_escape/Nemesis_Claws.mdl"
  21. new const g_szNemsisModel[] = "Nemesis_Zombie"
  22.  
  23.  
  24. public plugin_init()
  25. {
  26.     register_plugin("[ZE] Nemsis round", "1.1", "Kaya Gaming")
  27.    
  28.     register_event("TextMsg", "new_map_or_restart", "a", "2&#Game_C", "2&#Game_w")
  29.    
  30.     MaxRounds = get_cvar_pointer("mp_maxrounds")
  31. }
  32. public plugin_precache()
  33. {
  34.     new szModelPath[32]
  35.     precache_model(v_model)
  36.     formatex(szModelPath, charsmax(szModelPath), "models/player/%s/%s.mdl", g_szNemsisModel, g_szNemsisModel)
  37.     precache_model(szModelPath)
  38. }
  39. public ze_roundend()
  40. {
  41.     RoundCount++
  42. }
  43. public new_map_or_restart()
  44. {
  45.     RoundCount = 0
  46. }
  47.  
  48. public ze_user_infected(iVictim, iInfector)
  49. {
  50.     if(get_pcvar_num(MaxRounds) - RoundCount == 1)
  51.     {
  52.         set_task(0.1, "models", iVictim)
  53.         claws_model(iVictim)
  54.         messages(iVictim)
  55.         give_longjump(iVictim)
  56.     }
  57. }
  58. public ze_user_infected_pre(iVictim, iInfector, iDamage)
  59. {
  60.     if(get_pcvar_num(MaxRounds) - RoundCount != 1)
  61.         return 0;
  62.        
  63.     new g_attacker = read_data(1);
  64.     new g_victim = read_data(2);
  65.    
  66.     if(g_victim != g_attacker && ze_is_user_zombie(g_attacker))
  67.     {
  68.         set_task(0.01, "kill_no_infect", g_victim)
  69.     }
  70.    
  71.     return 1;
  72. }
  73. public kill_no_infect(id)
  74. {
  75.     user_silentkill(id)
  76. }
  77. public models(id)
  78. {
  79.     if(ze_is_user_zombie(id) && get_pcvar_num(MaxRounds) - RoundCount == 1)
  80.     {
  81.         rg_reset_user_model(id)
  82.         rg_set_user_model(id, g_szNemsisModel)
  83.     }
  84. }
  85.  
  86. public messages(id)
  87. {
  88.     PlaySound(id, "zombie_escape/nemesis_fantasy_scream.wav")
  89. }
  90.  
  91. public claws_model(id)
  92. {
  93.     if(get_pcvar_num(MaxRounds) - RoundCount == 1 && get_user_weapon(id) == CSW_KNIFE && ze_is_user_zombie(id))
  94.     {
  95.         rg_give_item(id, "weapon_knife")
  96.         set_pev(id, pev_viewmodel2, v_model)
  97.         set_pev(id, pev_weaponmodel2, "")
  98.     }
  99. }
He who fails to plan is planning to fail

Templaso
Senior Member
Senior Member
Romania
Posts: 119
Joined: 5 years ago
Location: Bucharest
Contact:

#54

Post by Templaso » 4 years ago

ze_nemesis_round.sma(51): error 017: undefined symbol "id"
ze_nemesis_round.sma(52): error 017: undefined symbol "id"
ze_nemesis_round.sma(53): error 017: undefined symbol "id"
ze_nemesis_round.sma(54): error 017: undefined symbol "id"

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

#55

Post by Raheem » 4 years ago

test.amxx
(4.03 KiB) Downloaded 412 times
test.amxx
(4.03 KiB) Downloaded 412 times
He who fails to plan is planning to fail

Templaso
Senior Member
Senior Member
Romania
Posts: 119
Joined: 5 years ago
Location: Bucharest
Contact:

#56

Post by Templaso » 4 years ago

Now is fixed

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

#57

Post by Muhammet20 » 4 years ago

Mystic Viper wrote: 4 years ago Now is fixed
working success ?

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

#58

Post by Raheem » 4 years ago

Not working problem after problem so will be trashed:
  • trash.png
He who fails to plan is planning to fail

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

#59

Post by Muhammet20 » 4 years ago

Raheem wrote: 4 years ago Not working problem after problem so will be trashed:
  • trash.png
idk why this happened but i know that iam failed :(

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

#60

Post by Raheem » 4 years ago

Sorry trashed.
He who fails to plan is planning to fail

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 2 guests