I'm making a new pause cmd without amx_pause from admincmd
I tryed this:
PHP Code:
new pcvar_speed
public plugin_init()
{
register_clcmd("say !pause","CmdPause")
register_clcmd("say !unpause","CmdUnpause")
pcvar_speed = get_cvar_pointer("sv_maxspeed")
}
public ClcmdPause(id)
{
set_pcvar_num(MaxSpeed,0)
set_msg_block(get_user_msgid("RoundTime"),BLOCK_SET)
}
public ClcmdUnpause(id)
{
set_pcvar_num(MaxSpeed,320)
set_msg_block(get_user_msgid("RoundTime"),BLOCK_NOT)
}
But need sv_restart 1 for remove the clock block
I've added a solution:
Set a message for players saying:
When you say !unpause all your friends from your team is killed and 1 more score for your enemy team
This idea is good but i want to know if has other format for !pause command because + one score for the enemy team because i want pause the match is bad i think.
But why i want that? when i use the amx_pause from admincmd, i cant set a auto-timer for auto unpause, like csgo.
Can you guys help?
__________________