Approved (v1.6 Only) Gamemode: Nemesis mode 1.3

Plug-ins compatibility with Zombie Escape 1.x only!


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

#11

Post by z0h1r-LK » 3 years ago

ngamerz wrote: 3 years ago Ohh nice work, you forgot the "leap" feature of nemesis, anyways GJ. But don't make ZE as ZP (I mean swarm mode)
LEAP is available
but i forgot put it ok
ok, next update i will add it ok
i will fix some bugs in plugins
thanks
i will remove swarm mode ok :)

NomaDD
Member
Member
Romania
Posts: 5
Joined: 3 years ago
Contact:

#12

Post by NomaDD » 3 years ago

i got this errors

Code: Select all

L 03/21/2021 - 20:21:01: [ZE] Invalid Player (2)
L 03/21/2021 - 20:21:01: [AMXX] Run time error 10 (plugin "ze_gamemode_nemesis.amxx") (native "ze_set_user_nemesis") - debug not enabled!
L 03/21/2021 - 20:21:01: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
And idk is from my sv but when someone is spectating the nemesis , the nemesis get stuck

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

#13

Post by z0h1r-LK » 3 years ago

NomaDD wrote: 3 years ago i got this errors

Code: Select all

L 03/21/2021 - 20:21:01: [ZE] Invalid Player (2)
L 03/21/2021 - 20:21:01: [AMXX] Run time error 10 (plugin "ze_gamemode_nemesis.amxx") (native "ze_set_user_nemesis") - debug not enabled!
L 03/21/2021 - 20:21:01: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
And idk is from my sv but when someone is spectating the nemesis , the nemesis get stuck
Tell me any version ze mod do you use

User avatar
VicKy
Mod Tester
Mod Tester
Pakistan
Posts: 87
Joined: 3 years ago
Contact:

#14

Post by VicKy » 2 years ago

Bro Add leap jump
Image

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

#15

Post by z0h1r-LK » 2 years ago

VicKy wrote: 2 years ago Bro Add leap jump
I will update nemesis mode, soon
I need solve some problems, I'm will update it

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

#16

Post by z0h1r-LK » 2 years ago

Updated to 1.2

User avatar
VicKy
Mod Tester
Mod Tester
Pakistan
Posts: 87
Joined: 3 years ago
Contact:

#17

Post by VicKy » 2 years ago

Z0uha1r_LK wrote: 2 years ago Updated to 1.2
Add Nemesis Mod All Round At Some Map That Would Me Manage in zombie_escape.ini
Like This
Nemesis_Map = Any Map You Want To Run Nemesis Mod All Round Like De_dust etc
Also Add Cvar For Nemesis Map Time
I mean when choosen time came sv will vote our added nemesis map than change to nemesis map


