crescendo control: Add flag bypass

This commit is contained in:
Jackzie 2021-06-18 23:49:16 -05:00
parent 62788435d4
commit b62a044d44
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View file

@ -84,6 +84,9 @@ public Action Timer_GetFlows(Handle h) {
public Action Event_ButtonPress(const char[] output, int entity, int client, float delay) { public Action Event_ButtonPress(const char[] output, int entity, int client, float delay) {
if(hEnabled.BoolValue && client > 0 && client <= MaxClients) { if(hEnabled.BoolValue && client > 0 && client <= MaxClients) {
AdminId admin = GetUserAdmin(client);
if(admin != INVALID_ADMIN_ID && admin.HasFlag(Admin_Custom1)) return Plugin_Continue;
if(panicStarted) { if(panicStarted) {
panicStarted = false; panicStarted = false;
return Plugin_Continue; return Plugin_Continue;