Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- char szClantag[48];
- if (GetConVarBool(g_hCvar_DisplayEnabled))
- {
- if (g_bConfigLoaded && !g_bRoundTransition)
- {
- g_iStoreIndex = 0;
- //char sBuffer_teamtext[5][250];
- for (int index = 0; index < entArraySize; index++)
- {
- if (entArray[index][ent_hud] && entArray[index][ent_ownerid] != -1)
- {
- // char //sBuffer_//temp[128];
- if (GetConVarBool(g_hCvar_DisplayCooldowns))
- {
- if (entArray[index][ent_mode] == 2)
- {
- if (entArray[index][ent_cooldowntime] > 0)
- {
- Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%d]: %N\n", entArray[index][ent_shortname], entArray[index][ent_cooldowntime], entArray[index][ent_ownerid]);
- IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
- Format(szClantag, sizeof(szClantag), "%s[%i]: ", entArray[index][ent_shortname], entArray[index][ent_cooldowntime]);
- CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
- strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
- hasMsg[entArray[index][ent_ownerid]] = true;
- FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
- g_iStoreIndex++;
- }
- else
- {
- Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%s]: %N\n", entArray[index][ent_shortname], "R", entArray[index][ent_ownerid]);
- IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
- Format(szClantag, sizeof(szClantag), "%s[R]: ", entArray[index][ent_shortname]);
- CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
- strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
- hasMsg[entArray[index][ent_ownerid]] = true;
- FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
- g_iStoreIndex++;
- }
- }
- else if (entArray[index][ent_mode] == 3)
- {
- if (entArray[index][ent_uses] < entArray[index][ent_maxuses])
- {
- 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]);
- IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
- Format(szClantag, sizeof(szClantag), "%s[%i/%i]: ", entArray[index][ent_shortname], entArray[index][ent_uses], entArray[index][ent_maxuses]);
- CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
- strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
- hasMsg[entArray[index][ent_ownerid]] = true;
- FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
- g_iStoreIndex++;
- }
- else
- {
- Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%s]: %N\n", entArray[index][ent_shortname], "D", entArray[index][ent_ownerid]);
- IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
- Format(szClantag, sizeof(szClantag), "%s[D]: ", entArray[index][ent_shortname]);
- CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
- strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
- hasMsg[entArray[index][ent_ownerid]] = true;
- FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
- g_iStoreIndex++;
- }
- }
- else if (entArray[index][ent_mode] == 4)
- {
- if (entArray[index][ent_cooldowntime] > 0)
- {
- Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%d]: %N\n", entArray[index][ent_shortname], entArray[index][ent_cooldowntime], entArray[index][ent_ownerid]);
- IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
- Format(szClantag, sizeof(szClantag), "%s[%i]: ", entArray[index][ent_shortname], entArray[index][ent_cooldowntime]);
- CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
- strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
- hasMsg[entArray[index][ent_ownerid]] = true;
- FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
- g_iStoreIndex++;
- }
- else
- {
- if (entArray[index][ent_uses] < entArray[index][ent_maxuses])
- {
- 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]);
- IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
- Format(szClantag, sizeof(szClantag), "%s[%i/%i]: ", entArray[index][ent_shortname], entArray[index][ent_uses], entArray[index][ent_maxuses]);
- CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
- strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
- hasMsg[entArray[index][ent_ownerid]] = true;
- FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
- g_iStoreIndex++;
- }
- else
- {
- Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%s]: %N\n", entArray[index][ent_shortname], "D", entArray[index][ent_ownerid]);
- IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
- Format(szClantag, sizeof(szClantag), "%s[D]: ", entArray[index][ent_shortname]);
- CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
- strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
- hasMsg[entArray[index][ent_ownerid]] = true;
- FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
- g_iStoreIndex++;
- }
- }
- }
- else if (entArray[index][ent_mode] == 5)
- {
- if (entArray[index][ent_cooldowntime] > 0)
- {
- Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%d]: %N\n", entArray[index][ent_shortname], entArray[index][ent_cooldowntime], entArray[index][ent_ownerid]);
- IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
- Format(szClantag, sizeof(szClantag), "%s[%i]: ", entArray[index][ent_shortname], entArray[index][ent_cooldowntime]);
- CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
- strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
- hasMsg[entArray[index][ent_ownerid]] = true;
- FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
- g_iStoreIndex++;
- }
- else
- {
- 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]);
- IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
- Format(szClantag, sizeof(szClantag), "%s[%i/%i]: ", entArray[index][ent_shortname], entArray[index][ent_uses], entArray[index][ent_maxuses]);
- CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
- strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
- hasMsg[entArray[index][ent_ownerid]] = true;
- FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
- g_iStoreIndex++;
- }
- }
- else
- {
- Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s[%s]: %N\n", entArray[index][ent_shortname], "N/A", entArray[index][ent_ownerid]);
- IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
- Format(szClantag, sizeof(szClantag), "%s: ", entArray[index][ent_shortname]);
- CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
- strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
- hasMsg[entArray[index][ent_ownerid]] = true;
- FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
- g_iStoreIndex++;
- }
- }
- else
- {
- Format(g_sEntMsg[g_iStoreIndex], sizeof(g_sEntMsg[]), "%s: %N\n", entArray[index][ent_shortname], entArray[index][ent_ownerid]);
- IntToString(index, g_sEntIndex[g_iStoreIndex], sizeof(g_sEntIndex[]));
- Format(szClantag, sizeof(szClantag), "%s: ", entArray[index][ent_shortname]);
- CS_SetClientClanTag(entArray[index][ent_ownerid], szClantag);
- strcopy(dkClantag[entArray[index][ent_ownerid]], sizeof(dkClantag[]), szClantag);
- hasMsg[entArray[index][ent_ownerid]] = true;
- FormatEx(dkMsg[entArray[index][ent_ownerid]], sizeof(dkMsg[]), "%s", g_sEntMsg[g_iStoreIndex]);
- g_iStoreIndex++;
- }
- // if (strlen(g_sEntIndex[g_iStoreIndex]) + strlen(sBuffer_teamtext[GetClientTeam(entArray[index][ent_ownerid])]) <= sizeof(sBuffer_teamtext[]))
- // {
- // StrCat(sBuffer_teamtext[GetClientTeam(entArray[index][ent_ownerid])], sizeof(sBuffer_teamtext[]), g_sEntIndex[g_iStoreIndex]);
- // }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement