Approved Escapes (MySQL)

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


User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

Escapes (MySQL)

#1

Post by Night Fury » 5 years ago

| Description:
  • This plugin is going to be like escapes counter for humans only.

| Cvars:
  • Code: Select all

    ze_escapes_host // Host to connect to
    ze_escapes_user // User to login with
    ze_escapes_pass // Password
    ze_escapes_dbname // Database

| Code:
    1. #include <zombie_escape>
    2.  
    3. // Static (Change it if you need)
    4. new const g_szLogFile[] = "Human_Escapes.log" // MySQL Errors log file
    5.  
    6. // MySQL Table
    7. new const g_szTable[] =
    8. "ALTER TABLE `zombie_escape` ADD IF NOT EXISTS `Escapes` INT(10) NOT NULL DEFAULT '0';"
    9.  
    10. // Variables
    11. new g_iEscapes[33],
    12.     Handle:g_hTuple
    13.  
    14. // Cvars
    15. new g_pCvarDBInfo[4]
    16.  
    17. // Database
    18. enum
    19. {
    20.     Host = 0,
    21.     User,
    22.     Pass,
    23.     DB
    24. }
    25.  
    26. // Natives
    27. public plugin_natives()
    28. {
    29.     register_native("ze_get_user_escapes", "native_ze_get_user_escapes", 1)
    30.     register_native("ze_set_user_escapes", "native_ze_set_user_escapes", 1)
    31. }
    32.  
    33. public plugin_init()
    34. {
    35.     register_plugin("[ZE] Addons: Escapes (MySQL)", "1.1", "Jack GamePlay")
    36.    
    37.     // Cvars
    38.     g_pCvarDBInfo[Host] = register_cvar("ze_escapes_host", "localhost")
    39.     g_pCvarDBInfo[User] = register_cvar("ze_escapes_user", "user")
    40.     g_pCvarDBInfo[Pass] = register_cvar("ze_escapes_pass", "pass")
    41.     g_pCvarDBInfo[DB] = register_cvar("ze_escapes_dbname", "dbname")
    42.  
    43.     // Initialize MySQL - Delay 0.1 second required so we make sure that our zombie_escape.cfg already executed and cvars values loaded from it
    44.     set_task(0.1, "Delay_MySQL_Init")
    45. }
    46.  
    47. public Delay_MySQL_Init()
    48. {
    49.     MySQL_Init()
    50. }
    51.  
    52. public MySQL_Init()
    53. {
    54.     new szHost[64], szUser[32], szPass[32], szDB[128]
    55.    
    56.     get_pcvar_string(g_pCvarDBInfo[Host], szHost, charsmax(szHost))
    57.     get_pcvar_string(g_pCvarDBInfo[User], szUser, charsmax(szUser))
    58.     get_pcvar_string(g_pCvarDBInfo[Pass], szPass, charsmax(szPass))
    59.     get_pcvar_string(g_pCvarDBInfo[DB], szDB, charsmax(szDB))
    60.    
    61.     g_hTuple = SQL_MakeDbTuple(szHost, szUser, szPass, szDB)
    62.    
    63.     // Let's ensure that the g_hTuple will be valid, we will access the database to make sure
    64.     new iErrorCode, szError[512], Handle:hSQLConnection
    65.    
    66.     hSQLConnection = SQL_Connect(g_hTuple, iErrorCode, szError, charsmax(szError))
    67.    
    68.     if(hSQLConnection != Empty_Handle)
    69.     {
    70.         log_amx("[MySQL][ESCAPES] Successfully connected to host: %s (ALL IS OK).", szHost)
    71.         SQL_FreeHandle(hSQLConnection)
    72.     }
    73.     else
    74.     {
    75.         // Disable plugin, and display the error
    76.         set_fail_state("[ESCAPES] Failed to connect to MySQL database: %s", szError)
    77.     }
    78.    
    79.     // Create our table
    80.     SQL_ThreadQuery(g_hTuple, "QueryCreateTable", g_szTable)
    81. }
    82.  
    83. public QueryCreateTable(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
    84. {
    85.     SQL_IsFail(iFailState, iError, szError, g_szLogFile)
    86. }
    87.  
    88. public client_putinserver(id)
    89. {
    90.     if (is_user_bot(id) || is_user_hltv(id))
    91.         return
    92.    
    93.     // Just 1 second delay
    94.     set_task(1.0, "DelayLoad", id)
    95. }
    96.  
    97. public DelayLoad(id)
    98. {
    99.     LoadEscapes(id)
    100. }
    101.  
    102. public plugin_end()
    103. {
    104.     if (g_hTuple != Empty_Handle)
    105.     {
    106.         SQL_FreeHandle(g_hTuple)
    107.     }
    108. }
    109.  
    110. public ze_roundend(WinTeam)
    111. {
    112.     if (WinTeam == ZE_TEAM_HUMAN)
    113.     {
    114.         for (new id = 0; id <= get_member_game(m_nMaxPlayers); id++)
    115.         {
    116.             if (!is_user_alive(id) || ze_is_user_zombie(id))
    117.                 continue
    118.  
    119.             g_iEscapes[id] ++
    120.             SaveEscapes(id)
    121.         }
    122.     }
    123. }
    124.  
    125. LoadEscapes(id)
    126. {
    127.     new szAuthID[35], szQuery[128], szData[5]
    128.     get_user_authid(id, szAuthID, charsmax(szAuthID))
    129.     formatex(szQuery, charsmax(szQuery), "SELECT `Escapes` FROM `zombie_escape` WHERE ( `SteamID` = '%s' );", szAuthID)
    130.     num_to_str(id, szData, charsmax(szData))
    131.     SQL_ThreadQuery(g_hTuple, "QuerySelectData", szQuery, szData, charsmax(szData))
    132. }
    133.  
    134. public QuerySelectData(iFailState, Handle:hQuery, szError[], iError, szData[])
    135. {
    136.     if (SQL_IsFail(iFailState, iError, szError, g_szLogFile))
    137.         return
    138.    
    139.     new id = str_to_num(szData)
    140.    
    141.     // No results for this query means that player not saved before
    142.     if (!SQL_NumResults(hQuery))
    143.     {
    144.         // This is new player
    145.         g_iEscapes[id] = 0
    146.         return
    147.     }
    148.    
    149.     g_iEscapes[id] = SQL_ReadResult(hQuery, SQL_FieldNameToNum(hQuery, "Escapes"))
    150. }
    151.  
    152. SaveEscapes(id)
    153. {
    154.     new szAuthID[36], szQuery[128]
    155.     get_user_authid(id, szAuthID, charsmax(szAuthID))
    156.     formatex(szQuery, charsmax(szQuery), "UPDATE `zombie_escape` SET `Escapes` = '%d' WHERE `SteamID` = '%s';", g_iEscapes[id], szAuthID)
    157.     SQL_ThreadQuery(g_hTuple, "QueryUpdateData", szQuery)
    158. }
    159.  
    160. public QueryInsertData(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
    161. {
    162.     SQL_IsFail(iFailState, iError, szError, g_szLogFile)
    163. }
    164.  
    165. public QueryUpdateData(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
    166. {
    167.     SQL_IsFail(iFailState, iError, szError, g_szLogFile)
    168. }
    169.  
    170. // Natives
    171. public native_ze_get_user_escapes(id)
    172. {
    173.     if (!is_user_connected(id))
    174.     {
    175.         log_error(AMX_ERR_NATIVE, "[ZE] Invalid Player id (%d)", id)
    176.         return false
    177.     }
    178.    
    179.     return g_iEscapes[id]
    180. }
    181.  
    182. public native_ze_set_user_escapes(id, iAmount)
    183. {
    184.     if (!is_user_connected(id))
    185.     {
    186.         log_error(AMX_ERR_NATIVE, "[ZE] Invalid Player id (%d)", id)
    187.         return false
    188.     }
    189.    
    190.     g_iEscapes[id] = iAmount
    191.     SaveEscapes(id)
    192.     return true
    193. }
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#2

Post by Night Fury » 4 years ago

Updated:
  • Updated plugin so all MySQL information will not be stored in several, instead will be stored in 1 column created by Escape Coins
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

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

#3

Post by z0h1r-LK » 3 years ago

Add nVault

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

#4

Post by Raheem » 3 years ago

nVault is bad :confused: and cause lot of issues like resetting many times. Once we switched all things to MySQL everything is OK :ok_hand: .
He who fails to plan is planning to fail

BandiT
Member
Member
Romania
Posts: 59
Joined: 4 years ago
Contact:

#5

Post by BandiT » 3 years ago

Cand you add nvault anyway ?

BandiT
Member
Member
Romania
Posts: 59
Joined: 4 years ago
Contact:

#6

Post by BandiT » 3 years ago

Sorry for double post cand you add nvault on this @raheem pleasee ?

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

#7

Post by Raheem » 3 years ago

BandiT wrote: 3 years ago Sorry for double post cand you add nvault on this @raheem pleasee ?
I don't recommend you to use nVault. SQL is better and easier to deal with and have no resetting issues.

Added nVault support:

  1. #include <zombie_escape>
  2.  
  3. new const g_szVaultName[] = "HumanEscapes"
  4.  
  5. // Static (Change it if you need)
  6. new const g_szLogFile[] = "Human_Escapes.log" // MySQL Errors log file
  7.  
  8. // MySQL Table
  9. new const g_szTable[] =
  10. "ALTER TABLE `zombie_escape` ADD IF NOT EXISTS `Escapes` INT(10) NOT NULL DEFAULT '0';"
  11.  
  12. // Variables
  13. new g_iEscapes[33],
  14.     Handle:g_hTuple,
  15.     g_iVaultHandle
  16.  
  17. // Cvars
  18. new g_pCvarDBInfo[4], g_pCvarSaveType
  19.  
  20. // Database
  21. enum
  22. {
  23.     Host = 0,
  24.     User,
  25.     Pass,
  26.     DB
  27. }
  28.  
  29. // Natives
  30. public plugin_natives()
  31. {
  32.     register_native("ze_get_user_escapes", "native_ze_get_user_escapes", 1)
  33.     register_native("ze_set_user_escapes", "native_ze_set_user_escapes", 1)
  34. }
  35.  
  36. public plugin_init()
  37. {
  38.     register_plugin("[ZE] Addons: Escapes (MySQL)", "1.1", "Jack GamePlay")
  39.    
  40.     // Cvars
  41.     g_pCvarSaveType = register_cvar("ze_escapes_save_type", "1") // 0 =  nVault || 1 = MySQL
  42.     g_pCvarDBInfo[Host] = register_cvar("ze_escapes_host", "localhost")
  43.     g_pCvarDBInfo[User] = register_cvar("ze_escapes_user", "user")
  44.     g_pCvarDBInfo[Pass] = register_cvar("ze_escapes_pass", "pass")
  45.     g_pCvarDBInfo[DB] = register_cvar("ze_escapes_dbname", "dbname")
  46.  
  47.     // Initialize MySQL - Delay 0.1 second required so we make sure that our zombie_escape.cfg already executed and cvars values loaded from it
  48.     set_task(0.1, "Delay_MySQL_Init")
  49. }
  50.  
  51. public Delay_MySQL_Init()
  52. {
  53.     MySQL_Init()
  54. }
  55.  
  56. public MySQL_Init()
  57. {
  58.     if (!get_pcvar_num(g_pCvarSaveType))
  59.         return
  60.    
  61.     new szHost[64], szUser[32], szPass[32], szDB[128]
  62.    
  63.     get_pcvar_string(g_pCvarDBInfo[Host], szHost, charsmax(szHost))
  64.     get_pcvar_string(g_pCvarDBInfo[User], szUser, charsmax(szUser))
  65.     get_pcvar_string(g_pCvarDBInfo[Pass], szPass, charsmax(szPass))
  66.     get_pcvar_string(g_pCvarDBInfo[DB], szDB, charsmax(szDB))
  67.    
  68.     g_hTuple = SQL_MakeDbTuple(szHost, szUser, szPass, szDB)
  69.    
  70.     // Let's ensure that the g_hTuple will be valid, we will access the database to make sure
  71.     new iErrorCode, szError[512], Handle:hSQLConnection
  72.    
  73.     hSQLConnection = SQL_Connect(g_hTuple, iErrorCode, szError, charsmax(szError))
  74.    
  75.     if(hSQLConnection != Empty_Handle)
  76.     {
  77.         log_amx("[MySQL][ESCAPES] Successfully connected to host: %s (ALL IS OK).", szHost)
  78.         SQL_FreeHandle(hSQLConnection)
  79.     }
  80.     else
  81.     {
  82.         // Disable plugin, and display the error
  83.         set_fail_state("[ESCAPES] Failed to connect to MySQL database: %s", szError)
  84.     }
  85.    
  86.     // Create our table
  87.     SQL_ThreadQuery(g_hTuple, "QueryCreateTable", g_szTable)
  88. }
  89.  
  90. public QueryCreateTable(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
  91. {
  92.     SQL_IsFail(iFailState, iError, szError, g_szLogFile)
  93. }
  94.  
  95. public client_putinserver(id)
  96. {
  97.     if (is_user_bot(id) || is_user_hltv(id))
  98.         return
  99.    
  100.     // Just 1 second delay
  101.     set_task(1.0, "DelayLoad", id)
  102. }
  103.  
  104. public DelayLoad(id)
  105. {
  106.     LoadEscapes(id)
  107. }
  108.  
  109. public plugin_end()
  110. {
  111.     if (!get_pcvar_num(g_pCvarSaveType))
  112.         return
  113.    
  114.     if (g_hTuple != Empty_Handle)
  115.     {
  116.         SQL_FreeHandle(g_hTuple)
  117.     }
  118. }
  119.  
  120. public ze_roundend(WinTeam)
  121. {
  122.     if (WinTeam == ZE_TEAM_HUMAN)
  123.     {
  124.         for (new id = 0; id <= get_member_game(m_nMaxPlayers); id++)
  125.         {
  126.             if (!is_user_alive(id) || ze_is_user_zombie(id))
  127.                 continue
  128.  
  129.             g_iEscapes[id] ++
  130.             SaveEscapes(id)
  131.         }
  132.     }
  133. }
  134.  
  135. LoadEscapes(id)
  136. {
  137.     new szAuthID[35]
  138.     get_user_authid(id, szAuthID, charsmax(szAuthID))
  139.    
  140.     if (!get_pcvar_num(g_pCvarSaveType))
  141.     {
  142.         // Open the Vault
  143.         g_iVaultHandle = nvault_open(g_szVaultName)
  144.        
  145.         // Get escapes
  146.         new szEscapes[16], iExists, iTimestamp;
  147.         iExists = nvault_lookup(g_iVaultHandle, szAuthID, szEscapes, charsmax(szEscapes), iTimestamp);
  148.        
  149.         // Close Vault
  150.         nvault_close(g_iVaultHandle)
  151.        
  152.         if (!iExists)
  153.         {
  154.             SaveEscapes(id)
  155.         }
  156.         else
  157.         {
  158.             g_iEscapes[id] = str_to_num(szEscapes)
  159.         }
  160.     }
  161.     else
  162.     {
  163.         new szQuery[128], szData[5]
  164.  
  165.         formatex(szQuery, charsmax(szQuery), "SELECT `Escapes` FROM `zombie_escape` WHERE ( `SteamID` = '%s' );", szAuthID)
  166.         num_to_str(id, szData, charsmax(szData))
  167.         SQL_ThreadQuery(g_hTuple, "QuerySelectData", szQuery, szData, charsmax(szData))
  168.     }
  169. }
  170.  
  171. public QuerySelectData(iFailState, Handle:hQuery, szError[], iError, szData[])
  172. {
  173.     if (SQL_IsFail(iFailState, iError, szError, g_szLogFile))
  174.         return
  175.    
  176.     new id = str_to_num(szData)
  177.    
  178.     // No results for this query means that player not saved before
  179.     if (!SQL_NumResults(hQuery))
  180.     {
  181.         // This is new player
  182.         g_iEscapes[id] = 0
  183.         return
  184.     }
  185.    
  186.     g_iEscapes[id] = SQL_ReadResult(hQuery, SQL_FieldNameToNum(hQuery, "Escapes"))
  187. }
  188.  
  189. SaveEscapes(id)
  190. {
  191.     new szAuthID[35]
  192.     get_user_authid(id, szAuthID, charsmax(szAuthID))
  193.    
  194.     new szData[16]
  195.     num_to_str(g_iEscapes[id], szData, charsmax(szData))
  196.    
  197.     if (!get_pcvar_num(g_pCvarSaveType))
  198.     {
  199.         // Open the Vault
  200.         g_iVaultHandle = nvault_open(g_szVaultName)
  201.  
  202.         // Save His SteamID, Escape Coins
  203.         nvault_set(g_iVaultHandle, szAuthID, szData)
  204.        
  205.         // Close Vault
  206.         nvault_close(g_iVaultHandle)
  207.     }
  208.     else
  209.     {
  210.         new szQuery[128]
  211.        
  212.         formatex(szQuery, charsmax(szQuery), "UPDATE `zombie_escape` SET `Escapes` = '%d' WHERE `SteamID` = '%s';", g_iEscapes[id], szAuthID)
  213.         SQL_ThreadQuery(g_hTuple, "QueryUpdateData", szQuery)
  214.     }
  215. }
  216.  
  217. public QueryInsertData(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
  218. {
  219.     SQL_IsFail(iFailState, iError, szError, g_szLogFile)
  220. }
  221.  
  222. public QueryUpdateData(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
  223. {
  224.     SQL_IsFail(iFailState, iError, szError, g_szLogFile)
  225. }
  226.  
  227. // Natives
  228. public native_ze_get_user_escapes(id)
  229. {
  230.     if (!is_user_connected(id))
  231.     {
  232.         log_error(AMX_ERR_NATIVE, "[ZE] Invalid Player id (%d)", id)
  233.         return false
  234.     }
  235.    
  236.     return g_iEscapes[id]
  237. }
  238.  
  239. public native_ze_set_user_escapes(id, iAmount)
  240. {
  241.     if (!is_user_connected(id))
  242.     {
  243.         log_error(AMX_ERR_NATIVE, "[ZE] Invalid Player id (%d)", id)
  244.         return false
  245.     }
  246.    
  247.     g_iEscapes[id] = iAmount
  248.     SaveEscapes(id)
  249.     return true
  250. }
He who fails to plan is planning to fail

BandiT
Member
Member
Romania
Posts: 59
Joined: 4 years ago
Contact:

#8

Post by BandiT » 3 years ago

Raheem wrote: 3 years ago
BandiT wrote: 3 years ago Sorry for double post cand you add nvault on this @raheem pleasee ?
I don't recommend you to use nVault. SQL is better and easier to deal with and have no resetting issues.

Added nVault support:

  1. #include <zombie_escape>
  2.  
  3. new const g_szVaultName[] = "HumanEscapes"
  4.  
  5. // Static (Change it if you need)
  6. new const g_szLogFile[] = "Human_Escapes.log" // MySQL Errors log file
  7.  
  8. // MySQL Table
  9. new const g_szTable[] =
  10. "ALTER TABLE `zombie_escape` ADD IF NOT EXISTS `Escapes` INT(10) NOT NULL DEFAULT '0';"
  11.  
  12. // Variables
  13. new g_iEscapes[33],
  14.     Handle:g_hTuple,
  15.     g_iVaultHandle
  16.  
  17. // Cvars
  18. new g_pCvarDBInfo[4], g_pCvarSaveType
  19.  
  20. // Database
  21. enum
  22. {
  23.     Host = 0,
  24.     User,
  25.     Pass,
  26.     DB
  27. }
  28.  
  29. // Natives
  30. public plugin_natives()
  31. {
  32.     register_native("ze_get_user_escapes", "native_ze_get_user_escapes", 1)
  33.     register_native("ze_set_user_escapes", "native_ze_set_user_escapes", 1)
  34. }
  35.  
  36. public plugin_init()
  37. {
  38.     register_plugin("[ZE] Addons: Escapes (MySQL)", "1.1", "Jack GamePlay")
  39.    
  40.     // Cvars
  41.     g_pCvarSaveType = register_cvar("ze_escapes_save_type", "1") // 0 =  nVault || 1 = MySQL
  42.     g_pCvarDBInfo[Host] = register_cvar("ze_escapes_host", "localhost")
  43.     g_pCvarDBInfo[User] = register_cvar("ze_escapes_user", "user")
  44.     g_pCvarDBInfo[Pass] = register_cvar("ze_escapes_pass", "pass")
  45.     g_pCvarDBInfo[DB] = register_cvar("ze_escapes_dbname", "dbname")
  46.  
  47.     // Initialize MySQL - Delay 0.1 second required so we make sure that our zombie_escape.cfg already executed and cvars values loaded from it
  48.     set_task(0.1, "Delay_MySQL_Init")
  49. }
  50.  
  51. public Delay_MySQL_Init()
  52. {
  53.     MySQL_Init()
  54. }
  55.  
  56. public MySQL_Init()
  57. {
  58.     if (!get_pcvar_num(g_pCvarSaveType))
  59.         return
  60.    
  61.     new szHost[64], szUser[32], szPass[32], szDB[128]
  62.    
  63.     get_pcvar_string(g_pCvarDBInfo[Host], szHost, charsmax(szHost))
  64.     get_pcvar_string(g_pCvarDBInfo[User], szUser, charsmax(szUser))
  65.     get_pcvar_string(g_pCvarDBInfo[Pass], szPass, charsmax(szPass))
  66.     get_pcvar_string(g_pCvarDBInfo[DB], szDB, charsmax(szDB))
  67.    
  68.     g_hTuple = SQL_MakeDbTuple(szHost, szUser, szPass, szDB)
  69.    
  70.     // Let's ensure that the g_hTuple will be valid, we will access the database to make sure
  71.     new iErrorCode, szError[512], Handle:hSQLConnection
  72.    
  73.     hSQLConnection = SQL_Connect(g_hTuple, iErrorCode, szError, charsmax(szError))
  74.    
  75.     if(hSQLConnection != Empty_Handle)
  76.     {
  77.         log_amx("[MySQL][ESCAPES] Successfully connected to host: %s (ALL IS OK).", szHost)
  78.         SQL_FreeHandle(hSQLConnection)
  79.     }
  80.     else
  81.     {
  82.         // Disable plugin, and display the error
  83.         set_fail_state("[ESCAPES] Failed to connect to MySQL database: %s", szError)
  84.     }
  85.    
  86.     // Create our table
  87.     SQL_ThreadQuery(g_hTuple, "QueryCreateTable", g_szTable)
  88. }
  89.  
  90. public QueryCreateTable(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
  91. {
  92.     SQL_IsFail(iFailState, iError, szError, g_szLogFile)
  93. }
  94.  
  95. public client_putinserver(id)
  96. {
  97.     if (is_user_bot(id) || is_user_hltv(id))
  98.         return
  99.    
  100.     // Just 1 second delay
  101.     set_task(1.0, "DelayLoad", id)
  102. }
  103.  
  104. public DelayLoad(id)
  105. {
  106.     LoadEscapes(id)
  107. }
  108.  
  109. public plugin_end()
  110. {
  111.     if (!get_pcvar_num(g_pCvarSaveType))
  112.         return
  113.    
  114.     if (g_hTuple != Empty_Handle)
  115.     {
  116.         SQL_FreeHandle(g_hTuple)
  117.     }
  118. }
  119.  
  120. public ze_roundend(WinTeam)
  121. {
  122.     if (WinTeam == ZE_TEAM_HUMAN)
  123.     {
  124.         for (new id = 0; id <= get_member_game(m_nMaxPlayers); id++)
  125.         {
  126.             if (!is_user_alive(id) || ze_is_user_zombie(id))
  127.                 continue
  128.  
  129.             g_iEscapes[id] ++
  130.             SaveEscapes(id)
  131.         }
  132.     }
  133. }
  134.  
  135. LoadEscapes(id)
  136. {
  137.     new szAuthID[35]
  138.     get_user_authid(id, szAuthID, charsmax(szAuthID))
  139.    
  140.     if (!get_pcvar_num(g_pCvarSaveType))
  141.     {
  142.         // Open the Vault
  143.         g_iVaultHandle = nvault_open(g_szVaultName)
  144.        
  145.         // Get escapes
  146.         new szEscapes[16], iExists, iTimestamp;
  147.         iExists = nvault_lookup(g_iVaultHandle, szAuthID, szEscapes, charsmax(szEscapes), iTimestamp);
  148.        
  149.         // Close Vault
  150.         nvault_close(g_iVaultHandle)
  151.        
  152.         if (!iExists)
  153.         {
  154.             SaveEscapes(id)
  155.         }
  156.         else
  157.         {
  158.             g_iEscapes[id] = str_to_num(szEscapes)
  159.         }
  160.     }
  161.     else
  162.     {
  163.         new szQuery[128], szData[5]
  164.  
  165.         formatex(szQuery, charsmax(szQuery), "SELECT `Escapes` FROM `zombie_escape` WHERE ( `SteamID` = '%s' );", szAuthID)
  166.         num_to_str(id, szData, charsmax(szData))
  167.         SQL_ThreadQuery(g_hTuple, "QuerySelectData", szQuery, szData, charsmax(szData))
  168.     }
  169. }
  170.  
  171. public QuerySelectData(iFailState, Handle:hQuery, szError[], iError, szData[])
  172. {
  173.     if (SQL_IsFail(iFailState, iError, szError, g_szLogFile))
  174.         return
  175.    
  176.     new id = str_to_num(szData)
  177.    
  178.     // No results for this query means that player not saved before
  179.     if (!SQL_NumResults(hQuery))
  180.     {
  181.         // This is new player
  182.         g_iEscapes[id] = 0
  183.         return
  184.     }
  185.    
  186.     g_iEscapes[id] = SQL_ReadResult(hQuery, SQL_FieldNameToNum(hQuery, "Escapes"))
  187. }
  188.  
  189. SaveEscapes(id)
  190. {
  191.     new szAuthID[35]
  192.     get_user_authid(id, szAuthID, charsmax(szAuthID))
  193.    
  194.     new szData[16]
  195.     num_to_str(g_iEscapes[id], szData, charsmax(szData))
  196.    
  197.     if (!get_pcvar_num(g_pCvarSaveType))
  198.     {
  199.         // Open the Vault
  200.         g_iVaultHandle = nvault_open(g_szVaultName)
  201.  
  202.         // Save His SteamID, Escape Coins
  203.         nvault_set(g_iVaultHandle, szAuthID, szData)
  204.        
  205.         // Close Vault
  206.         nvault_close(g_iVaultHandle)
  207.     }
  208.     else
  209.     {
  210.         new szQuery[128]
  211.        
  212.         formatex(szQuery, charsmax(szQuery), "UPDATE `zombie_escape` SET `Escapes` = '%d' WHERE `SteamID` = '%s';", g_iEscapes[id], szAuthID)
  213.         SQL_ThreadQuery(g_hTuple, "QueryUpdateData", szQuery)
  214.     }
  215. }
  216.  
  217. public QueryInsertData(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
  218. {
  219.     SQL_IsFail(iFailState, iError, szError, g_szLogFile)
  220. }
  221.  
  222. public QueryUpdateData(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
  223. {
  224.     SQL_IsFail(iFailState, iError, szError, g_szLogFile)
  225. }
  226.  
  227. // Natives
  228. public native_ze_get_user_escapes(id)
  229. {
  230.     if (!is_user_connected(id))
  231.     {
  232.         log_error(AMX_ERR_NATIVE, "[ZE] Invalid Player id (%d)", id)
  233.         return false
  234.     }
  235.    
  236.     return g_iEscapes[id]
  237. }
  238.  
  239. public native_ze_set_user_escapes(id, iAmount)
  240. {
  241.     if (!is_user_connected(id))
  242.     {
  243.         log_error(AMX_ERR_NATIVE, "[ZE] Invalid Player id (%d)", id)
  244.         return false
  245.     }
  246.    
  247.     g_iEscapes[id] = iAmount
  248.     SaveEscapes(id)
  249.     return true
  250. }

no problem, Tahnk you.

Ca you add a HUD TEXT ON SV to be named Human escapes :1 , to sjow you haw many escape you have ?
and if you can just ADD down here where i marked :

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

#9

Post by Raheem » 3 years ago

He who fails to plan is planning to fail

BandiT
Member
Member
Romania
Posts: 59
Joined: 4 years ago
Contact:

#10

Post by BandiT » 3 years ago

Yeah, to show hud message on sv, with how many escapes You did

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

#11

Post by Raheem » 3 years ago

Use ze_hud_info.sma in this topic: viewtopic.php?f=7&t=3563 already added.
He who fails to plan is planning to fail

BandiT
Member
Member
Romania
Posts: 59
Joined: 4 years ago
Contact:

#12

Post by BandiT » 3 years ago

i have a problem with that hud info plugin, the plugin inlcudes infects plugin and when i wil put the plugin on sv is giving me bad load form that infectc plugin cs you modfify the hud info to keep just escapers ?

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

#13

Post by Raheem » 3 years ago

Removed infections:
    1. #include <zombie_escape>
    2.  
    3. // Define some natives
    4. native ze_get_user_escapes(id)
    5.  
    6. // Defines
    7. #define TASK_SHOWHUD 100
    8. #define ID_SHOWHUD (taskid - TASK_SHOWHUD)
    9.  
    10. // Constants Change X,Y If you need (HUD & DHud)
    11. const Float:HUD_SPECT_X = 0.01
    12. const Float:HUD_SPECT_Y = 0.130
    13. const Float:HUD_STATS_X = -1.0
    14. const Float:HUD_STATS_Y = 0.86
    15.  
    16. // Colors
    17. enum
    18. {
    19.     Red = 0,
    20.     Green,
    21.     Blue
    22. }
    23.  
    24. // Variables
    25. new g_iMsgSync,
    26.     g_pCvarRankEnabled
    27.    
    28. // Cvars
    29. new g_pCvarHudInfoMode,
    30.     g_pCvarHudInfoComma,
    31.     g_pCvarZombieInfoColors[3],
    32.     g_pCvarHumanInfoColors[3],
    33.     g_pCvarSpecInfoColors[3]
    34.  
    35. public plugin_init()
    36. {
    37.     register_plugin("[ZE] Hud Information", ZE_VERSION, AUTHORS)
    38.    
    39.     // Messages
    40.     g_iMsgSync = CreateHudSyncObj()
    41.    
    42.     //Cvars
    43.     g_pCvarHudInfoMode = register_cvar("ze_hud_info_mode", "1")
    44.     g_pCvarHudInfoComma = register_cvar("ze_hud_info_commas", "1")
    45.     g_pCvarZombieInfoColors[Red] = register_cvar("ze_hud_info_zombie_red", "255")
    46.     g_pCvarZombieInfoColors[Green] = register_cvar("ze_hud_info_zombie_green", "20")
    47.     g_pCvarZombieInfoColors[Blue] = register_cvar("ze_hud_info_zombie_blue", "20")
    48.     g_pCvarHumanInfoColors[Red] = register_cvar("ze_hud_info_human_red", "20")
    49.     g_pCvarHumanInfoColors[Green] = register_cvar("ze_hud_info_human_green", "20")
    50.     g_pCvarHumanInfoColors[Blue] = register_cvar("ze_hud_info_human_blue", "255")
    51.     g_pCvarSpecInfoColors[Red] = register_cvar("ze_hud_info_spec_red", "100")
    52.     g_pCvarSpecInfoColors[Green] = register_cvar("ze_hud_info_spec_green", "100")
    53.     g_pCvarSpecInfoColors[Blue] = register_cvar("ze_hud_info_spec_blue", "100")
    54.    
    55.     // Pointer
    56.     g_pCvarRankEnabled = get_cvar_pointer("ze_speed_rank_mode")
    57. }
    58.  
    59. public client_putinserver(id)
    60. {
    61.     if(!is_user_bot(id))
    62.     {
    63.         set_task(1.0, "ShowHUD", id+TASK_SHOWHUD, _, _, "b")
    64.     }
    65. }
    66.  
    67. public client_disconnected(id)
    68. {
    69.     remove_task(id+TASK_SHOWHUD)
    70. }
    71.  
    72. public ShowHUD(taskid)
    73. {
    74.     if (get_pcvar_num(g_pCvarHudInfoMode) == 0)
    75.         return
    76.    
    77.     new iPlayer = ID_SHOWHUD
    78.    
    79.     if (!is_user_alive(iPlayer))
    80.     {
    81.         iPlayer = get_entvar(iPlayer, var_iuser2)
    82.        
    83.         if (!is_user_alive(iPlayer))
    84.             return
    85.     }
    86.    
    87.     if(iPlayer != ID_SHOWHUD)
    88.     {
    89.         new szName[32]
    90.         get_user_name(iPlayer, szName, charsmax(szName))
    91.  
    92.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
    93.         {
    94.             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)
    95.            
    96.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    97.             {
    98.                 new szHealth[15]
    99.                 AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
    100.                
    101.                 if (ze_is_user_zombie(iPlayer))
    102.                 {
    103.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
    104.                 }
    105.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    106.                 {
    107.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
    108.                 }
    109.                 else
    110.                 {
    111.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
    112.                 }
    113.             }
    114.             else
    115.             {
    116.                 if (ze_is_user_zombie(iPlayer))
    117.                 {
    118.                     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))
    119.                 }
    120.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    121.                 {
    122.                     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))
    123.                 }
    124.                 else
    125.                 {
    126.                     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))
    127.                 }
    128.             }
    129.         }
    130.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
    131.         {
    132.             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)
    133.            
    134.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    135.             {
    136.                 new szHealth[15]
    137.                 AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
    138.                
    139.                 if (ze_is_user_zombie(iPlayer))
    140.                 {
    141.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
    142.                 }
    143.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    144.                 {
    145.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
    146.                 }
    147.                 else
    148.                 {
    149.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
    150.                 }
    151.             }
    152.             else
    153.             {
    154.                 if (ze_is_user_zombie(iPlayer))
    155.                 {
    156.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
    157.                 }
    158.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    159.                 {
    160.                     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))
    161.                 }
    162.                 else
    163.                 {
    164.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
    165.                 }
    166.             }
    167.         }
    168.     }
    169.     else if (ze_is_user_zombie(iPlayer))
    170.     {
    171.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
    172.         {
    173.             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)
    174.            
    175.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    176.             {
    177.                 new szHealth[15]
    178.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    179.  
    180.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
    181.             }
    182.             else
    183.             {
    184.                 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))
    185.             }
    186.         }
    187.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
    188.         {
    189.             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)
    190.            
    191.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    192.             {
    193.                 new szHealth[15]
    194.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    195.                
    196.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
    197.             }
    198.             else
    199.             {
    200.                 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))   
    201.             }
    202.         }
    203.     }
    204.     else
    205.     {
    206.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
    207.         {
    208.             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)
    209.            
    210.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    211.             {
    212.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    213.                 {
    214.                     new szHealth[15]
    215.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    216.                
    217.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
    218.                 }
    219.                 else
    220.                 {
    221.                     new szHealth[15]
    222.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    223.                
    224.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
    225.                 }                  
    226.             }
    227.             else
    228.             {
    229.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    230.                 {
    231.                     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))
    232.                 }
    233.                 else
    234.                 {
    235.                     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))
    236.                 }                  
    237.             }
    238.         }
    239.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
    240.         {
    241.             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)
    242.            
    243.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
    244.             {
    245.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    246.                 {
    247.                     new szHealth[15]
    248.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    249.                
    250.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
    251.                 }
    252.                 else
    253.                 {
    254.                     new szHealth[15]
    255.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
    256.                
    257.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
    258.                 }
    259.             }
    260.             else
    261.             {
    262.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
    263.                 {
    264.                     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))
    265.                 }
    266.                 else
    267.                 {
    268.                     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))
    269.                 }
    270.             }
    271.         }
    272.     }
    273. }
Edited English translation only, you can do same for your language:
    1. [en]
    2. NO_ENOUGH_PLAYERS = !tNo Enough Players!y. !tRequired!y: !t%i!y.
    3. RUN_NOTICE = Ready for Run. Run After %i Second(s) !
    4. ZOMBIE_RELEASE = Zombie(s) Will Be Released After: %i Second(s) !
    5. READY_TO_RUN = !tAre you Ready to Run!y? !gGood Luck !y:)
    6. ESCAPE_SUCCESS = Escape Success!
    7. ESCAPE_FAIL = Escape Fail!
    8. START_GAME = Game Commencing!
    9. INFECTION_NOTICE = %s has infected %s !
    10. SCORE_MESSAGE = Zombies VS Humans^n %i --------- %i
    11. NO_WINNER = Escape Draw!
    12. RANK_INFO = [MASTER OF SURVIVAL]^n[1st] - %s^n[2nd] - %s^n[3rd] - %s
    13. RANK_INFO_LEADER = [Escape Leader]^n%s
    14.  
    15. COINS_INFO = !tYour Current Escape Coins!y: !g%i
    16. ESCAPE_SUCCESS_COINS = !tEscape Success!y: !t+!g%i !tEscape Coins!y!
    17. HUMAN_INFECTED_COINS = !tInfected Human!y: !t+!g%i !tEscape Coins!y!
    18.  
    19. ZOMBIE_SPEC = Spectating: %s^nHP: %i^nClass: Zombie^nEscape Coins: %i^nEscapes: %i
    20. ZOMBIE_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Zombie^nEscape Coins: %i^nEscapes: %i
    21.  
    22. HUMAN_SPEC = Spectating: %s^nHP: %i^nClass: Human^nEscape Coins: %i^nEscapes: %i
    23. HUMAN_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Human^nEscape Coins: %i^nEscapes: %i
    24.  
    25. HUMAN_SPEC_LEADER = Spectating: %s^nHP: %i^nClass: Escape Leader^nEscape Coins: %i^nEscapes: %i
    26. HUMAN_SPEC_COMMAS_LEADER = Spectating: %s^nHP: %s^nClass: Escape Leader^nEscape Coins: %i^nEscapes: %i
    27.  
    28. ZOMBIE = HP: %i | Class: Zombie | Escape Coins: %i | Escapes: %i
    29. ZOMBIE_COMMAS = HP: %s | Class: Zombie | Escape Coins: %i | Escapes: %i
    30.  
    31. HUMAN_LEADER = HP: %i | Class: Escape Leader | Escape Coins: %i | Escapes: %i
    32. HUMAN_LEADER_COMMAS = HP: %s | Class: Escape Leader | Escape Coins: %i | Escapes: %i
    33.  
    34. HUMAN = HP: %i | Class: Human | Escape Coins: %i | Escapes: %i
    35. HUMAN_COMMAS = HP: %s | Class: Human | Escape Coins: %i | Escapes: %i
    36.  
    37. BUY_ENABLED = !tYour menu has been re-enabled!y.
    38. RE_ENABLE_MENU = !tsay /enable or press M to enable your buy menu!y.
    39. ALREADY_BOUGHT = !tYou already bought Primary and Secondary Weapons!y!
    40. DEAD_CANT_BUY_WEAPON = !tYou can't buy when you're dead!y.
    41. NO_BUY_ZOMBIE = !tYou can't buy when you're Zombie!y.
    42. BUY_MENU_TIME_EXPIRED = !tBuy menu time has expired!y.
    43. MENU_PRIMARY_TITLE = Primary Weapons
    44. MENU_SECONDARY_TITLE = Secondary Weapons
    45. MENU_AUTOSELECT = Remember?
    46. SAVE_YES = Yes
    47. SAVE_NO = No
    48. NEXT = Next
    49. BACK = Back
    50. EXIT = Exit
    51.  
    52. MAIN_MENU_TITLE = [ZE] Main Menu
    53. MENU_EXTRABUY = Buy Extra Items
    54. MENU_WEAPONBUY = Buy Weapons
    55. MENU_WEAPONBUY_RE_ENABLE = Re-enable Buy Weapons
    56.  
    57. BUY_EXTRAITEM = Extra Items
    58. NO_EXTRA_ITEMS = !tNo extra items are currently available to you!y.
    59.  
    60. ITEM_LIMIT = \w[\r%i\d|\r%i\w]
    61. ITEM_LEVEL = \w[\rLevel\d: \r%i\w]
    62. ITEM_VIP = \w(\rVIP\w)
    63.  
    64. [bp]
    65. NO_ENOUGH_PLAYERS = !tFalta jogadores!y. !tNecessario!y: !t%i!y.
    66. RUN_NOTICE = Pronto pra Fugir?. Falta apenas %i segundos !
    67. ZOMBIE_RELEASE = Zumbis liberados em: %i Segundos !
    68. READY_TO_RUN = !tPronto para fugir!y? !gBoa Sorte !y:)
    69. ESCAPE_SUCCESS = Fugiram com sucesso!
    70. ESCAPE_FAIL = Falharam na fuga!
    71. START_GAME = Iniciando a Partida!
    72. INFECTION_NOTICE = %s foi infectado %s !
    73. SCORE_MESSAGE = Zombis VS Humanos^n %i --------- %i
    74. NO_WINNER = Voce perdeu!
    75. RANK_INFO = [MESTRE DE SOBREVIVENCIA]^n[1°] - %s^n[2°] - %s^n[3°] - %s
    76. RANK_INFO_LEADER = [Lider da Fuga]^n%s
    77.  
    78. COINS_INFO = !tSeus Coins!y: !g%i
    79. ESCAPE_SUCCESS_COINS = !tConseguiram Fugir!y: !t+!g%i !tEscape Coins!y!
    80. HUMAN_INFECTED_COINS = !tInfectou Humano!y: !t+!g%i !tEscape Coins!y!
    81.  
    82. ZOMBIE_SPEC = Assistindo: %s^nHP: %i^nClasse: Zombi^nEscape Coins: %i
    83. ZOMBIE_SPEC_COMMAS = Assistindo: %s^nHP: %s^nClasse: Zombi^nEscape Coins: %i
    84.  
    85. HUMAN_SPEC = Assistindo: %s^nHP: %i^nClasse: Humano^nEscape Coins: %i
    86. HUMAN_SPEC_COMMAS = Assistindo: %s^nHP: %s^nClasse: Humano^nEscape Coins: %i
    87.  
    88. HUMAN_SPEC_LEADER = Assistindo: %s^nHP: %i^nClasse: Lider da Fuga^nEscape Coins: %i
    89. HUMAN_SPEC_COMMAS_LEADER = Assistindo: %s^nHP: %s^nClasse: Lider da Fuga^nEscape Coins: %i
    90.  
    91. ZOMBIE = HP: %i | Classe: Zombi | Escape Coins: %i
    92. ZOMBIE_COMMAS = HP: %s | Classe: Zombi | Escape Coins: %i
    93.  
    94. HUMAN_LEADER = HP: %i | Classe: Lider da Fuga | Escape Coins: %i
    95. HUMAN_LEADER_COMMAS = HP: %s | Classe: Lider da Fuga | Escape Coins: %i
    96.  
    97. HUMAN = HP: %i | Classe: Humano | Escape Coins: %i
    98. HUMAN_COMMAS = HP: %s | Classe: Humano | Escape Coins: %i
    99.  
    100. BUY_ENABLED = !tSeu menu foi reativado!y.
    101. RE_ENABLE_MENU = !tdigite /enable ou aperte M para ativar seu menu de compras!y.
    102. ALREADY_BOUGHT = !tVocê já comprou Armas Primárias e Secundárias!y!
    103. DEAD_CANT_BUY_WEAPON = !tMorto não pode comprar Armas Primárias e Secundárias!y.
    104. NO_BUY_ZOMBIE = !tVocê não pode comprar pois é zumbi!y.
    105. BUY_MENU_TIME_EXPIRED = !tO tempo de compra expirou!y.
    106. MENU_PRIMARY_TITLE = Armas Primárias
    107. MENU_SECONDARY_TITLE = Armas Secundárias
    108. MENU_AUTOSELECT = Relembrar?
    109. SAVE_YES = Sim
    110. SAVE_NO = Nao
    111. NEXT = Proximo
    112. BACK = Volta
    113. EXIT = Sair
    114.  
    115. MAIN_MENU_TITLE = [ZE] Menu Principal
    116. MENU_EXTRABUY = Comprar Itens Especiais
    117. MENU_WEAPONBUY = Comprar Armas
    118. MENU_WEAPONBUY_RE_ENABLE = Reabilite as armas compradas
    119.  
    120. BUY_EXTRAITEM = Extra Itens
    121. NO_EXTRA_ITEMS = !tNão há itens extras disponíveis para você!y.
    122.  
    123. ITEM_LIMIT = \w[\r%i\d|\r%i\w]
    124. ITEM_LEVEL = \w[\rLevel\d: \r%i\w]
    125. ITEM_VIP = \w(\rVIP\w)
    126.  
    127. [pl]
    128. NO_ENOUGH_PLAYERS = !tBrak wystarczjacej liczby graczy!y. !tWymagana liczba!y: !t%i!y.
    129. RUN_NOTICE = Gotowy do ucieczki. Biegnij po %i sekundach !
    130. ZOMBIE_RELEASE = Zombie zostanie wypuszczone za: %i sekund !
    131. READY_TO_RUN = !tGotowy do ucieczki!y? !gPOWODZENIA !y:)
    132. ESCAPE_SUCCESS = Udana ucieczka!
    133. ESCAPE_FAIL = Nieudana ucieczka!
    134. START_GAME = Rozpoczecie gry!
    135. INFECTION_NOTICE = %s zarazil %s !
    136. SCORE_MESSAGE = Zombie VS Ludzie^n %i --------- %i
    137. NO_WINNER = Remis!
    138. RANK_INFO = [Mistrz przetrwania]^n[1st] - %s^n[2nd] - %s^n[3rd] - %s
    139. RANK_INFO_LEADER = [LIDER UCIECZKI]^n%s
    140.  
    141. COINS_INFO = !tTwoja aktualna ilosc monet!y: !g%i
    142. ESCAPE_SUCCESS_COINS = !tUdana ucieczka!y: !t+!g%i !tmonet!y!
    143. HUMAN_INFECTED_COINS = !tZarazono czlowieka!y: !t+!g%i !tmonet!y!
    144.  
    145. ZOMBIE_SPEC = Spectating: %s^nHP: %i^nKlasa: Zombie^nIlosc monet: %i
    146. ZOMBIE_SPEC_COMMAS = Spectating: %s^nHP: %s^nKlasa: Zombie^nIlosc monet: %i
    147.  
    148. HUMAN_SPEC = Ogladanie: %s^nHP: %i^nKlasa: Czlowiek^nIlosc monet: %i
    149. HUMAN_SPEC_COMMAS = Ogladanie: %s^nHP: %s^nKlasa: Czlowiek^nIlosc monet: %i
    150.  
    151. HUMAN_SPEC_LEADER = Ogladanie: %s^nHP: %i^nKlasa: Escape Lider^nIlosc monet: %i
    152. HUMAN_SPEC_COMMAS_LEADER = Ogladanie: %s^nHP: %s^nKlasa: Escape Lider^nIlosc monet: %i
    153.  
    154. ZOMBIE = HP: %i | Klasa: Zombie | Ilosc monet: %i
    155. ZOMBIE_COMMAS = HP: %s | Klasa: Zombie | Ilosc monet: %i
    156.  
    157. HUMAN_LEADER = HP: %i | Klasa: Escape Lider| Ilosc monet: %i
    158. HUMAN_LEADER_COMMAS = HP: %s | Klasa: Escape Lider | Ilosc monet: %i
    159.  
    160. HUMAN = HP: %i | Klasa: Czlowiek | Ilosc monet: %i
    161. HUMAN_COMMAS = HP: %s | Class: Human | Escape Coins: %i
    162.  
    163. BUY_ENABLED = !tYour menu has been re-enabled!y.
    164. RE_ENABLE_MENU = !tsay /enable or press M to enable your buy menu!y.
    165. ALREADY_BOUGHT = !tJuz kupiles bron!y!
    166. DEAD_CANT_BUY_WEAPON = !tNie mozesz kupic broni, kiedy jestes martwy!y.
    167. NO_BUY_ZOMBIE = !tNie mozesz kupic broni, kiedy jestes Zombie!y.
    168. BUY_MENU_TIME_EXPIRED = !tCzas kupowania broni sie skonczyl!y.
    169. MENU_PRIMARY_TITLE = Bron podstawowa
    170. MENU_SECONDARY_TITLE = Bron dodatkowa
    171. MENU_AUTOSELECT = Zapamietac?
    172. SAVE_YES = Tak
    173. SAVE_NO = Nie
    174. NEXT = Nastepny
    175. BACK = Powrot
    176. EXIT = Wyjscie
    177.  
    178. MAIN_MENU_TITLE = [ZE] Glowne Menu
    179. MENU_EXTRABUY = Kup dodatkowe przedmioty
    180. MENU_WEAPONBUY = Kup bronie
    181. MENU_WEAPONBUY_RE_ENABLE = Wlacz ponowne kupowanie broni
    182.  
    183. BUY_EXTRAITEM = Dodatkowe przedmioty
    184. NO_EXTRA_ITEMS = !tAktulanie dodatkowe przedmioty nie sa dostepne!y.
    185.  
    186. ITEM_LIMIT = \w[\r%i\d|\r%i\w]
    187. ITEM_LEVEL = \w[\rPoziom\d: \r%i\w]
    188. ITEM_VIP = \w(\rVIP\w)
    189.  
    190. [bs]
    191. NO_ENOUGH_PLAYERS = !tNema dovoljno igraca!y. !tPotrebno!y: !t%i!y.
    192. RUN_NOTICE = Spremite se za bijeg. Bjezite nakon %i sekundi !
    193. ZOMBIE_RELEASE = Zombiji ce biti pusteni nakon: %i sekundi !
    194. READY_TO_RUN = !tDa li ste spremni!y? !gSRETNO !y:)
    195. ESCAPE_SUCCESS = Uspjesan bijeg!
    196. ESCAPE_FAIL = Neuspjesan bijeg!
    197. START_GAME = Pokretanje igre!
    198. INFECTION_NOTICE = %s je zarazio %s !
    199. SCORE_MESSAGE = Zombiji VS Ljudi^n %i --------- %i
    200. NO_WINNER = Bez pobjednika!
    201. RANK_INFO = [MAJSTOR PREZIVLJAVANJA]^n[1st] - %s^n[2nd] - %s^n[3rd] - %s
    202. RANK_INFO_LEADER = [Lider bijega]^n%s
    203.  
    204. COINS_INFO = !tVas trenutni broj kovanica!y: !g%i
    205. ESCAPE_SUCCESS_COINS = !tUspješan bijeg!y: !t+!g%i !tKovanica!y!
    206. HUMAN_INFECTED_COINS = !tZarazili ste covjeka!y: !t+!g%i !tKovanica!y!
    207.  
    208. ZOMBIE_SPEC = Gledate: %s^nHP: %i^nVrsta: Zombi^nBroj kovanica: %i
    209. ZOMBIE_SPEC_COMMAS = Gledate: %s^nHP: %s^nKlasa: Zombi^nBroj kovanica: %i
    210.  
    211. HUMAN_SPEC = Gledate: %s^nHP: %i^nVrsta: Covjek^nBroj kovanica: %i
    212. HUMAN_SPEC_COMMAS = Gledate: %s^nHP: %s^nVrsta: Covjek^nBroj kovanica: %i
    213.  
    214. HUMAN_SPEC_LEADER = Gledate: %s^nHP: %i^nKlasa: Lider bijega^nBroj kovanica: %i
    215. HUMAN_SPEC_COMMAS_LEADER = Gledate: %s^nHP: %s^nKlasa: Lider bijega^nBroj kovanica: %i
    216.  
    217. ZOMBIE = HP: %i | Vrsta: Zombi | Broj kovanica: %i
    218. ZOMBIE_COMMAS = HP: %s | Vrsta: Zombi | Broj kovanica: %i
    219.  
    220. HUMAN_LEADER = HP: %i | Klasa: Lider bijega | Broj kovanica: %i
    221. HUMAN_LEADER_COMMAS = HP: %s | Klasa: Lider bijega | Broj kovanica: %i
    222.  
    223. HUMAN = HP: %i | Vrsta: Covjek | Broj kovanica: %i
    224. HUMAN_COMMAS = HP: %s | Vrsta: Covjek | Broj kovanica: %i
    225.  
    226. BUY_ENABLED = !tPonovo ste aktivirali meni za odabir oruzja!y.
    227. RE_ENABLE_MENU = !tnapisite /enable ili pritisnite slovo M da aktivirate meni za odabir oruzja!y.
    228. ALREADY_BOUGHT = !tVec ste odabrali svoje oruzje!y!
    229. DEAD_CANT_BUY_WEAPON = !tNe mozete odabrati oruzje kada ste mrtvi!y.
    230. NO_BUY_ZOMBIE = !tNe mozete odabrati oruzje kada ste zombi!y.
    231. BUY_MENU_TIME_EXPIRED = !tVrijeme za odabir oruzja je isteklo!y.
    232. MENU_PRIMARY_TITLE = Osnovno oruzje
    233. MENU_SECONDARY_TITLE = Dodatno oruzje
    234. MENU_AUTOSELECT = Zapamtiti?
    235. SAVE_YES = Da
    236. SAVE_NO = Ne
    237. NEXT = Sljedece
    238. BACK = Povratak
    239. EXIT = Izlaz
    240.  
    241. MAIN_MENU_TITLE = [ZE] Glavni Meni
    242. MENU_EXTRABUY = Kupite dodatke
    243. MENU_WEAPONBUY = Odaberite oruzje
    244. MENU_WEAPONBUY_RE_ENABLE = Ponovo aktivirajte meni za odabir oruzja
    245.  
    246. BUY_EXTRAITEM = Dodaci
    247. NO_EXTRA_ITEMS = !tDodaci trenutno nisu dostupni!y.
    248.  
    249. ITEM_LIMIT = \w[\r%i\d|\r%i\w]
    250. ITEM_LEVEL = \w[\rLevel\d: \r%i\w]
    251. ITEM_VIP = \w(\rVIP\w)
He who fails to plan is planning to fail

mldxx
Member
Member
Posts: 32
Joined: 3 years ago
Contact:

#14

Post by mldxx » 3 years ago

Hello guys can someone compile this pls? because i have some errors

https://imgur.com/a/6BBiTRm

pls
:arrow: Sanctus Espiritus redeem us from our solemn hour
Sanctus Espiritus insanity is all around us :arrow:

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

#15

Post by Raheem » 3 years ago

mldxx wrote: 3 years ago Hello guys can someone compile this pls? because i have some errors

https://imgur.com/a/6BBiTRm

pls
Hi,

please use this compiler viewtopic.php?f=6&t=221 to compile the plugin.
He who fails to plan is planning to fail

mldxx
Member
Member
Posts: 32
Joined: 3 years ago
Contact:

#16

Post by mldxx » 3 years ago

My wrong , i m sorry Raheem , the compiler wasn t good , i use now amxx studio and everything is ok. and thank u :D :D
:arrow: Sanctus Espiritus redeem us from our solemn hour
Sanctus Espiritus insanity is all around us :arrow:

mldxx
Member
Member
Posts: 32
Joined: 3 years ago
Contact:

#17

Post by mldxx » 3 years ago

help Please


L 03/19/2021 - 14:46:20: [AMXX] [0] Untitled.sma::ShowHUD (line 221)
L 03/19/2021 - 14:46:21: String formatted incorrectly - parameter 8 (total 7)
L 03/19/2021 - 14:46:21: [AMXX] Displaying debug trace (plugin "ze_hud_info.amxx", version "1.6")
L 03/19/2021 - 14:46:21: [AMXX] Run time error 25: parameter error
L 03/19/2021 - 14:46:21: [AMXX] [0] Untitled.sma::ShowHUD (line 221)
L 03/19/2021 - 14:46:22: String formatted incorrectly - parameter 8 (total 7)
L 03/19/2021 - 14:46:22: [AMXX] Displaying debug trace (plugin "ze_hud_info.amxx", version "1.6")
L 03/19/2021 - 14:46:22: [AMXX] Run time error 25: parameter error
L 03/19/2021 - 14:46:22: [AMXX] [0] Untitled.sma::ShowHUD (line 221)


