PDA

View Full Version : Mute when mapchooser vote


jungjunghoo
12-15-2011, 20:14
My server player often said "choose 1 1 1 1 " in misc or chat.
So, Other player can't play with various map.
If player all mute when votetime, I think so good in this problem.

Help me plz, Thakn you.

Bacardi
12-16-2011, 13:33
Here very lame code....
public OnMapVoteStarted()
{
ServerCommand("sm_mute @all");

CreateTimer(10.0, Timer_UnMute, _, TIMER_FLAG_NO_MAPCHANGE);
}

public Action:Timer_UnMute(Handle:timer)
{
ServerCommand("sm_unmute @all");
}
- Edit time how you like. Now 10 seconds when vote start.

Powerlord
12-16-2011, 15:15
Here very lame code....
public OnMapVoteStarted()
{
ServerCommand("sm_mute @all");

CreateTimer(10.0, Timer_UnMute, _, TIMER_FLAG_NO_MAPCHANGE);
}

public Action:Timer_UnMute(Handle:timer)
{
ServerCommand("sm_unmute @all");
}- Edit time how you like. Now 10 seconds when vote start.
Of course, that only works for MapChoosers that implement the OnMapVoteStarted forward. I know the stock MapChooser does, as does MapChooser Extended, but I'm not familiar enough with UMC to tell if it does.

jungjunghoo
12-18-2011, 06:48
Here very lame code....
public OnMapVoteStarted()
{
ServerCommand("sm_mute @all");

CreateTimer(10.0, Timer_UnMute, _, TIMER_FLAG_NO_MAPCHANGE);
}

public Action:Timer_UnMute(Handle:timer)
{
ServerCommand("sm_unmute @all");
}
- Edit time how you like. Now 10 seconds when vote start.

It's not working.
Actually, mute is work, but... Player can chatting or voice.

Bacardi
12-18-2011, 09:00
Then try
sm_silence
sm_unsilence