ftt: Fix broken plugin

This commit is contained in:
Jackzie 2021-05-05 19:34:04 -05:00
parent 1fd32b9bb8
commit 32cea56800
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 2 additions and 15 deletions

Binary file not shown.

View file

@ -13,6 +13,7 @@
#include <left4dhooks>
#include <sceneprocessor>
#include <feedthetrolls>
#include <multicolors>
#undef REQUIRE_PLUGIN
#include <adminmenu>
@ -444,7 +445,7 @@ public Action Command_ApplyUser(int client, int args) {
GetCmdArg(2, arg2, sizeof(arg2));
GetCmdArg(3, arg3, sizeof(arg3));
bool silent = StrEqual(arg3, "silent", "hide", "quiet");
bool silent = StrEqual(arg3, "silent") || StrEqual(arg3, "quiet") || StrEqual(arg3, "mute");
int mode = StringToInt(arg2);
if(mode == 0) {
@ -816,20 +817,6 @@ int GetAutoPunishMode() {
}
}
stock void NotifyAllAdmins(const char[] format, any ...) {
char buffer[254];
VFormat(buffer, sizeof(buffer), format, 2);
for(int i = 1; i < MaxClients; i++) {
if(IsClientConnected(i) && IsClientInGame(i)) {
AdminId admin = GetUserAdmin(i);
if(admin != INVALID_ADMIN_ID && admin.ImmunityLevel > 0) {
PrintToChat(i, "%s", buffer);
}
}
}
PrintToServer("%s", buffer);
}
stock int GetPrimaryReserveAmmo(int client) {
int weapon = GetPlayerWeaponSlot(client, 0);
if(weapon > -1) {