Untitled.sma is ze_hud_info.sma
:arrow: Sanctus Espiritus redeem us from our solemn hour
Sanctus Espiritus insanity is all around us :arrow:

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

#18

Post by Raheem » 3 years ago

mldxx wrote: 3 years ago help Please


L 03/19/2021 - 14:46:20: [AMXX] [0] Untitled.sma::ShowHUD (line 221)
L 03/19/2021 - 14:46:21: String formatted incorrectly - parameter 8 (total 7)
L 03/19/2021 - 14:46:21: [AMXX] Displaying debug trace (plugin "ze_hud_info.amxx", version "1.6")
L 03/19/2021 - 14:46:21: [AMXX] Run time error 25: parameter error
L 03/19/2021 - 14:46:21: [AMXX] [0] Untitled.sma::ShowHUD (line 221)
L 03/19/2021 - 14:46:22: String formatted incorrectly - parameter 8 (total 7)
L 03/19/2021 - 14:46:22: [AMXX] Displaying debug trace (plugin "ze_hud_info.amxx", version "1.6")
L 03/19/2021 - 14:46:22: [AMXX] Run time error 25: parameter error
L 03/19/2021 - 14:46:22: [AMXX] [0] Untitled.sma::ShowHUD (line 221)


Untitled.sma is ze_hud_info.sma
Did you change anything in the lang file or in the source code?
He who fails to plan is planning to fail

mldxx
Member
Member
Posts: 32
Joined: 3 years ago
Contact:

#19

Post by mldxx » 3 years ago

ze_hud_info :
  1. #include <zombie_escape>
  2.  
  3.  
  4.  
  5. // Defines
  6.  
  7. #define TASK_SHOWHUD 100
  8.  
  9. #define ID_SHOWHUD (taskid - TASK_SHOWHUD)
  10.  
  11.  
  12.  
  13. // Constants Change X,Y If you need (HUD & DHud)
  14.  
  15. const Float:HUD_SPECT_X = 0.01
  16.  
  17. const Float:HUD_SPECT_Y = 0.130
  18.  
  19. const Float:HUD_STATS_X = -1.0
  20.  
  21. const Float:HUD_STATS_Y = 0.86
  22.  
  23.  
  24.  
  25. // Colors
  26.  
  27. enum
  28.  
  29. {
  30.  
  31.     Red = 0,
  32.  
  33.     Green,
  34.  
  35.     Blue
  36.  
  37. }
  38.  
  39.  
  40.  
  41. // Variables
  42.  
  43. new g_iMsgSync,
  44.  
  45.     g_pCvarRankEnabled
  46.  
  47.    
  48.  
  49. // Cvars
  50.  
  51. new g_pCvarHudInfoMode,
  52.  
  53.     g_pCvarHudInfoComma,
  54.  
  55.     g_pCvarZombieInfoColors[3],
  56.  
  57.     g_pCvarHumanInfoColors[3],
  58.  
  59.     g_pCvarSpecInfoColors[3]
  60.  
  61.  
  62.  
  63. public plugin_init()
  64.  
  65. {
  66.  
  67.     register_plugin("[ZE] Hud Information", ZE_VERSION, AUTHORS)
  68.  
  69.    
  70.  
  71.     // Messages
  72.  
  73.     g_iMsgSync = CreateHudSyncObj()
  74.  
  75.    
  76.  
  77.     //Cvars
  78.  
  79.     g_pCvarHudInfoMode = register_cvar("ze_hud_info_mode", "1")
  80.  
  81.     g_pCvarHudInfoComma = register_cvar("ze_hud_info_commas", "1")
  82.  
  83.     g_pCvarZombieInfoColors[Red] = register_cvar("ze_hud_info_zombie_red", "255")
  84.  
  85.     g_pCvarZombieInfoColors[Green] = register_cvar("ze_hud_info_zombie_green", "20")
  86.  
  87.     g_pCvarZombieInfoColors[Blue] = register_cvar("ze_hud_info_zombie_blue", "20")
  88.  
  89.     g_pCvarHumanInfoColors[Red] = register_cvar("ze_hud_info_human_red", "20")
  90.  
  91.     g_pCvarHumanInfoColors[Green] = register_cvar("ze_hud_info_human_green", "20")
  92.  
  93.     g_pCvarHumanInfoColors[Blue] = register_cvar("ze_hud_info_human_blue", "255")
  94.  
  95.     g_pCvarSpecInfoColors[Red] = register_cvar("ze_hud_info_spec_red", "100")
  96.  
  97.     g_pCvarSpecInfoColors[Green] = register_cvar("ze_hud_info_spec_green", "100")
  98.  
  99.     g_pCvarSpecInfoColors[Blue] = register_cvar("ze_hud_info_spec_blue", "100")
  100.  
  101.    
  102.  
  103.     // Pointer
  104.  
  105.     g_pCvarRankEnabled = get_cvar_pointer("ze_speed_rank_mode")
  106.  
  107. }
  108.  
  109.  
  110.  
  111. public client_putinserver(id)
  112.  
  113. {
  114.  
  115.     if(!is_user_bot(id))
  116.  
  117.     {
  118.  
  119.         set_task(1.0, "ShowHUD", id+TASK_SHOWHUD, _, _, "b")
  120.  
  121.     }
  122.  
  123. }
  124.  
  125.  
  126.  
  127. public client_disconnected(id)
  128.  
  129. {
  130.  
  131.     remove_task(id+TASK_SHOWHUD)
  132.  
  133. }
  134.  
  135.  
  136.  
  137. public ShowHUD(taskid)
  138.  
  139. {
  140.  
  141.     if (get_pcvar_num(g_pCvarHudInfoMode) == 0)
  142.  
  143.         return
  144.  
  145.    
  146.  
  147.     new iPlayer = ID_SHOWHUD
  148.  
  149.    
  150.  
  151.     if (!is_user_alive(iPlayer))
  152.  
  153.     {
  154.  
  155.         iPlayer = get_entvar(iPlayer, var_iuser2)
  156.  
  157.        
  158.  
  159.         if (!is_user_alive(iPlayer))
  160.  
  161.             return
  162.  
  163.     }
  164.  
  165.    
  166.  
  167.     if(iPlayer != ID_SHOWHUD)
  168.  
  169.     {
  170.  
  171.         new szName[32]
  172.  
  173.         get_user_name(iPlayer, szName, charsmax(szName))
  174.  
  175.  
  176.  
  177.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
  178.  
  179.         {
  180.  
  181.             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)
  182.  
  183.            
  184.  
  185.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  186.  
  187.             {
  188.  
  189.                 new szHealth[15]
  190.  
  191.                 AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
  192.  
  193.                
  194.  
  195.                 if (ze_is_user_zombie(iPlayer))
  196.  
  197.                 {
  198.  
  199.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer))
  200.  
  201.                 }
  202.  
  203.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  204.  
  205.                 {
  206.  
  207.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer))
  208.  
  209.                 }
  210.  
  211.                 else
  212.  
  213.                 {
  214.  
  215.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer))
  216.  
  217.                 }
  218.  
  219.             }
  220.  
  221.             else
  222.  
  223.             {
  224.  
  225.                 if (ze_is_user_zombie(iPlayer))
  226.  
  227.                 {
  228.  
  229.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
  230.  
  231.                 }
  232.  
  233.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  234.  
  235.                 {
  236.  
  237.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_LEADER", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
  238.  
  239.                 }
  240.  
  241.                 else
  242.  
  243.                 {
  244.  
  245.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
  246.  
  247.                 }
  248.  
  249.             }
  250.  
  251.         }
  252.  
  253.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
  254.  
  255.         {
  256.  
  257.             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)
  258.  
  259.            
  260.  
  261.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  262.  
  263.             {
  264.  
  265.                 new szHealth[15]
  266.  
  267.                 AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
  268.  
  269.                
  270.  
  271.                 if (ze_is_user_zombie(iPlayer))
  272.  
  273.                 {
  274.  
  275.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer))
  276.  
  277.                 }
  278.  
  279.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  280.  
  281.                 {
  282.  
  283.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer))
  284.  
  285.                 }
  286.  
  287.                 else
  288.  
  289.                 {
  290.  
  291.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer))
  292.  
  293.                 }
  294.  
  295.             }
  296.  
  297.             else
  298.  
  299.             {
  300.  
  301.                 if (ze_is_user_zombie(iPlayer))
  302.  
  303.                 {
  304.  
  305.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
  306.  
  307.                 }
  308.  
  309.                 else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  310.  
  311.                 {
  312.  
  313.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_LEADER", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
  314.  
  315.                 }
  316.  
  317.                 else
  318.  
  319.                 {
  320.  
  321.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer))
  322.  
  323.                 }
  324.  
  325.             }
  326.  
  327.         }
  328.  
  329.     }
  330.  
  331.     else if (ze_is_user_zombie(iPlayer))
  332.  
  333.     {
  334.  
  335.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
  336.  
  337.         {
  338.  
  339.             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)
  340.  
  341.            
  342.  
  343.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  344.  
  345.             {
  346.  
  347.                 new szHealth[15]
  348.  
  349.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  350.  
  351.  
  352.  
  353.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD))
  354.  
  355.             }
  356.  
  357.             else
  358.  
  359.             {
  360.  
  361.                 ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD))
  362.  
  363.             }
  364.  
  365.         }
  366.  
  367.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
  368.  
  369.         {
  370.  
  371.             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)
  372.  
  373.            
  374.  
  375.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  376.  
  377.             {
  378.  
  379.                 new szHealth[15]
  380.  
  381.                 AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  382.  
  383.                
  384.  
  385.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD))
  386.  
  387.             }
  388.  
  389.             else
  390.  
  391.             {
  392.  
  393.                 show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD))
  394.  
  395.             }
  396.  
  397.         }
  398.  
  399.     }
  400.  
  401.     else
  402.  
  403.     {
  404.  
  405.         if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
  406.  
  407.         {
  408.  
  409.             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)
  410.  
  411.            
  412.  
  413.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  414.  
  415.             {
  416.  
  417.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  418.  
  419.                 {
  420.  
  421.                     new szHealth[15]
  422.  
  423.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  424.  
  425.                
  426.  
  427.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD))
  428.  
  429.                 }
  430.  
  431.                 else
  432.  
  433.                 {
  434.  
  435.                     new szHealth[15]
  436.  
  437.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  438.  
  439.                
  440.  
  441.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD))
  442.  
  443.                 }                  
  444.  
  445.             }
  446.  
  447.             else
  448.  
  449.             {
  450.  
  451.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  452.  
  453.                 {
  454.  
  455.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_LEADER", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD))
  456.  
  457.                 }
  458.  
  459.                 else
  460.  
  461.                 {
  462.  
  463.                     ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD))
  464.  
  465.                 }                  
  466.  
  467.             }
  468.  
  469.         }
  470.  
  471.         else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
  472.  
  473.         {
  474.  
  475.             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)
  476.  
  477.            
  478.  
  479.             if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
  480.  
  481.             {
  482.  
  483.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  484.  
  485.                 {
  486.  
  487.                     new szHealth[15]
  488.  
  489.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  490.  
  491.                
  492.  
  493.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD))
  494.  
  495.                 }
  496.  
  497.                 else
  498.  
  499.                 {
  500.  
  501.                     new szHealth[15]
  502.  
  503.                     AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
  504.  
  505.                
  506.  
  507.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD))
  508.  
  509.                 }
  510.  
  511.             }
  512.  
  513.             else
  514.  
  515.             {
  516.  
  517.                 if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
  518.  
  519.                 {
  520.  
  521.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_LEADER", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD))
  522.  
  523.                 }
  524.  
  525.                 else
  526.  
  527.                 {
  528.  
  529.                     show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD))
  530.  
  531.                 }
  532.  
  533.             }
  534.  
  535.         }
  536.  
  537.     }
  538.  
  539. }




