Approved Gamemode: Nemesis mode (1.3)

Gameplay Addons
VicKy
Mod Tester
Mod Tester
Pakistan
Posts: 77
Joined: 10 Months Ago
Has thanked: 12 times
Been thanked: 9 times
Age: 19
Contact:

Re: [Game Mode] Nemesis Round (v1.2)

#21

Post by VicKy » 6 Days 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
Image

User avatar
Z0uha1r_LK
Mapper
Mapper
Morocco
Posts: 288
Joined: 2 Years Ago
Location: Morocco
Has thanked: 59 times
Been thanked: 32 times
Age: 19
Contact:

#22

Post by Z0uha1r_LK » 6 Days 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 13 times
ze_hud_info.sma
Source Code (only)
(11.89 KiB) Downloaded 13 times
Z0uha1r_LK

VicKy
Mod Tester
Mod Tester
Pakistan
Posts: 77
Joined: 10 Months Ago
Has thanked: 12 times
Been thanked: 9 times
Age: 19
Contact:

#23

Post by VicKy » 5 Days Ago

Worked I Also Forgot That Was Minor Errorr
Image
Image

User avatar
Z0uha1r_LK
Mapper
Mapper
Morocco
Posts: 288
Joined: 2 Years Ago
Location: Morocco
Has thanked: 59 times
Been thanked: 32 times
Age: 19
Contact:

#24

Post by Z0uha1r_LK » 3 Days Ago

VicKy wrote:
5 Days Ago
Worked I Also Forgot That Was Minor Errorr
I'm forgot register_cvar
Z0uha1r_LK

User avatar
Z0uha1r_LK
Mapper
Mapper
Morocco
Posts: 288
Joined: 2 Years Ago
Location: Morocco
Has thanked: 59 times
Been thanked: 32 times
Age: 19
Contact:

#25

Post by Z0uha1r_LK » 3 Days Ago

SobekPogrywamy wrote:
7 Months 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
These users thanked the author Z0uha1r_LK for the post:
SobekPogrywamy (3 Days Ago)
Z0uha1r_LK

VicKy
Mod Tester
Mod Tester
Pakistan
Posts: 77
Joined: 10 Months Ago
Has thanked: 12 times
Been thanked: 9 times
Age: 19
Contact:

#26

Post by VicKy » 2 Days 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. }
These users thanked the author VicKy for the post:
Z0uha1r_LK (2 Days Ago)
Image
Image

User avatar
Z0uha1r_LK
Mapper
Mapper
Morocco
Posts: 288
Joined: 2 Years Ago
Location: Morocco
Has thanked: 59 times
Been thanked: 32 times
Age: 19
Contact:

#27

Post by Z0uha1r_LK » 2 Days Ago


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

VicKy
Mod Tester
Mod Tester
Pakistan
Posts: 77
Joined: 10 Months Ago
Has thanked: 12 times
Been thanked: 9 times
Age: 19
Contact:

#28

Post by VicKy » 2 Days Ago

Z0uha1r_LK wrote:
2 Days Ago

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

[ Post made via Android ]
Image
Image

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests