I just someone, Anyone!!! to make this plugin silent please please!
PHP Code:
#include <sdktools>
#include <sdktools_voice>
new bool:mute;
public OnPluginStart()
{
LogMessage("[SM] Leetbix | 1337 Mute Terrorist System Started");
HookEvent("player_team", EventPlayerTeam);
HookEvent("player_spawn", EventPlayerSpawn);
HookEvent("round_start", EventRoundStart
}
public EventRoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
ServerCommand("sm_mute @t");
PrintToChatAll("[SM] Terrorists Muted For 60 Seconds");
CreateTimer(60.0, Unmuted_Terrorists);
mute = true;
}
public Action:Unmuted_Terrorists(Handle:timer)
{
ServerCommand("sm_unmute @t");
PrintToChatAll("[SM] Terrorists Have Been Unmuted");
mute = false;
}
public EventPlayerTeam(Handle:event,const String:name[],bool:dontBroadcast)
{
if (mute == true)
{
new client = GetClientOfUserId(GetEventInt(event,"userid"));
new team = GetEventInt(event, "team");
if (team == 2)
{
ServerCommand("sm_mute @t")
}
}
}
I don't want to change the plugin as it is perfect!, I just want someone to add a silent command so this plugin will not make any messages like [sm] Admin muted terrorists. PLEASE HELP! I only want the plugin to make messages where i wrote PrintChatToAll. Is there any command to add in the onpluginstart?
i do not want to edit CFG files, just this plugin i want to modify please please please help! Is there any command?