Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.46 KB | None | 0 0
  1. {
  2. char szClantag[48];
  3. if (GetConVarBool(g_hCvar_DisplayEnabled))
  4. {
  5. if (g_bConfigLoaded && !g_bRoundTransition)
  6. {
  7. g_iStoreIndex = 0;
  8. //char sBuffer_teamtext[5][250];
  9.  
  10. for (int index = 0; index < entArraySize; index++)
  11. {
  12. if (entArray[index][ent_hud] && entArray[index][ent_ownerid] != -1)
  13. {
  14. // char //sBuffer_//temp[128];
  15.  
  16. if (GetConVarBool(g_hCvar_DisplayCooldowns))
  17. {
  18. if (entArray[index][ent_mode] == 2)
  19. {
  20. if (entArray[index][ent_cooldowntime] > 0)
  21. {
  22. Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%d]: %N\n", entArray[index][ent_shortname], entArray[index][ent_cooldowntime], entArray[index][ent_ownerid]);
  23. IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
  24.  
  25. Format(szClantag, sizeof(szClantag), "%s[%i]: ", entArray[index][ent_shortname], entArray[index][ent_cooldowntime]);
  26. CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
  27. strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
  28.  
  29. hasMsg[entArray[index][ent_ownerid]] = true;
  30. FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
  31. g_iStoreIndex++;
  32. }
  33. else
  34. {
  35. Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%s]: %N\n", entArray[index][ent_shortname], "R", entArray[index][ent_ownerid]);
  36. IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
  37.  
  38. Format(szClantag, sizeof(szClantag), "%s[R]: ", entArray[index][ent_shortname]);
  39. CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
  40. strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
  41.  
  42. hasMsg[entArray[index][ent_ownerid]] = true;
  43. FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
  44. g_iStoreIndex++;
  45. }
  46. }
  47. else if (entArray[index][ent_mode] == 3)
  48. {
  49. if (entArray[index][ent_uses] < entArray[index][ent_maxuses])
  50. {
  51. Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%d/%d]: %N\n", entArray[index][ent_shortname], entArray[index][ent_uses], entArray[index][ent_maxuses], entArray[index][ent_ownerid]);
  52. IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
  53.  
  54. Format(szClantag, sizeof(szClantag), "%s[%i/%i]: ", entArray[index][ent_shortname], entArray[index][ent_uses], entArray[index][ent_maxuses]);
  55. CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
  56. strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
  57.  
  58. hasMsg[entArray[index][ent_ownerid]] = true;
  59. FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
  60. g_iStoreIndex++;
  61. }
  62. else
  63. {
  64. Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%s]: %N\n", entArray[index][ent_shortname], "D", entArray[index][ent_ownerid]);
  65. IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
  66.  
  67. Format(szClantag, sizeof(szClantag), "%s[D]: ", entArray[index][ent_shortname]);
  68. CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
  69. strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
  70.  
  71. hasMsg[entArray[index][ent_ownerid]] = true;
  72. FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
  73. g_iStoreIndex++;
  74. }
  75. }
  76. else if (entArray[index][ent_mode] == 4)
  77. {
  78. if (entArray[index][ent_cooldowntime] > 0)
  79. {
  80. Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%d]: %N\n", entArray[index][ent_shortname], entArray[index][ent_cooldowntime], entArray[index][ent_ownerid]);
  81. IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
  82.  
  83. Format(szClantag, sizeof(szClantag), "%s[%i]: ", entArray[index][ent_shortname], entArray[index][ent_cooldowntime]);
  84. CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
  85. strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
  86.  
  87. hasMsg[entArray[index][ent_ownerid]] = true;
  88. FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
  89. g_iStoreIndex++;
  90. }
  91. else
  92. {
  93. if (entArray[index][ent_uses] < entArray[index][ent_maxuses])
  94. {
  95. Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%d/%d]: %N\n", entArray[index][ent_shortname], entArray[index][ent_uses], entArray[index][ent_maxuses], entArray[index][ent_ownerid]);
  96. IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
  97.  
  98. Format(szClantag, sizeof(szClantag), "%s[%i/%i]: ", entArray[index][ent_shortname], entArray[index][ent_uses], entArray[index][ent_maxuses]);
  99. CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
  100. strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
  101.  
  102. hasMsg[entArray[index][ent_ownerid]] = true;
  103. FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
  104. g_iStoreIndex++;
  105. }
  106. else
  107. {
  108. Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%s]: %N\n", entArray[index][ent_shortname], "D", entArray[index][ent_ownerid]);
  109. IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
  110.  
  111. Format(szClantag, sizeof(szClantag), "%s[D]: ", entArray[index][ent_shortname]);
  112. CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
  113. strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
  114.  
  115. hasMsg[entArray[index][ent_ownerid]] = true;
  116. FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
  117. g_iStoreIndex++;
  118. }
  119. }
  120. }
  121. else if (entArray[index][ent_mode] == 5)
  122. {
  123. if (entArray[index][ent_cooldowntime] > 0)
  124. {
  125. Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%d]: %N\n", entArray[index][ent_shortname], entArray[index][ent_cooldowntime], entArray[index][ent_ownerid]);
  126. IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
  127.  
  128. Format(szClantag, sizeof(szClantag), "%s[%i]: ", entArray[index][ent_shortname], entArray[index][ent_cooldowntime]);
  129. CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
  130. strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
  131.  
  132. hasMsg[entArray[index][ent_ownerid]] = true;
  133. FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
  134. g_iStoreIndex++;
  135. }
  136. else
  137. {
  138. Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%d/%d]: %N\n", entArray[index][ent_shortname], entArray[index][ent_uses], entArray[index][ent_maxuses], entArray[index][ent_ownerid]);
  139. IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
  140.  
  141. Format(szClantag, sizeof(szClantag), "%s[%i/%i]: ", entArray[index][ent_shortname], entArray[index][ent_uses], entArray[index][ent_maxuses]);
  142. CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
  143. strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
  144.  
  145. hasMsg[entArray[index][ent_ownerid]] = true;
  146. FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
  147. g_iStoreIndex++;
  148. }
  149. }
  150. else
  151. {
  152. Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%s]: %N\n", entArray[index][ent_shortname], "N/A", entArray[index][ent_ownerid]);
  153. IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
  154.  
  155. Format(szClantag, sizeof(szClantag), "%s: ", entArray[index][ent_shortname]);
  156. CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
  157. strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
  158.  
  159. hasMsg[entArray[index][ent_ownerid]] = true;
  160. FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
  161. g_iStoreIndex++;
  162. }
  163. }
  164. else
  165. {
  166. Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s: %N\n", entArray[index][ent_shortname], entArray[index][ent_ownerid]);
  167. IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
  168.  
  169. Format(szClantag, sizeof(szClantag), "%s: ", entArray[index][ent_shortname]);
  170. CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
  171. strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
  172.  
  173. hasMsg[entArray[index][ent_ownerid]] = true;
  174. FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
  175. g_iStoreIndex++;
  176. }
  177.  
  178. // if (strlen(g_sEntIndex[g_iStoreIndex]) + strlen(sBuffer_teamtext[GetClientTeam(entArray[index][ent_ownerid])]) <= sizeof(sBuffer_teamtext[]))
  179. // {
  180. // StrCat(sBuffer_teamtext[GetClientTeam(entArray[index][ent_ownerid])], sizeof(sBuffer_teamtext[]), g_sEntIndex[g_iStoreIndex]);
  181. // }
  182. }
  183. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement