Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fixed Admin-Clantags
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo H committed Apr 25, 2019
1 parent 41d44e8 commit 4848dff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
7 changes: 4 additions & 3 deletions addons/sourcemod/scripting/surftimer/hooks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ public Action Event_OnPlayerSpawn(Handle event, const char[] name, bool dontBroa
g_WrcpStage[client] = 1;
g_Stage[0][client] = 1;
g_CurrentStage[client] = 1;
g_Stage[g_iClientInZone[client][2]][client] = 1;
g_bWrcpTimeractivated[client] = false;
g_Stage[g_iClientInZone[client][2]][client] = 1;
g_bWrcpTimeractivated[client] = false;
}

if (g_iCurrentStyle[client] == 4) // 4 low gravity
Expand Down Expand Up @@ -458,7 +458,8 @@ public Action Say_Hook(int client, const char[] command, int argc)
return Plugin_Handled;

// Chat Trigger?
if ((IsChatTrigger() && sText[0] == '/') || (sText[0] == '@' && (GetUserFlagBits(client) & ADMFLAG_ROOT || GetUserFlagBits(client) & ADMFLAG_GENERIC)))
if ((IsChatTrigger() && sText[0] == '/'))
//if ((IsChatTrigger() && sText[0] == '/') || (sText[0] == '@' && (GetUserFlagBits(client) & ADMFLAG_ROOT || GetUserFlagBits(client) & ADMFLAG_GENERIC)))
{
return Plugin_Continue;
}
Expand Down
12 changes: 8 additions & 4 deletions addons/sourcemod/scripting/surftimer/timer.sp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ public Action CKTimer2(Handle timer)
case 60:CPrintToChatAll("%t", "TimeleftSeconds", g_szChatPrefix, g_szMapName, timeleft);
case 30:CPrintToChatAll("%t", "TimeleftSeconds", g_szChatPrefix, g_szMapName, timeleft);
case 10:CPrintToChatAll("%t", "TimeleftSeconds", g_szChatPrefix, g_szMapName, timeleft);
//add ~~~MAP ENDING~~~
//maybe switch to 3,2,1,0 not 0,-1,-2,-3
case -3:
{
if (!g_bRoundEnd)
Expand Down Expand Up @@ -377,15 +379,17 @@ public Action SetClanTag(Handle timer, any client)
ReplaceString(tag, sizeof(tag), "{style}", szStyle);
}
else
ReplaceString(tag, sizeof(tag), "{style}", "");
ReplaceString(tag, sizeof(tag), "{style}", "");

char szTabRank[1024];
char szTabRank[1024], szTabClanTag[1024];
Format(szTabRank, 1024, "%s", g_pr_chat_coloredrank[client]);
CRemoveColors(szTabRank, 1024);
Format(szTabClanTag, 1024, "%s | %s", g_szCountryCode[client], szTabRank); //temp. disabled due to

CS_SetClientClanTag(client, szTabRank);
if ((GetUserFlagBits(client) & ADMFLAG_ROOT || GetUserFlagBits(client) & ADMFLAG_GENERIC)) CS_SetClientClanTag(client, szTabRank);
else CS_SetClientClanTag(client, szTabClanTag);
}
else
else //we don't use it. What you think about it @totles :) ?
{
if (GetConVarBool(g_hPointSystem))
{
Expand Down

0 comments on commit 4848dff

Please sign in to comment.