SprayManager: add long spray for vips

This commit is contained in:
Dogan 2019-08-14 22:03:58 +02:00
parent 86ded5f01b
commit 9f9ad1016a

View File

@ -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;
}