Author
|
Message
|
Member
Join Date: Jun 2020
Location: Romania
|
08-14-2020
, 06:21
[CSGO][PAID] Plugin for any server that there is
|
#1
|
Hello everyone. Im here to ask for a plugin that could be useful for every awp server or any server that there is .
So basically when theres one alive in a team (CT/T) Auto mute the DEAD people until next round and also a hint message for the dead ones like <font color='FF0000'> YOU ARE MUTED UNTIL THE NEXT ROUND</font> .
So that the person trying to clutch can hear the steps.
If you can do this please reply here asap
I would love you to see what i tried so far but im not that good as a coder and it doesnt work that well (Bcz i did this with a friend just trying coz we we re bored, plz dont make fun of this just because we have 0 exp)
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#define PLUGIN_VERSION "1.0"
#pragma semicolon 1
#pragma newdecls required
public void OnPluginStart()
{
HookEvent("player_death", Event_OnPlayerDeath);
HookEvent("round_end", RoundEnd, EventHookMode_Post);
}
public void Event_OnPlayerDeath(Event event, const char[] name, bool bDb)
{
int client = GetClientOfUserId(event.GetInt("userid"));
{
ServerCommand("sv_deadtalk 0");
PrintHintTextToAll("--<font color='#FF0000'>[1VX] ClutchTime</font>, Everyone is<font color='#FF0000'> MUTED</font>--");
}
if(IsClientInGame(client)) {
if(GetTeamClientCount(CS_TEAM_T) == 1 || GetTeamClientCount(CS_TEAM_CT) == 1) {
GetTeamClientCount(CS_TEAM_T), GetTeamClientCount(CS_TEAM_CT);
}
}
}
public Action RoundEnd(Handle event, const char[] name, bool dontBroadcast)
{
ServerCommand("sv_deadtalk 1");
}
__________________
Last edited by G0dFulL.; 08-15-2020 at 09:30.
|
|
|
|