diff --git a/SprayManager/scripting/SprayManager.sp b/SprayManager/scripting/SprayManager.sp index 2109a268..54abffab 100644 --- a/SprayManager/scripting/SprayManager.sp +++ b/SprayManager/scripting/SprayManager.sp @@ -339,6 +339,22 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse) return Plugin_Changed; } } + else if (CheckCommandAccess(client, "", ADMFLAG_CUSTOM1)) + { + if (!g_bSprayBanned[client] && !g_bSprayHashBanned[client] && g_fNextSprayTime[client] <= GetGameTime()) + { + //if (IsPlayerAlive(client)) + //if (TracePlayerAnglesRanged(client, 128.0)) + //return Plugin_Continue; + + ForceSpray(client, client, false); + g_fNextSprayTime[client] = GetGameTime() + (g_cvarDecalFrequency.FloatValue / 2); + + impulse = 0; //wow + + return Plugin_Changed; + } + } return Plugin_Continue; }