Resolved Armor On Hud

Unpaid Requests, Public Plugins
Post Reply
VicKy
Member
Member
Pakistan
Posts: 24
Joined: 4 Weeks Ago
Has thanked: 4 times
Been thanked: 1 time
Contact:

Armor On Hud

#1

Post by VicKy » 3 Weeks Ago

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

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 2095
Joined: 3 Years Ago
Location: Egypt
Has thanked: 43 times
Been thanked: 129 times
Age: 23
Contact:

#2

Post by Raheem » 3 Weeks Ago

Code:
    1. #include <zombie_escape>
    2.  
    3. // Defines
    4. #define TASK_SHOWHUD 100
    5. #define ID_SHOWHUD (taskid - TASK_SHOWHUD)
    6.  
    7. // Constants Change X,Y If you need (HUD & DHud)
    8. const Float:HUD_SPECT_X = 0.01
    9. const Float:HUD_SPECT_Y = 0.130
    10. const Float:HUD_STATS_X = -1.0
    11. const Float:HUD_STATS_Y = 0.86
    12.  
    13. // Colors
    14. enum
    15. {
    16.     Red = 0,
    17.     Green,
    18.     Blue
    19. }
    20.  
    21. // Variables
    22. new g_iMsgSync,
    23.     g_pCvarRankEnabled
    24.    
    25. // Cvars
    26. new g_pCvarHudInfoMode,
    27.     g_pCvarHudInfoComma,
    28.     g_pCvarZombieInfoColors[3],
    29.     g_pCvarHumanInfoColors[3],
    30.     g_pCvarSpecInfoColors[3]
    31.  
    32. public plugin_init()
    33. {
    34.     register_plugin("[ZE] Hud Information", ZE_VERSION, AUTHORS)
    35.    
    36.     // Messages
    37.     g_iMsgSync = CreateHudSyncObj()
    38.    
    39.     //Cvars
    40.     g_pCvarHudInfoMode = register_cvar("ze_hud_info_mode", "1")
    41.     g_pCvarHudInfoComma = register_cvar("ze_hud_info_commas", "1")
    42.     g_pCvarZombieInfoColors[Red] = register_cvar("ze_hud_info_zombie_red", "255")
    43.     g_pCvarZombieInfoColors[Green] = register_cvar("ze_hud_info_zombie_green", "20")
    44.     g_pCvarZombieInfoColors[Blue] = register_cvar("ze_hud_info_zombie_blue", "20")
    45.     g_pCvarHumanInfoColors[Red] = register_cvar("ze_hud_info_human_red", "20")
    46.     g_pCvarHumanInfoColors[Green] = register_cvar("ze_hud_info_human_green", "20")
    47.     g_pCvarHumanInfoColors[Blue] = register_cvar("ze_hud_info_human_blue", "255")
    48.     g_pCvarSpecInfoColors[Red] = register_cvar("ze_hud_info_spec_red", "100")
    49.     g_pCvarSpecInfoColors[Green] = register_cvar("ze_hud_info_spec_green", "100")
    50.     g_pCvarSpecInfoColors[Blue] = register_cvar("ze_hud_info_spec_blue", "100")
    51.    
    52.     // Pointer
    53.     g_pCvarRankEnabled = get_cvar_pointer("ze_speed_rank_mode")
    54. }
    55.  
    56. public client_putinserver(id)
    57. {
    58.     if(!is_user_bot(id))
    59.     {
    60.         set_task(1.0, "ShowHUD", id+TASK_SHOWHUD, _, _, "b")
    61.     }
    62. }
    63.  
    64. public client_disconnected(id)
    65. {
    66.     remove_task(id+TASK_SHOWHUD)
    67. }
    68.  
    69. public ShowHUD(taskid)
    70. {
    71.     if (get_pcvar_num(g_pCvarHudInfoMode) == 0)
    72.         return
    73.    
    74.     new iPlayer = ID_SHOWHUD
    75.    
    76.     if (!is_user_alive(iPlayer))
    77.     {
    78.         iPlayer = get_entvar(iPlayer, var_iuser2)
    79.        
    80.         if (!is_user_alive(iPlayer))
    81.             return
    82.     }
    83.    
    84.     if(iPlayer != ID_SHOWHUD)
    85.     {
    86.         new szName[32]
    87.         get_user_name(iPlayer, szName, charsmax(szName))
    88.  
    89.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
    90.         {
    91.             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)
    92.            
    93.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    94.             {
    95.                 new szHealth[15]
    96.                 AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
    97.                
    98.                 if (ze_is_user_zombie(iPlayer))
    99.                 {
    100.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer))
    101.                 }
    102.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    103.                 {
    104.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer))
    105.                 }
    106.                 else
    107.                 {
    108.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer))
    109.                 }
    110.             }
    111.             else
    112.             {
    113.                 if (ze_is_user_zombie(iPlayer))
    114.                 {
    115.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
    116.                 }
    117.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    118.                 {
    119.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_LEADER", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
    120.                 }
    121.                 else
    122.                 {
    123.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
    124.                 }
    125.             }
    126.         }
    127.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
    128.         {
    129.             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)
    130.            
    131.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    132.             {
    133.                 new szHealth[15]
    134.                 AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
    135.                
    136.                 if (ze_is_user_zombie(iPlayer))
    137.                 {
    138.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer))
    139.                 }
    140.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    141.                 {
    142.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer))
    143.                 }
    144.                 else
    145.                 {
    146.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer))
    147.                 }
    148.             }
    149.             else
    150.             {
    151.                 if (ze_is_user_zombie(iPlayer))
    152.                 {
    153.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
    154.                 }
    155.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    156.                 {
    157.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_LEADER", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
    158.                 }
    159.                 else
    160.                 {
    161.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
    162.                 }
    163.             }
    164.         }
    165.     }
    166.     else if (ze_is_user_zombie(iPlayer))
    167.     {
    168.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
    169.         {
    170.             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)
    171.            
    172.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    173.             {
    174.                 new szHealth[15]
    175.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    176.  
    177.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    178.             }
    179.             else
    180.             {
    181.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    182.             }
    183.         }
    184.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
    185.         {
    186.             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)
    187.            
    188.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    189.             {
    190.                 new szHealth[15]
    191.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    192.                
    193.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    194.             }
    195.             else
    196.             {
    197.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    198.             }
    199.         }
    200.     }
    201.     else
    202.     {
    203.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
    204.         {
    205.             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)
    206.            
    207.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    208.             {
    209.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    210.                 {
    211.                     new szHealth[15]
    212.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    213.                
    214.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    215.                 }
    216.                 else
    217.                 {
    218.                     new szHealth[15]
    219.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    220.                
    221.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    222.                 }                  
    223.             }
    224.             else
    225.             {
    226.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    227.                 {
    228.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_LEADER", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    229.                 }
    230.                 else
    231.                 {
    232.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    233.                 }                  
    234.             }
    235.         }
    236.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
    237.         {
    238.             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)
    239.            
    240.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    241.             {
    242.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    243.                 {
    244.                     new szHealth[15]
    245.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    246.                
    247.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    248.                 }
    249.                 else
    250.                 {
    251.                     new szHealth[15]
    252.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    253.                
    254.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    255.                 }
    256.             }
    257.             else
    258.             {
    259.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    260.                 {
    261.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_LEADER", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    262.                 }
    263.                 else
    264.                 {
    265.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), get_user_armor(ID_SHOWHUD))
    266.                 }
    267.             }
    268.         }
    269.     }
    270. }
And in zombie_escape.txt change those:
    1. ZOMBIE = HP: %i | Class: Zombie | Escape Coins: %i
    2. ZOMBIE_COMMAS = HP: %s | Class: Zombie | Escape Coins: %i
    3.  
    4. HUMAN_LEADER = HP: %i | Class: Escape Leader | Escape Coins: %i
    5. HUMAN_LEADER_COMMAS = HP: %s | Class: Escape Leader | Escape Coins: %i
    6.  
    7. HUMAN = HP: %i | Class: Human | Escape Coins: %i
    8. HUMAN_COMMAS = HP: %s | Class: Human | Escape Coins: %i
TO:
    1. ZOMBIE = HP: %i | Class: Zombie | Escape Coins: %i | Armor: %i
    2. ZOMBIE_COMMAS = HP: %s | Class: Zombie | Escape Coins: %i | Armor: %i
    3.  
    4. HUMAN_LEADER = HP: %i | Class: Escape Leader | Escape Coins: %i | Armor: %i
    5. HUMAN_LEADER_COMMAS = HP: %s | Class: Escape Leader | Escape Coins: %i | Armor: %i
    6.  
    7. HUMAN = HP: %i | Class: Human | Escape Coins: %i | Armor: %i
    8. HUMAN_COMMAS = HP: %s | Class: Human | Escape Coins: %i | Armor: %i
These users thanked the author Raheem for the post:
VicKy (3 Weeks Ago)

VicKy
Member
Member
Pakistan
Posts: 24
Joined: 4 Weeks Ago
Has thanked: 4 times
Been thanked: 1 time
Contact:

#3

Post by VicKy » 3 Weeks Ago

Where is zombie_escape.txt ?
i cant Found /cstrike/addons/amxmodx/configs
Image

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 677
Joined: 3 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 12 times
Age: 23
Contact:

#4

Post by johnnysins2000 » 3 Weeks Ago

VicKy wrote:
3 Weeks Ago
Where is zombie_escape.txt ?
i cant Found /cstrike/addons/amxmodx/configs
It's in lang folder

Go to addons/amxmodx/lang

[ Post made via Android ]
These users thanked the author johnnysins2000 for the post:
VicKy (3 Weeks Ago)
Nobody Is That Busy If They Make Time :roll:

VicKy
Member
Member
Pakistan
Posts: 24
Joined: 4 Weeks Ago
Has thanked: 4 times
Been thanked: 1 time
Contact:

#5

Post by VicKy » 3 Weeks Ago

Thanks ☺️


Am Noob Sorry

[ Post made via Android ]
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests