mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 19:13:20 +00:00
ftt: Fix broken plugin
This commit is contained in:
parent
1fd32b9bb8
commit
32cea56800
2 changed files with 2 additions and 15 deletions
Binary file not shown.
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue