mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
fix 'enabled' SSJ setting not working
This commit is contained in:
parent
7d3bf54a7d
commit
b2460919e9
@ -1222,7 +1222,7 @@ public void Player_Jump(Event event, const char[] name, bool dB)
|
||||
continue;
|
||||
}
|
||||
|
||||
if(gI_SSJSettings[i] & SSJ_ENABLED && IsValidClient(i) && IsClientObserver(i))
|
||||
if(IsValidClient(i) && IsClientObserver(i))
|
||||
{
|
||||
int iObserverMode = GetEntProp(i, Prop_Send, "m_iObserverMode");
|
||||
|
||||
@ -1242,6 +1242,11 @@ public void Player_Jump(Event event, const char[] name, bool dB)
|
||||
|
||||
public void PrintSSJ(int client, int target, float gain)
|
||||
{
|
||||
if(!(gI_SSJSettings[client] & SSJ_ENABLED))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
char[] sMessage = new char[256];
|
||||
FormatEx(sMessage, 256, "Jump: \x04%d\x01", gI_SSJJumps[target]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user