Skip to content

Commit bef5efc

Browse files
committed
fix
1 parent 2f23003 commit bef5efc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

addons/sourcemod/scripting/FunModes.sp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,12 @@ public void OnMapEnd()
345345

346346
public void OnClientPutInServer(int client)
347347
{
348-
if ((!g_bIsDamageGameOn && !g_bIsVIPModeOn)) //|| IsFakeClient(client) || IsClientSourceTV(client))
348+
if (!g_bIsDamageGameOn && !g_bIsVIPModeOn)
349349
return;
350350

351+
if (IsFakeClient(client))
352+
return;
353+
351354
SDKHook(client, SDKHook_OnTakeDamagePost, OnTakeDamagePost);
352355
}
353356

addons/sourcemod/scripting/Fun_Modes/DamageGame.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Action Cmd_DamageGame(int client, int args)
3939
g_bIsDamageGameOn = !g_bIsDamageGameOn;
4040
CPrintToChatAll("%s Damage Game is now {olive}%s.", DamageGame_Tag, (g_bIsDamageGameOn) ? "Enabled" : "Disabled");
4141

42-
if(g_bIsDamageGameOn)
42+
if (g_bIsDamageGameOn)
4343
{
4444
/* Events Hooks */
4545
FunModes_HookEvent(g_bEvent_RoundStart, "round_start", Event_RoundStart);

0 commit comments

Comments
 (0)