Sorry For Bad English :( :lol:
Image

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

#18

Post by z0h1r-LK » 2 years ago

VicKy wrote: 2 years ago Add Nemesis Mod All Round At Some Map That Would Me Manage in zombie_escape.ini
Like This
Nemesis_Map = Any Map You Want To Run Nemesis Mod All Round Like De_dust etc
Also Add Cvar For Nemesis Map Time
I mean when choosen time came sv will vote our added nemesis map than change to nemesis map


Sorry For Bad English :( :lol:
Method is easy:
- Add new folder in configs directory called 'maps'
- Add new file in new folder 'maps' called 'prefix_de.cfg', Don't forgot add extension .cfg is very important, and put it in 'prefix_de.cfg' this :
  1. // General
  2. mp_timeleft 45          // Timeleft, Time change map.
  3. mp_roundtime 9      // Time round end.
  4.  
  5. // Nemesis Round
  6. ze_nemesis_health 10000     // Nemesis health value (0=zombie health).
  7. ze_nemesis_base_hp 1000     // Base health (base_hp * count of players alive) require: ze_nemesis_health 0
  8. ze_nemesis_speed 310        // Nemesis speed value (0=zombie speed).
  9. ze_nemesis_gravity 500      // Nemesis gravity value (0=zombie gravity).
  10. ze_nemesis_glow 1       // Nemesis glow shell (0=no glow).
  11. ze_nemesis_glow_r 255       // Nemesis glow color red 0..255
  12. ze_nemesis_glow_g 255       // Nemesis glow color green 0..255
  13. ze_nemesis_glow_b 255       // Nemesis glow color blue 0..255
  14. ze_nemesis_frostnade 0      // Block frostnade from effect from nemesis (0=disable | 1=enable).
  15. ze_nemesis_firenade 1       // Block firenade from effect from nemesis. (0=disable | 1=enable)
  16. ze_nemesis_knockback 200        // Nemesis knockback value (0=zombie knockback).
  17. ze_nemesis_damage 4     // Nemesis multiple damage (0=normal).
  18.  
  19. // Gamemode Nemesis
  20. ze_nemesis_chance 20        // Chance nemesis round (1=Always).
  21. ze_nemesis_minplayers 4     // Minimum count of players to turn nemesis round.
  22. ze_nemesis_sound 1          // Sound notice (0=disable |1=enable)
  23. ze_nemesis_notice 3         // Notice message (0=Disable|1=Normal text|2=HUD|3=DHUD)
  24.  
  25. // Long-Jump
  26. ze_leap_zombie 0            // who will get a longjump? (0=Disable|1=All zombies|2=First zombies|3=Last zombies).
  27. ze_leap_zombie_height 300   // Height value when zombie use long-jump.
  28. ze_leap_zombie_force 500    // Force longjump.
  29. ze_leap_zombie_cooldown 10  // Delay before re-active long-jump for zombie(s).
  30.  
  31. ze_leap_nemesis 1           // who will get a longjump? (0=Disable|1=All nemesis|2=Last nemesis).
  32. ze_leap_nemesis_height 300  // Height value when nemesis use long-jump.
  33. ze_leap_nemesis_force 500   // Force longjump.
  34. ze_leap_nemesis_cooldown 5  // Delay before re-active long-jump for nemesis.
and save file.
If current map is de_ will turn nemesis round always.
If you set this cvar 'ze_nemesis_chance' to '1', Nemesis round will turn always.
save file like this: 'prefix_de.cfg' not like it: 'prefix_de.cfg.txt'

User avatar
VicKy
Mod Tester
Mod Tester
Pakistan
Posts: 87
Joined: 3 years ago
Contact:

#19

Post by VicKy » 2 years ago

Z0uha1r_LK wrote: 2 years ago
VicKy wrote: 2 years ago Add Nemesis Mod All Round At Some Map That Would Me Manage in zombie_escape.ini
Like This
Nemesis_Map = Any Map You Want To Run Nemesis Mod All Round Like De_dust etc
Also Add Cvar For Nemesis Map Time
I mean when choosen time came sv will vote our added nemesis map than change to nemesis map


Sorry For Bad English :( :lol:
Method is easy:
- Add new folder in configs directory called 'maps'
- Add new file in new folder 'maps' called 'prefix_de.cfg', Don't forgot add extension .cfg is very important, and put it in 'prefix_de.cfg' this :
  1. // General
  2. mp_timeleft 45          // Timeleft, Time change map.
  3. mp_roundtime 9      // Time round end.
  4.  
  5. // Nemesis Round
  6. ze_nemesis_health 10000     // Nemesis health value (0=zombie health).
  7. ze_nemesis_base_hp 1000     // Base health (base_hp * count of players alive) require: ze_nemesis_health 0
  8. ze_nemesis_speed 310        // Nemesis speed value (0=zombie speed).
  9. ze_nemesis_gravity 500      // Nemesis gravity value (0=zombie gravity).
  10. ze_nemesis_glow 1       // Nemesis glow shell (0=no glow).
  11. ze_nemesis_glow_r 255       // Nemesis glow color red 0..255
  12. ze_nemesis_glow_g 255       // Nemesis glow color green 0..255
  13. ze_nemesis_glow_b 255       // Nemesis glow color blue 0..255
  14. ze_nemesis_frostnade 0      // Block frostnade from effect from nemesis (0=disable | 1=enable).
  15. ze_nemesis_firenade 1       // Block firenade from effect from nemesis. (0=disable | 1=enable)
  16. ze_nemesis_knockback 200        // Nemesis knockback value (0=zombie knockback).
  17. ze_nemesis_damage 4     // Nemesis multiple damage (0=normal).
  18.  
  19. // Gamemode Nemesis
  20. ze_nemesis_chance 20        // Chance nemesis round (1=Always).
  21. ze_nemesis_minplayers 4     // Minimum count of players to turn nemesis round.
  22. ze_nemesis_sound 1          // Sound notice (0=disable |1=enable)
  23. ze_nemesis_notice 3         // Notice message (0=Disable|1=Normal text|2=HUD|3=DHUD)
  24.  
  25. // Long-Jump
  26. ze_leap_zombie 0            // who will get a longjump? (0=Disable|1=All zombies|2=First zombies|3=Last zombies).
  27. ze_leap_zombie_height 300   // Height value when zombie use long-jump.
  28. ze_leap_zombie_force 500    // Force longjump.
  29. ze_leap_zombie_cooldown 10  // Delay before re-active long-jump for zombie(s).
  30.  
  31. ze_leap_nemesis 1           // who will get a longjump? (0=Disable|1=All nemesis|2=Last nemesis).
  32. ze_leap_nemesis_height 300  // Height value when nemesis use long-jump.
  33. ze_leap_nemesis_force 500   // Force longjump.
  34. ze_leap_nemesis_cooldown 5  // Delay before re-active long-jump for nemesis.
and save file.
If current map is de_ will turn nemesis round always.
If you set this cvar 'ze_nemesis_chance' to '1', Nemesis round will turn always.
save file like this: 'prefix_de.cfg' not like it: 'prefix_de.cfg.txt'
Thanks Working

>> Block Zombie/Humans To Be Respawn After Nemesis Round Started !

>> I Want To Add Nemesis At Hud Like
Class :- Nemesis
  1.  
  2. ZOMBIE_SPEC = Spectating: %s^nHP: %i^nClass: Zombie^nEscape Coins: %i
  3. ZOMBIE_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Zombie^nEscape Coins: %i
  4.  
  5. NEMESIS_SPEC = Spectating: %s^nHP: %i^nClass: Nemesis^nEscape Coins: %i
  6. NEMESIS_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Nemesis^nEscape Coins: %i
  7.  
  8. HUMAN_SPEC = Spectating: %s^nHP: %i^nClass: Human^nEscape Coins: %i
  9. HUMAN_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Human^nEscape Coins: %i
  10.  
  11. HUMAN_SPEC_LEADER = Spectating: %s^nHP: %i^nClass: Escape Leader^nEscape Coins: %i
  12. HUMAN_SPEC_COMMAS_LEADER = Spectating: %s^nHP: %s^nClass: Escape Leader^nEscape Coins: %i^
  13.  
  14. ZOMBIE = >> HP: %i | Class: Zombie | Escape Coins: %i <<
  15. ZOMBIE_COMMAS = >>  HP: %s | Class: Zombie | Escape Coins: %i <<
  16.  
  17. HUMAN_LEADER = >> HP: %i | Class: Escape Leader | Escape Coins: %i <<
  18. HUMAN_LEADER_COMMAS = >> HP: %s | Class: Escape Leader | Escape Coins: %i <<
  19.  
  20. HUMAN = >> HP: %i | Class: Human | Escape Coins: %i <<
  21. HUMAN_COMMAS = >> HP: %s | Class: Human | Escape Coins: %i <<
  22.  
  23. NEMESIS = >> HP: %i | Class: Nemesis | Escape Coins: %i <<
  24. NEMESIS_COMMAS = >> HP: %s | Class: Nemesis | Escape Coins: %i <<
Image

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

#20

Post by z0h1r-LK » 2 years ago

VicKy wrote: 2 years ago Thanks Working

>> Block Zombie/Humans To Be Respawn After Nemesis Round Started !

>> I Want To Add Nemesis At Hud Like
Class :- Nemesis
  1.  
  2. ZOMBIE_SPEC = Spectating: %s^nHP: %i^nClass: Zombie^nEscape Coins: %i
  3. ZOMBIE_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Zombie^nEscape Coins: %i
  4.  
  5. NEMESIS_SPEC = Spectating: %s^nHP: %i^nClass: Nemesis^nEscape Coins: %i
  6. NEMESIS_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Nemesis^nEscape Coins: %i
  7.  
  8. HUMAN_SPEC = Spectating: %s^nHP: %i^nClass: Human^nEscape Coins: %i
  9. HUMAN_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Human^nEscape Coins: %i
  10.  
  11. HUMAN_SPEC_LEADER = Spectating: %s^nHP: %i^nClass: Escape Leader^nEscape Coins: %i
  12. HUMAN_SPEC_COMMAS_LEADER = Spectating: %s^nHP: %s^nClass: Escape Leader^nEscape Coins: %i^
  13.  
  14. ZOMBIE = >> HP: %i | Class: Zombie | Escape Coins: %i <<
  15. ZOMBIE_COMMAS = >>  HP: %s | Class: Zombie | Escape Coins: %i <<
  16.  
  17. HUMAN_LEADER = >> HP: %i | Class: Escape Leader | Escape Coins: %i <<
  18. HUMAN_LEADER_COMMAS = >> HP: %s | Class: Escape Leader | Escape Coins: %i <<
  19.  
  20. HUMAN = >> HP: %i | Class: Human | Escape Coins: %i <<
  21. HUMAN_COMMAS = >> HP: %s | Class: Human | Escape Coins: %i <<
  22.  
  23. NEMESIS = >> HP: %i | Class: Nemesis | Escape Coins: %i <<
  24. NEMESIS_COMMAS = >> HP: %s | Class: Nemesis | Escape Coins: %i <<
Ok.
I'm add that in this plugin.
Download this plugin and compile it, put it in plugins folder your server.
ze_hud_info.sma
HUD Info (Support Nemesis)
(11.89 KiB) Downloaded 217 times
ze_hud_info.sma
HUD Info (Support Nemesis)
(11.89 KiB) Downloaded 217 times

User avatar
VicKy
Mod Tester
Mod Tester
Pakistan
Posts: 87
Joined: 3 years ago
Contact:

#21

Post by VicKy » 2 years ago

Fix This Code

Hud Not Showing When I Become Nemesis
  1. #include <zombie_escape>
  2. #include <ze_class_nemesis>
  3.  
  4. // Define some natives
  5. native ze_get_user_escapes(id)
  6. native ze_get_user_infects(id)
  7.  
  8. // Defines
  9. #define TASK_SHOWHUD 100
  10. #define ID_SHOWHUD (taskid - TASK_SHOWHUD)
  11.  
  12. // Constants Change X,Y If you need (HUD & DHud)
  13. const Float:HUD_SPECT_X = 0.01
  14. const Float:HUD_SPECT_Y = 0.130
  15. const Float:HUD_STATS_X = -1.0
  16. const Float:HUD_STATS_Y = 0.86
  17.  
  18. // Colors
  19. enum
  20. {
  21.     Red = 0,
  22.     Green,
  23.     Blue
  24. }
  25.  
  26. // Variables
  27. new g_iMsgSync,
  28.     g_pCvarRankEnabled
  29.    
  30. // Cvars
  31. new g_pCvarHudInfoMode,
  32.     g_pCvarHudInfoComma,
  33.     g_pCvarZombieInfoColors[3],
  34.     g_pCvarNemesisInfoColors[3],
  35.     g_pCvarHumanInfoColors[3],
  36.     g_pCvarSpecInfoColors[3]
  37.  
  38. public plugin_init()
  39. {
  40.     register_plugin("[ZE] Hud Information", ZE_VERSION, AUTHORS)
  41.    
  42.     // Messages
  43.     g_iMsgSync = CreateHudSyncObj()
  44.    
  45.     //Cvars
  46.     g_pCvarHudInfoMode = register_cvar("ze_hud_info_mode", "1")
  47.     g_pCvarHudInfoComma = register_cvar("ze_hud_info_commas", "1")
  48.     g_pCvarZombieInfoColors[Red] = register_cvar("ze_hud_info_zombie_red", "255")
  49.     g_pCvarZombieInfoColors[Green] = register_cvar("ze_hud_info_zombie_green", "20")
  50.     g_pCvarZombieInfoColors[Blue] = register_cvar("ze_hud_info_zombie_blue", "20")
  51.     g_pCvarZombieInfoColors[Red] = register_cvar("ze_hud_info_nemesis_red", "255")
  52.     g_pCvarZombieInfoColors[Green] = register_cvar("ze_hud_info_nemesis_green", "0")
  53.     g_pCvarZombieInfoColors[Blue] = register_cvar("ze_hud_info_nemesis_blue", "0")
  54.     g_pCvarHumanInfoColors[Red] = register_cvar("ze_hud_info_human_red", "20")
  55.     g_pCvarHumanInfoColors[Green] = register_cvar("ze_hud_info_human_green", "20")
  56.     g_pCvarHumanInfoColors[Blue] = register_cvar("ze_hud_info_human_blue", "255")
  57.     g_pCvarSpecInfoColors[Red] = register_cvar("ze_hud_info_spec_red", "100")
  58.     g_pCvarSpecInfoColors[Green] = register_cvar("ze_hud_info_spec_green", "100")
  59.     g_pCvarSpecInfoColors[Blue] = register_cvar("ze_hud_info_spec_blue", "100")
  60.    
  61.     // Pointer
  62.     g_pCvarRankEnabled = get_cvar_pointer("ze_speed_rank_mode")
  63. }
  64.  
  65. public client_putinserver(id)
  66. {
  67.     if(!is_user_bot(id))
  68.     {
  69.         set_task(1.0, "ShowHUD", id+TASK_SHOWHUD, _, _, "b")
  70.     }
  71. }
  72.  
  73. public client_disconnected(id)
  74. {
  75.     remove_task(id+TASK_SHOWHUD)
  76. }
  77.  
  78. public ShowHUD(taskid)
  79. {
  80.     if (get_pcvar_num(g_pCvarHudInfoMode) == 0)
  81.         return
  82.    
  83.     new iPlayer = ID_SHOWHUD
  84.    
  85.     if (!is_user_alive(iPlayer))
  86.     {
  87.         iPlayer = get_entvar(iPlayer, var_iuser2)
  88.        
  89.         if (!is_user_alive(iPlayer))
  90.             return
  91.     }
  92.    
  93.     if(iPlayer != ID_SHOWHUD)
  94.     {
  95.         new szName[32]
  96.         get_user_name(iPlayer, szName, charsmax(szName))
  97.  
  98.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
  99.         {
  100.             set_hudmessage(get_pcvar_num(g_pCvarSpecInfoColors[Red]), get_pcvar_num(g_pCvarSpecInfoColors[Green]), get_pcvar_num(g_pCvarSpecInfoColors[Blue]), HUD_SPECT_X, HUD_SPECT_Y, 0, 1.2, 1.1, 0.5, 0.6, -1)
  101.            
  102.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  103.             {
  104.                 new szHealth[15]
  105.                 AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
  106.                
  107.                 if (ze_is_user_nemesis(iPlayer))
  108.                 {
  109.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  110.                 }
  111.                 else if (ze_is_user_zombie(iPlayer))
  112.                 {
  113.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  114.                 }
  115.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  116.                 {
  117.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  118.                 }
  119.                 else
  120.                 {
  121.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  122.                 }
  123.             }
  124.             else
  125.             {
  126.                 if (ze_is_user_nemesis(iPlayer))
  127.                 {
  128.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  129.                 }
  130.                 if (ze_is_user_zombie(iPlayer))
  131.                 {
  132.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  133.                 }
  134.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  135.                 {
  136.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_LEADER", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  137.                 }
  138.                 else
  139.                 {
  140.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  141.                 }
  142.             }
  143.         }
  144.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
  145.         {
  146.             set_dhudmessage(get_pcvar_num(g_pCvarSpecInfoColors[Red]), get_pcvar_num(g_pCvarSpecInfoColors[Green]), get_pcvar_num(g_pCvarSpecInfoColors[Blue]), HUD_SPECT_X, HUD_SPECT_Y, 0, 1.2, 1.1, 0.5, 0.6)
  147.            
  148.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  149.             {
  150.                 new szHealth[15]
  151.                 AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
  152.                
  153.                 if (ze_is_user_nemesis(iPlayer))
  154.                 {
  155.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer))
  156.                 }
  157.                 if (ze_is_user_zombie(iPlayer))
  158.                 {
  159.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  160.                 }
  161.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  162.                 {
  163.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  164.                 }
  165.                 else
  166.                 {
  167.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  168.                 }
  169.             }
  170.             else
  171.             {
  172.                 if (ze_is_user_nemesis(iPlayer))
  173.                 {
  174.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
  175.                 }
  176.                 if (ze_is_user_zombie(iPlayer))
  177.                 {
  178.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  179.                 }
  180.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  181.                 {
  182.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_LEADER", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  183.                 }
  184.                 else
  185.                 {
  186.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  187.                 }
  188.             }
  189.         }
  190.     }
  191.     else if (ze_is_user_nemesis(iPlayer))
  192.     {
  193.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
  194.         {
  195.             set_hudmessage(get_pcvar_num(g_pCvarNemesisInfoColors[Red]), get_pcvar_num(g_pCvarNemesisInfoColors[Green]), get_pcvar_num(g_pCvarNemesisInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6, -1)
  196.            
  197.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  198.             {
  199.                 new szHealth[15]
  200.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  201.  
  202.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  203.             }
  204.             else
  205.             {
  206.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  207.             }
  208.         }
  209.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
  210.         {
  211.             set_dhudmessage(get_pcvar_num(g_pCvarNemesisInfoColors[Red]), get_pcvar_num(g_pCvarNemesisInfoColors[Green]), get_pcvar_num(g_pCvarNemesisInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6)
  212.            
  213.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  214.             {
  215.                 new szHealth[15]
  216.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  217.                
  218.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "NEMESIS_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  219.             }
  220.             else
  221.             {
  222.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "NEMESIS", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD) , ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  223.             }
  224.         }
  225.     }
  226.     else if (ze_is_user_zombie(iPlayer))
  227.     {
  228.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
  229.         {
  230.             set_hudmessage(get_pcvar_num(g_pCvarZombieInfoColors[Red]), get_pcvar_num(g_pCvarZombieInfoColors[Green]), get_pcvar_num(g_pCvarZombieInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6, -1)
  231.            
  232.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  233.             {
  234.                 new szHealth[15]
  235.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  236.  
  237.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  238.             }
  239.             else
  240.             {
  241.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  242.             }
  243.         }
  244.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
  245.         {
  246.             set_dhudmessage(get_pcvar_num(g_pCvarZombieInfoColors[Red]), get_pcvar_num(g_pCvarZombieInfoColors[Green]), get_pcvar_num(g_pCvarZombieInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6)
  247.            
  248.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  249.             {
  250.                 new szHealth[15]
  251.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  252.                
  253.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  254.             }
  255.             else
  256.             {
  257.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))  
  258.             }
  259.         }
  260.     }
  261.     else
  262.     {
  263.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
  264.         {
  265.             set_hudmessage(get_pcvar_num(g_pCvarHumanInfoColors[Red]), get_pcvar_num(g_pCvarHumanInfoColors[Green]), get_pcvar_num(g_pCvarHumanInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6, -1)
  266.            
  267.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  268.             {
  269.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  270.                 {
  271.                     new szHealth[15]
  272.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  273.                
  274.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  275.                 }
  276.                 else
  277.                 {
  278.                     new szHealth[15]
  279.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  280.                
  281.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  282.                 }                  
  283.             }
  284.             else
  285.             {
  286.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  287.                 {
  288.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_LEADER", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  289.                 }
  290.                 else
  291.                 {
  292.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  293.                 }                  
  294.             }
  295.         }
  296.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
  297.         {
  298.             set_dhudmessage(get_pcvar_num(g_pCvarHumanInfoColors[Red]), get_pcvar_num(g_pCvarHumanInfoColors[Green]), get_pcvar_num(g_pCvarHumanInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6)
  299.            
  300.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  301.             {
  302.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  303.                 {
  304.                     new szHealth[15]
  305.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  306.                
  307.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  308.                 }
  309.                 else
  310.                     {
  311.                     new szHealth[15]
  312.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  313.                
  314.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  315.                 }
  316.             }
  317.             else
  318.             {
  319.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  320.                 {
  321.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_LEADER", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  322.                 }
  323.                 else
  324.                 {
  325.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  326.                 }
  327.             }
  328.         }
  329.     }
  330. }
Log Viewer Error :-
  1. L 09/13/2021 - 10:54:26: Invalid CVAR pointer
  2.  
  3. L 09/13/2021 - 10:54:26: [AMXX] Run time error 10 (plugin "ze_hud_info.amxx") (native "get_pcvar_num") - debug not enabled!
  4.  
  5. L 09/13/2021 - 10:54:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Image

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

#22

Post by z0h1r-LK » 2 years ago

I'm sorry, I forgot update cvars, Fixed!

Cvars:
  1. ze_hud_info_nemesis_red 255     // Nemesis Information Red Color
  2. ze_hud_info_nemesis_green 0     // Nemesis Information Green Color
  3. ze_hud_info_nemesis_blue 0      // Nemesis Information Blue Color
ze_hud_info.sma
Source Code (only)
(11.89 KiB) Downloaded 234 times
ze_hud_info.sma
Source Code (only)
(11.89 KiB) Downloaded 234 times

User avatar
VicKy
Mod Tester
Mod Tester
Pakistan
Posts: 87
Joined: 3 years ago
Contact:

#23

Post by VicKy » 2 years ago

Worked I Also Forgot That Was Minor Errorr
Image

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

#24

Post by z0h1r-LK » 2 years ago

VicKy wrote: 2 years ago Worked I Also Forgot That Was Minor Errorr
I'm forgot register_cvar

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

#25

Post by z0h1r-LK » 2 years ago

SobekPogrywamy wrote: 3 years ago 02/09/2021 - 21:14:17: [ZE] Invalid Player (1)
L 02/09/2021 - 21:14:17: [AMXX] Displaying debug trace (plugin "ze_gamemode_nemesis.amxx", version "1.0")
L 02/09/2021 - 21:14:17: [AMXX] Run time error 10: native error (native "ze_set_user_nemesis")
L 02/09/2021 - 21:14:17: [AMXX] [0] ze_gamemode_nemesis.sma::ze_player_disconnect (line 104)
fixed

User avatar
VicKy
Mod Tester
Mod Tester
Pakistan
Posts: 87
Joined: 3 years ago
Contact:

#26

Post by VicKy » 2 years ago

Fix This
May Be Error In Hud
Image
Image

Code :-
  1. #include <zombie_escape>
  2. #include <ze_class_nemesis>
  3.  
  4. // Define some natives
  5. native ze_get_user_escapes(id)
  6. native ze_get_user_infects(id)
  7.  
  8. // Defines
  9. #define TASK_SHOWHUD 100
  10. #define ID_SHOWHUD (taskid - TASK_SHOWHUD)
  11.  
  12. // Constants Change X,Y If you need (HUD & DHud)
  13. const Float:HUD_SPECT_X = 0.01
  14. const Float:HUD_SPECT_Y = 0.130
  15. const Float:HUD_STATS_X = -1.0
  16. const Float:HUD_STATS_Y = 0.86
  17.  
  18. // Colors
  19. enum
  20. {
  21.     Red = 0,
  22.     Green,
  23.     Blue
  24. }
  25.  
  26. // Variables
  27. new g_iMsgSync,
  28.     g_pCvarRankEnabled
  29.    
  30. // Cvars
  31. new g_pCvarHudInfoMode,
  32.     g_pCvarHudInfoComma,
  33.     g_pCvarZombieInfoColors[3],
  34.     g_pCvarNemesisInfoColors[3],
  35.     g_pCvarHumanInfoColors[3],
  36.     g_pCvarSpecInfoColors[3]
  37.  
  38. public plugin_init()
  39. {
  40.     register_plugin("[ZE] Hud Information", ZE_VERSION, AUTHORS)
  41.    
  42.     // Messages
  43.     g_iMsgSync = CreateHudSyncObj()
  44.    
  45.     //Cvars
  46.     g_pCvarHudInfoMode = register_cvar("ze_hud_info_mode", "1")
  47.     g_pCvarHudInfoComma = register_cvar("ze_hud_info_commas", "1")
  48.     g_pCvarZombieInfoColors[Red] = register_cvar("ze_hud_info_zombie_red", "255")
  49.     g_pCvarZombieInfoColors[Green] = register_cvar("ze_hud_info_zombie_green", "20")
  50.     g_pCvarZombieInfoColors[Blue] = register_cvar("ze_hud_info_zombie_blue", "20")
  51.     g_pCvarNemesisInfoColors[Red] = register_cvar("ze_hud_info_nemesis_red", "255")
  52.     g_pCvarNemesisInfoColors[Green] = register_cvar("ze_hud_info_nemesis_green", "0")
  53.     g_pCvarNemesisInfoColors[Blue] = register_cvar("ze_hud_info_nemesis_blue", "0")
  54.     g_pCvarHumanInfoColors[Red] = register_cvar("ze_hud_info_human_red", "20")
  55.     g_pCvarHumanInfoColors[Green] = register_cvar("ze_hud_info_human_green", "20")
  56.     g_pCvarHumanInfoColors[Blue] = register_cvar("ze_hud_info_human_blue", "255")
  57.     g_pCvarSpecInfoColors[Red] = register_cvar("ze_hud_info_spec_red", "100")
  58.     g_pCvarSpecInfoColors[Green] = register_cvar("ze_hud_info_spec_green", "100")
  59.     g_pCvarSpecInfoColors[Blue] = register_cvar("ze_hud_info_spec_blue", "100")
  60.    
  61.     // Pointer
  62.     g_pCvarRankEnabled = get_cvar_pointer("ze_speed_rank_mode")
  63. }
  64.  
  65. public client_putinserver(id)
  66. {
  67.     if(!is_user_bot(id))
  68.     {
  69.         set_task(1.0, "ShowHUD", id+TASK_SHOWHUD, _, _, "b")
  70.     }
  71. }
  72.  
  73. public client_disconnected(id)
  74. {
  75.     remove_task(id+TASK_SHOWHUD)
  76. }
  77.  
  78. public ShowHUD(taskid)
  79. {
  80.     if (get_pcvar_num(g_pCvarHudInfoMode) == 0)
  81.         return
  82.    
  83.     new iPlayer = ID_SHOWHUD
  84.    
  85.     if (!is_user_alive(iPlayer))
  86.     {
  87.         iPlayer = get_entvar(iPlayer, var_iuser2)
  88.        
  89.         if (!is_user_alive(iPlayer))
  90.             return
  91.     }
  92.    
  93.     if(iPlayer != ID_SHOWHUD)
  94.     {
  95.         new szName[32]
  96.         get_user_name(iPlayer, szName, charsmax(szName))
  97.  
  98.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
  99.         {
  100.             set_hudmessage(get_pcvar_num(g_pCvarSpecInfoColors[Red]), get_pcvar_num(g_pCvarSpecInfoColors[Green]), get_pcvar_num(g_pCvarSpecInfoColors[Blue]), HUD_SPECT_X, HUD_SPECT_Y, 0, 1.2, 1.1, 0.5, 0.6, -1)
  101.            
  102.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  103.             {
  104.                 new szHealth[15]
  105.                 AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
  106.                
  107.                 if (ze_is_user_nemesis(iPlayer))
  108.                 {
  109.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  110.                 }
  111.                 else if (ze_is_user_zombie(iPlayer))
  112.                 {
  113.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  114.                 }
  115.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  116.                 {
  117.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  118.                 }
  119.                 else
  120.                 {
  121.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  122.                 }
  123.             }
  124.             else
  125.             {
  126.                 if (ze_is_user_nemesis(iPlayer))
  127.                 {
  128.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  129.                 }
  130.                 if (ze_is_user_zombie(iPlayer))
  131.                 {
  132.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  133.                 }
  134.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  135.                 {
  136.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_LEADER", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  137.                 }
  138.                 else
  139.                 {
  140.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  141.                 }
  142.             }
  143.         }
  144.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
  145.         {
  146.             set_dhudmessage(get_pcvar_num(g_pCvarSpecInfoColors[Red]), get_pcvar_num(g_pCvarSpecInfoColors[Green]), get_pcvar_num(g_pCvarSpecInfoColors[Blue]), HUD_SPECT_X, HUD_SPECT_Y, 0, 1.2, 1.1, 0.5, 0.6)
  147.            
  148.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  149.             {
  150.                 new szHealth[15]
  151.                 AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
  152.                
  153.                 if (ze_is_user_nemesis(iPlayer))
  154.                 {
  155.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  156.                 }
  157.                 if (ze_is_user_zombie(iPlayer))
  158.                 {
  159.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  160.                 }
  161.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  162.                 {
  163.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  164.                 }
  165.                 else
  166.                 {
  167.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  168.                 }
  169.             }
  170.             else
  171.             {
  172.                 if (ze_is_user_nemesis(iPlayer))
  173.                 {
  174.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  175.                 }
  176.                 if (ze_is_user_zombie(iPlayer))
  177.                 {
  178.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  179.                 }
  180.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  181.                 {
  182.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_LEADER", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  183.                 }
  184.                 else
  185.                 {
  186.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  187.                 }
  188.             }
  189.         }
  190.     }
  191.     else if (ze_is_user_nemesis(iPlayer))
  192.     {
  193.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
  194.         {
  195.             set_hudmessage(get_pcvar_num(g_pCvarNemesisInfoColors[Red]), get_pcvar_num(g_pCvarNemesisInfoColors[Green]), get_pcvar_num(g_pCvarNemesisInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6, -1)
  196.            
  197.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  198.             {
  199.                 new szHealth[15]
  200.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  201.  
  202.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  203.             }
  204.             else
  205.             {
  206.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "NEMESIS", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  207.             }
  208.         }
  209.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
  210.         {
  211.             set_dhudmessage(get_pcvar_num(g_pCvarNemesisInfoColors[Red]), get_pcvar_num(g_pCvarNemesisInfoColors[Green]), get_pcvar_num(g_pCvarNemesisInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6)
  212.            
  213.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  214.             {
  215.                 new szHealth[15]
  216.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  217.                
  218.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "NEMESIS_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  219.             }
  220.             else
  221.             {
  222.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "NEMESIS", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD) , ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer), ze_get_user_infects(iPlayer))
  223.             }
  224.         }
  225.     }
  226.     else if (ze_is_user_zombie(iPlayer))
  227.     {
  228.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
  229.         {
  230.             set_hudmessage(get_pcvar_num(g_pCvarZombieInfoColors[Red]), get_pcvar_num(g_pCvarZombieInfoColors[Green]), get_pcvar_num(g_pCvarZombieInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6, -1)
  231.            
  232.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  233.             {
  234.                 new szHealth[15]
  235.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  236.  
  237.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  238.             }
  239.             else
  240.             {
  241.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  242.             }
  243.         }
  244.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
  245.         {
  246.             set_dhudmessage(get_pcvar_num(g_pCvarZombieInfoColors[Red]), get_pcvar_num(g_pCvarZombieInfoColors[Green]), get_pcvar_num(g_pCvarZombieInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6)
  247.            
  248.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  249.             {
  250.                 new szHealth[15]
  251.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  252.                
  253.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  254.             }
  255.             else
  256.             {
  257.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))  
  258.             }
  259.         }
  260.     }
  261.     else
  262.     {
  263.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
  264.         {
  265.             set_hudmessage(get_pcvar_num(g_pCvarHumanInfoColors[Red]), get_pcvar_num(g_pCvarHumanInfoColors[Green]), get_pcvar_num(g_pCvarHumanInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6, -1)
  266.            
  267.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  268.             {
  269.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  270.                 {
  271.                     new szHealth[15]
  272.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  273.                
  274.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  275.                 }
  276.                 else
  277.                 {
  278.                     new szHealth[15]
  279.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  280.                
  281.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  282.                 }                  
  283.             }
  284.             else
  285.             {
  286.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  287.                 {
  288.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_LEADER", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  289.                 }
  290.                 else
  291.                 {
  292.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  293.                 }                  
  294.             }
  295.         }
  296.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
  297.         {
  298.             set_dhudmessage(get_pcvar_num(g_pCvarHumanInfoColors[Red]), get_pcvar_num(g_pCvarHumanInfoColors[Green]), get_pcvar_num(g_pCvarHumanInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6)
  299.            
  300.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  301.             {
  302.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  303.                 {
  304.                     new szHealth[15]
  305.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  306.                
  307.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  308.                 }
  309.                 else
  310.                 {
  311.                     new szHealth[15]
  312.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  313.                
  314.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  315.                 }
  316.             }
  317.             else
  318.             {
  319.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  320.                 {
  321.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_LEADER", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  322.                 }
  323.                 else
  324.                 {
  325.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD), ze_get_user_infects(ID_SHOWHUD))
  326.                 }
  327.             }
  328.         }
  329.     }
  330. }
Image

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

#27

Post by z0h1r-LK » 2 years ago


Thanks VicKy.
Fixed, And I'm updated Nemesis mode to 1.3

User avatar
VicKy
Mod Tester
Mod Tester
Pakistan
Posts: 87
Joined: 3 years ago
Contact:

#28

Post by VicKy » 2 years ago

Z0uha1r_LK wrote: 2 years ago
Thanks VicKy.
Fixed, And I'm updated Nemesis mode to 1.3
Np
Image

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

#29

Post by z0h1r-LK » 1 year ago

This plugin is not compitable with 1.7 or above

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 1 guest