[Updated] Nemesis Round v1.1

Useless Stuffs, Spam ... etc
Mystic Viper
Member
Member
Romania
Posts: 88
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: [Updated] Nemesis Round v1.1

#51

Post by Mystic Viper » 1 Week Ago

Raheem wrote:
1 Week 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
Egypt
Posts: 1873
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#52

Post by Raheem » 1 Week Ago

Change: To: Approved tag removed from this plugin.. I never test or compiled it even.
You don't know? Learn and you will know.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1873
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#53

Post by Raheem » 1 Week 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. }
You don't know? Learn and you will know.

Mystic Viper
Member
Member
Romania
Posts: 88
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

#54

Post by Mystic Viper » 1 Week 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
Egypt
Posts: 1873
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#55

Post by Raheem » 1 Week Ago

test.amxx
(4.03 KiB) Downloaded 3 times
test.amxx
(4.03 KiB) Downloaded 3 times
You don't know? Learn and you will know.

Mystic Viper
Member
Member
Romania
Posts: 88
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

#56

Post by Mystic Viper » 1 Week Ago

Now is fixed

User avatar
Muhammet20
Senior Member
Senior Member
Syria
Posts: 267
Joined: 10 Months Ago
Location: Turkey
Has thanked: 29 times
Been thanked: 2 times
Age: 13
Contact:

#57

Post by Muhammet20 » 1 Week Ago

Mystic Viper wrote:
1 Week Ago
Now is fixed
working success ?
I just believe in two things , First one is who i see him in the mirror , and second one is who i don't see him in the sky.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1873
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#58

Post by Raheem » 1 Week Ago

Not working problem after problem so will be trashed:
  • trash.png
You don't know? Learn and you will know.

User avatar
Muhammet20
Senior Member
Senior Member
Syria
Posts: 267
Joined: 10 Months Ago
Location: Turkey
Has thanked: 29 times
Been thanked: 2 times
Age: 13
Contact:

#59

Post by Muhammet20 » 1 Week Ago

Raheem wrote:
1 Week Ago
Not working problem after problem so will be trashed:
  • trash.png
idk why this happened but i know that iam failed :(
I just believe in two things , First one is who i see him in the mirror , and second one is who i don't see him in the sky.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1873
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#60

Post by Raheem » 1 Week Ago

Sorry trashed.
You don't know? Learn and you will know.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests