mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-09 17:23:21 +00:00
l4d2_cres_control: Add back prevention
This commit is contained in:
parent
b90aba2658
commit
59e2aac5ed
2 changed files with 2 additions and 6 deletions
Binary file not shown.
|
@ -60,15 +60,11 @@ public Action Event_ButtonPress(const char[] output, int entity, int client, flo
|
||||||
float activatorFlow = L4D2Direct_GetFlowDistance(client);
|
float activatorFlow = L4D2Direct_GetFlowDistance(client);
|
||||||
|
|
||||||
if(!IsActivationAllowed(activatorFlow, 1500.0)) {
|
if(!IsActivationAllowed(activatorFlow, 1500.0)) {
|
||||||
PrintDebug("WOULD DENY BUTTON FOR %N", client);
|
ClientCommand(client, "play ui/menu_invalid.wav");
|
||||||
PrintDebug("WOULD DENY BUTTON FOR %N", client);
|
|
||||||
PrintDebug("WOULD DENY BUTTON FOR %N", client);
|
|
||||||
|
|
||||||
/*ClientCommand(client, "play ui/menu_invalid.wav");
|
|
||||||
PrintToChat(client, "Please wait for players to catch up.");
|
PrintToChat(client, "Please wait for players to catch up.");
|
||||||
AcceptEntityInput(entity, "Lock");
|
AcceptEntityInput(entity, "Lock");
|
||||||
RequestFrame(Frame_ResetButton, entity);
|
RequestFrame(Frame_ResetButton, entity);
|
||||||
return Plugin_Handled;*/
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
lastButtonPressTime = GetGameTime();
|
lastButtonPressTime = GetGameTime();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue