SprayManager: add long spray for vips
This commit is contained in:
parent
86ded5f01b
commit
9f9ad1016a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user