mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
try to let specs rtv until the cooldown triggers
This commit is contained in:
parent
5056917d78
commit
4c21dc96f9
@ -1804,12 +1804,17 @@ public Action Command_RockTheVote(int client, int args)
|
||||
{
|
||||
ReplyToCommand(client, "%sYou must be a higher rank to RTV!", g_cPrefix);
|
||||
}
|
||||
else if(GetClientTeam(client) == CS_TEAM_SPECTATOR && !g_cvRTVAllowSpectators.BoolValue)
|
||||
{
|
||||
ReplyToCommand(client, "%sSpectators have been blocked from RTVing", g_cPrefix);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (GetClientTeam(client) == CS_TEAM_SPECTATOR && !g_cvRTVAllowSpectators.BoolValue)
|
||||
{
|
||||
if ((GetEngineTime() - g_fSpecTimerStart[client]) >= g_cvRTVSpectatorCooldown.FloatValue)
|
||||
{
|
||||
ReplyToCommand(client, "%sSpectators have been blocked from RTVing", g_cPrefix);
|
||||
return Plugin_Handled;
|
||||
}
|
||||
}
|
||||
|
||||
if (g_fLastRtvTime[client] && (GetEngineTime() - g_fLastRtvTime[client]) < g_cvAntiSpam.FloatValue)
|
||||
{
|
||||
ReplyToCommand(client, "%sStop spamming", g_cPrefix);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user