zombie_Escape.txt

  1. [en]
  2. NO_ENOUGH_PLAYERS = !tNo Enough Players!y. !tRequired!y: !t%i!y.
  3. RUN_NOTICE = Ready for Run. Run After %i Second(s) !
  4. ZOMBIE_RELEASE = Zombie(s) Will Be Released After: %i Second(s) !
  5. READY_TO_RUN = !tAre you Ready to Run!y? !gGood Luck !y:)
  6. ESCAPE_SUCCESS = Escape Success!
  7. ESCAPE_FAIL = Escape Fail!
  8. START_GAME = Game Commencing!
  9. INFECTION_NOTICE = %s has infected %s !
  10. SCORE_MESSAGE = Zombies VS Humans^n %i --------- %i
  11. NO_WINNER = Escape Draw!
  12. RANK_INFO = [MASTER OF SURVIVAL]^n[1st] - %s^n[2nd] - %s^n[3rd] - %s
  13. RANK_INFO_LEADER = [Escape Leader]^n%s
  14.  
  15. COINS_INFO = !tYour Current Escape Coins!y: !g%i
  16. ESCAPE_SUCCESS_COINS = !tEscape Success!y: !t+!g%i !tEscape Coins!y!
  17. HUMAN_INFECTED_COINS = !tInfected Human!y: !t+!g%i !tEscape Coins!y!
  18.  
  19. ZOMBIE_SPEC = Spectating: %s^nHP: %i^nClass: Zombie^nEscape Coins: %i^nEscapes: %i
  20. ZOMBIE_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Zombie^nEscape Coins: %i^nEscapes: %i
  21.  
  22. HUMAN_SPEC = Spectating: %s^nHP: %i^nClass: Human^nEscape Coins: %i^nEscapes: %i
  23. HUMAN_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Human^nEscape Coins: %i^nEscapes: %i
  24.  
  25. HUMAN_SPEC_LEADER = Spectating: %s^nHP: %i^nClass: Escape Leader^nEscape Coins: %i^nEscapes: %i
  26. HUMAN_SPEC_COMMAS_LEADER = Spectating: %s^nHP: %s^nClass: Escape Leader^nEscape Coins: %i^nEscapes: %i
  27.  
  28. ZOMBIE = HP: %i | Class: Zombie | Escape Coins: %i | Escapes: %i
  29. ZOMBIE_COMMAS = HP: %s | Class: Zombie | Escape Coins: %i | Escapes: %i
  30.  
  31. HUMAN_LEADER = HP: %i | Class: Escape Leader | Escape Coins: %i | Escapes: %i
  32. HUMAN_LEADER_COMMAS = HP: %s | Class: Escape Leader | Escape Coins: %i | Escapes: %i
  33.  
  34. HUMAN = HP: %i | Class: Human | Escape Coins: %i | Escapes: %i
  35. HUMAN_COMMAS = HP: %s | Class: Human | Escape Coins: %i | Escapes: %i
  36.  
  37. BUY_ENABLED = !tYour menu has been re-enabled!y.
  38. RE_ENABLE_MENU = !tsay /enable or press M to enable your buy menu!y.
  39. ALREADY_BOUGHT = !tYou already bought Primary and Secondary Weapons!y!
  40. DEAD_CANT_BUY_WEAPON = !tYou can't buy when you're dead!y.
  41. NO_BUY_ZOMBIE = !tYou can't buy when you're Zombie!y.
  42. BUY_MENU_TIME_EXPIRED = !tBuy menu time has expired!y.
  43. MENU_PRIMARY_TITLE = Primary Weapons
  44. MENU_SECONDARY_TITLE = Secondary Weapons
  45. MENU_AUTOSELECT = Remember?
  46. SAVE_YES = Yes
  47. SAVE_NO = No
  48. NEXT = Next
  49. BACK = Back
  50. EXIT = Exit
  51.  
  52. MAIN_MENU_TITLE = [ZE] Main Menu
  53. MENU_EXTRABUY = Buy Extra Items
  54. MENU_WEAPONBUY = Buy Weapons
  55. MENU_WEAPONBUY_RE_ENABLE = Re-enable Buy Weapons
  56.  
  57. BUY_EXTRAITEM = Extra Items
  58. NO_EXTRA_ITEMS = !tNo extra items are currently available to you!y.
  59.  
  60. ITEM_LIMIT = \w[\r%i\d|\r%i\w]
  61. ITEM_LEVEL = \w[\rLevel\d: \r%i\w]
  62. ITEM_VIP = \w(\rVIP\w)
  63.  
  64. MENU_ADMIN_TITLE = Admin Menu
  65. MAKE_HM_ZM = Make Zombie/Human
  66. CMD_NOT_ACCESS = You have no access.
  67. CLASS_ZOMBIE = Zombie
  68. CLASS_HUMAN = Human
  69. CMD_NOT = Unavailable command.
  70. ALREADY_HUMAN = This player is already human
  71. ALREADY_ZOMBIE = This player is already zombie
  72. CMD_CANT_LAST_ZOMBIE = Can't apply this action on the last zombie
  73. CMD_CANT_LAST_HUMAN = Can't apply this action on the last human
  74. CMD_ONLY_AFTER_GAME_MODE = This command is available only after game starts
  75. CMD_CURED = Was turned to human
  76. CMD_INFECTED = Was turned to zombie
  77.  
  78. MENU_ZCLASS = \rChoose Zombie Class \d|
  79. NO_ZCLASSES = !tThere aren't classes available!y.
  80. ZOMBIE_SELECT = Your next zombie class is going to be
  81. ZOMBIE_HEALTH = Health
  82. ZOMBIE_SPEED = Speed
  83. ZOMBIE_GRAVITY = Gravity
  84.  
  85.  
  86.  
  87. [bp]
  88. NO_ENOUGH_PLAYERS = !tFalta jogadores!y. !tNecessario!y: !t%i!y.
  89. RUN_NOTICE = Pronto pra Fugir?. Falta apenas %i segundos !
  90. ZOMBIE_RELEASE = Zumbis liberados em: %i Segundos !
  91. READY_TO_RUN = !tPronto para fugir!y? !gBoa Sorte !y:)
  92. ESCAPE_SUCCESS = Fugiram com sucesso!
  93. ESCAPE_FAIL = Falharam na fuga!
  94. START_GAME = Iniciando a Partida!
  95. INFECTION_NOTICE = %s foi infectado %s !
  96. SCORE_MESSAGE = Zombis VS Humanos^n %i --------- %i
  97. NO_WINNER = Voce perdeu!
  98. RANK_INFO = [MESTRE DE SOBREVIVENCIA]^n[1°] - %s^n[2°] - %s^n[3°] - %s
  99. RANK_INFO_LEADER = [Lider da Fuga]^n%s
  100.  
  101. COINS_INFO = !tSeus Coins!y: !g%i
  102. ESCAPE_SUCCESS_COINS = !tConseguiram Fugir!y: !t+!g%i !tEscape Coins!y!
  103. HUMAN_INFECTED_COINS = !tInfectou Humano!y: !t+!g%i !tEscape Coins!y!
  104.  
  105. ZOMBIE_SPEC = Assistindo: %s^nHP: %i^nClasse: Zombi^nEscape Coins: %i
  106. ZOMBIE_SPEC_COMMAS = Assistindo: %s^nHP: %s^nClasse: Zombi^nEscape Coins: %i
  107.  
  108. HUMAN_SPEC = Assistindo: %s^nHP: %i^nClasse: Humano^nEscape Coins: %i
  109. HUMAN_SPEC_COMMAS = Assistindo: %s^nHP: %s^nClasse: Humano^nEscape Coins: %i
  110.  
  111. HUMAN_SPEC_LEADER = Assistindo: %s^nHP: %i^nClasse: Lider da Fuga^nEscape Coins: %i
  112. HUMAN_SPEC_COMMAS_LEADER = Assistindo: %s^nHP: %s^nClasse: Lider da Fuga^nEscape Coins: %i
  113.  
  114. ZOMBIE = HP: %i | Classe: Zombi | Escape Coins: %i
  115. ZOMBIE_COMMAS = HP: %s | Classe: Zombi | Escape Coins: %i
  116.  
  117. HUMAN_LEADER = HP: %i | Classe: Lider da Fuga | Escape Coins: %i
  118. HUMAN_LEADER_COMMAS = HP: %s | Classe: Lider da Fuga | Escape Coins: %i
  119.  
  120. HUMAN = HP: %i | Classe: Humano | Escape Coins: %i
  121. HUMAN_COMMAS = HP: %s | Classe: Humano | Escape Coins: %i
  122.  
  123. BUY_ENABLED = !tSeu menu foi reativado!y.
  124. RE_ENABLE_MENU = !tdigite /enable ou aperte M para ativar seu menu de compras!y.
  125. ALREADY_BOUGHT = !tVocê já comprou Armas Primárias e Secundárias!y!
  126. DEAD_CANT_BUY_WEAPON = !tMorto não pode comprar Armas Primárias e Secundárias!y.
  127. NO_BUY_ZOMBIE = !tVocê não pode comprar pois é zumbi!y.
  128. BUY_MENU_TIME_EXPIRED = !tO tempo de compra expirou!y.
  129. MENU_PRIMARY_TITLE = Armas Primárias
  130. MENU_SECONDARY_TITLE = Armas Secundárias
  131. MENU_AUTOSELECT = Relembrar?
  132. SAVE_YES = Sim
  133. SAVE_NO = Nao
  134. NEXT = Proximo
  135. BACK = Volta
  136. EXIT = Sair
  137.  
  138. MAIN_MENU_TITLE = [ZE] Menu Principal
  139. MENU_EXTRABUY = Comprar Itens Especiais
  140. MENU_WEAPONBUY = Comprar Armas
  141. MENU_WEAPONBUY_RE_ENABLE = Reabilite as armas compradas
  142.  
  143. BUY_EXTRAITEM = Extra Itens
  144. NO_EXTRA_ITEMS = !tNão há itens extras disponíveis para você!y.
  145.  
  146. ITEM_LIMIT = \w[\r%i\d|\r%i\w]
  147. ITEM_LEVEL = \w[\rLevel\d: \r%i\w]
  148. ITEM_VIP = \w(\rVIP\w)
  149.  
  150. [pl]
  151. NO_ENOUGH_PLAYERS = !tBrak wystarczjacej liczby graczy!y. !tWymagana liczba!y: !t%i!y.
  152. RUN_NOTICE = Gotowy do ucieczki. Biegnij po %i sekundach !
  153. ZOMBIE_RELEASE = Zombie zostanie wypuszczone za: %i sekund !
  154. READY_TO_RUN = !tGotowy do ucieczki!y? !gPOWODZENIA !y:)
  155. ESCAPE_SUCCESS = Udana ucieczka!
  156. ESCAPE_FAIL = Nieudana ucieczka!
  157. START_GAME = Rozpoczecie gry!
  158. INFECTION_NOTICE = %s zarazil %s !
  159. SCORE_MESSAGE = Zombie VS Ludzie^n %i --------- %i
  160. NO_WINNER = Remis!
  161. RANK_INFO = [Mistrz przetrwania]^n[1st] - %s^n[2nd] - %s^n[3rd] - %s
  162. RANK_INFO_LEADER = [LIDER UCIECZKI]^n%s
  163.  
  164. COINS_INFO = !tTwoja aktualna ilosc monet!y: !g%i
  165. ESCAPE_SUCCESS_COINS = !tUdana ucieczka!y: !t+!g%i !tmonet!y!
  166. HUMAN_INFECTED_COINS = !tZarazono czlowieka!y: !t+!g%i !tmonet!y!
  167.  
  168. ZOMBIE_SPEC = Spectating: %s^nHP: %i^nKlasa: Zombie^nIlosc monet: %i
  169. ZOMBIE_SPEC_COMMAS = Spectating: %s^nHP: %s^nKlasa: Zombie^nIlosc monet: %i
  170.  
  171. HUMAN_SPEC = Ogladanie: %s^nHP: %i^nKlasa: Czlowiek^nIlosc monet: %i
  172. HUMAN_SPEC_COMMAS = Ogladanie: %s^nHP: %s^nKlasa: Czlowiek^nIlosc monet: %i
  173.  
  174. HUMAN_SPEC_LEADER = Ogladanie: %s^nHP: %i^nKlasa: Escape Lider^nIlosc monet: %i
  175. HUMAN_SPEC_COMMAS_LEADER = Ogladanie: %s^nHP: %s^nKlasa: Escape Lider^nIlosc monet: %i
  176.  
  177. ZOMBIE = HP: %i | Klasa: Zombie | Ilosc monet: %i
  178. ZOMBIE_COMMAS = HP: %s | Klasa: Zombie | Ilosc monet: %i
  179.  
  180. HUMAN_LEADER = HP: %i | Klasa: Escape Lider| Ilosc monet: %i
  181. HUMAN_LEADER_COMMAS = HP: %s | Klasa: Escape Lider | Ilosc monet: %i
  182.  
  183. HUMAN = HP: %i | Klasa: Czlowiek | Ilosc monet: %i
  184. HUMAN_COMMAS = HP: %s | Class: Human | Escape Coins: %i
  185.  
  186. BUY_ENABLED = !tYour menu has been re-enabled!y.
  187. RE_ENABLE_MENU = !tsay /enable or press M to enable your buy menu!y.
  188. ALREADY_BOUGHT = !tJuz kupiles bron!y!
  189. DEAD_CANT_BUY_WEAPON = !tNie mozesz kupic broni, kiedy jestes martwy!y.
  190. NO_BUY_ZOMBIE = !tNie mozesz kupic broni, kiedy jestes Zombie!y.
  191. BUY_MENU_TIME_EXPIRED = !tCzas kupowania broni sie skonczyl!y.
  192. MENU_PRIMARY_TITLE = Bron podstawowa
  193. MENU_SECONDARY_TITLE = Bron dodatkowa
  194. MENU_AUTOSELECT = Zapamietac?
  195. SAVE_YES = Tak
  196. SAVE_NO = Nie
  197. NEXT = Nastepny
  198. BACK = Powrot
  199. EXIT = Wyjscie
  200.  
  201. MAIN_MENU_TITLE = [ZE] Glowne Menu
  202. MENU_EXTRABUY = Kup dodatkowe przedmioty
  203. MENU_WEAPONBUY = Kup bronie
  204. MENU_WEAPONBUY_RE_ENABLE = Wlacz ponowne kupowanie broni
  205.  
  206. BUY_EXTRAITEM = Dodatkowe przedmioty
  207. NO_EXTRA_ITEMS = !tAktulanie dodatkowe przedmioty nie sa dostepne!y.
  208.  
  209. ITEM_LIMIT = \w[\r%i\d|\r%i\w]
  210. ITEM_LEVEL = \w[\rPoziom\d: \r%i\w]
  211. ITEM_VIP = \w(\rVIP\w)
  212.  
  213. [bs]
  214. NO_ENOUGH_PLAYERS = !tNema dovoljno igraca!y. !tPotrebno!y: !t%i!y.
  215. RUN_NOTICE = Spremite se za bijeg. Bjezite nakon %i sekundi !
  216. ZOMBIE_RELEASE = Zombiji ce biti pusteni nakon: %i sekundi !
  217. READY_TO_RUN = !tDa li ste spremni!y? !gSRETNO !y:)
  218. ESCAPE_SUCCESS = Uspjesan bijeg!
  219. ESCAPE_FAIL = Neuspjesan bijeg!
  220. START_GAME = Pokretanje igre!
  221. INFECTION_NOTICE = %s je zarazio %s !
  222. SCORE_MESSAGE = Zombiji VS Ljudi^n %i --------- %i
  223. NO_WINNER = Bez pobjednika!
  224. RANK_INFO = [MAJSTOR PREZIVLJAVANJA]^n[1st] - %s^n[2nd] - %s^n[3rd] - %s
  225. RANK_INFO_LEADER = [Lider bijega]^n%s
  226.  
  227. COINS_INFO = !tVas trenutni broj kovanica!y: !g%i
  228. ESCAPE_SUCCESS_COINS = !tUspješan bijeg!y: !t+!g%i !tKovanica!y!
  229. HUMAN_INFECTED_COINS = !tZarazili ste covjeka!y: !t+!g%i !tKovanica!y!
  230.  
  231. ZOMBIE_SPEC = Gledate: %s^nHP: %i^nVrsta: Zombi^nBroj kovanica: %i
  232. ZOMBIE_SPEC_COMMAS = Gledate: %s^nHP: %s^nKlasa: Zombi^nBroj kovanica: %i
  233.  
  234. HUMAN_SPEC = Gledate: %s^nHP: %i^nVrsta: Covjek^nBroj kovanica: %i
  235. HUMAN_SPEC_COMMAS = Gledate: %s^nHP: %s^nVrsta: Covjek^nBroj kovanica: %i
  236.  
  237. HUMAN_SPEC_LEADER = Gledate: %s^nHP: %i^nKlasa: Lider bijega^nBroj kovanica: %i
  238. HUMAN_SPEC_COMMAS_LEADER = Gledate: %s^nHP: %s^nKlasa: Lider bijega^nBroj kovanica: %i
  239.  
  240. ZOMBIE = HP: %i | Vrsta: Zombi | Broj kovanica: %i
  241. ZOMBIE_COMMAS = HP: %s | Vrsta: Zombi | Broj kovanica: %i
  242.  
  243. HUMAN_LEADER = HP: %i | Klasa: Lider bijega | Broj kovanica: %i
  244. HUMAN_LEADER_COMMAS = HP: %s | Klasa: Lider bijega | Broj kovanica: %i
  245.  
  246. HUMAN = HP: %i | Vrsta: Covjek | Broj kovanica: %i
  247. HUMAN_COMMAS = HP: %s | Vrsta: Covjek | Broj kovanica: %i
  248.  
  249. BUY_ENABLED = !tPonovo ste aktivirali meni za odabir oruzja!y.
  250. RE_ENABLE_MENU = !tnapisite /enable ili pritisnite slovo M da aktivirate meni za odabir oruzja!y.
  251. ALREADY_BOUGHT = !tVec ste odabrali svoje oruzje!y!
  252. DEAD_CANT_BUY_WEAPON = !tNe mozete odabrati oruzje kada ste mrtvi!y.
  253. NO_BUY_ZOMBIE = !tNe mozete odabrati oruzje kada ste zombi!y.
  254. BUY_MENU_TIME_EXPIRED = !tVrijeme za odabir oruzja je isteklo!y.
  255. MENU_PRIMARY_TITLE = Osnovno oruzje
  256. MENU_SECONDARY_TITLE = Dodatno oruzje
  257. MENU_AUTOSELECT = Zapamtiti?
  258. SAVE_YES = Da
  259. SAVE_NO = Ne
  260. NEXT = Sljedece
  261. BACK = Povratak
  262. EXIT = Izlaz
  263.  
  264. MAIN_MENU_TITLE = [ZE] Glavni Meni
  265. MENU_EXTRABUY = Kupite dodatke
  266. MENU_WEAPONBUY = Odaberite oruzje
  267. MENU_WEAPONBUY_RE_ENABLE = Ponovo aktivirajte meni za odabir oruzja
  268.  
  269. BUY_EXTRAITEM = Dodaci
  270. NO_EXTRA_ITEMS = !tDodaci trenutno nisu dostupni!y.
  271.  
  272. ITEM_LIMIT = \w[\r%i\d|\r%i\w]
  273. ITEM_LEVEL = \w[\rLevel\d: \r%i\w]
  274. ITEM_VIP = \w(\rVIP\w)
:arrow: Sanctus Espiritus redeem us from our solemn hour
Sanctus Espiritus insanity is all around us :arrow:

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

#20

Post by Raheem » 3 years ago

Tell me what you edited, I can't find the line because the code you post is corrupted. What edits you made to this viewtopic.php?p=11325#p11325?
He who fails to plan is planning to fail

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 0 guests