mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
Merge pull request #1258 from normalamron/pracfix
This commit is contained in:
commit
a5bec0403b
@ -2301,7 +2301,7 @@ public int Native_SetPracticeMode(Handle handler, int numParams)
|
|||||||
bool practice = view_as<bool>(GetNativeCell(2));
|
bool practice = view_as<bool>(GetNativeCell(2));
|
||||||
bool alert = view_as<bool>(GetNativeCell(3));
|
bool alert = view_as<bool>(GetNativeCell(3));
|
||||||
|
|
||||||
if(alert && practice && !gA_Timers[client].bPracticeMode && (!gB_HUD || (Shavit_GetHUDSettings(client) & HUD_NOPRACALERT) == 0))
|
if(alert && practice && !gA_Timers[client].bPracticeMode && (!gB_HUD || (Shavit_GetHUDSettings(client) & HUD_NOPRACALERT) == 0) && !Shavit_InsideZone(client, Zone_Start, -1))
|
||||||
{
|
{
|
||||||
Shavit_PrintToChat(client, "%T", "PracticeModeAlert", client, gS_ChatStrings.sWarning, gS_ChatStrings.sText);
|
Shavit_PrintToChat(client, "%T", "PracticeModeAlert", client, gS_ChatStrings.sWarning, gS_ChatStrings.sText);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user