diff --git a/scripting/shavit-core.sp b/scripting/shavit-core.sp index 0f7697b4..1667d14d 100644 --- a/scripting/shavit-core.sp +++ b/scripting/shavit-core.sp @@ -891,8 +891,9 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3 } bool bOnLadder = (GetEntityMoveType(client) == MOVETYPE_LADDER); + bool bInStart = Shavit_InsideZone(client, Zone_Start); - if(gCV_LeftRight.BoolValue && gB_TimerEnabled[client] && (!gB_Zones || !Shavit_InsideZone(client, Zone_Start) && (buttons & IN_LEFT || buttons & IN_RIGHT))) + if(gCV_LeftRight.BoolValue && gB_TimerEnabled[client] && (!gB_Zones || !bInStart && (buttons & IN_LEFT || buttons & IN_RIGHT))) { Shavit_StopTimer(client); Shavit_PrintToChat(client, "I've stopped your timer for using +left/+right. No cheating!"); @@ -945,7 +946,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3 } } - if(Shavit_InsideZone(client, Zone_Start) && gCV_BlockPreJump.BoolValue && !(gI_StyleProperties[gBS_Style[client]] & STYLE_PRESPEED)) + if(bInStart && gCV_BlockPreJump.BoolValue && !(gI_StyleProperties[gBS_Style[client]] & STYLE_PRESPEED)) { if(vel[2] > 0 || buttons & IN_JUMP) {