AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Pause Format Help (https://forums.alliedmods.net/showthread.php?t=282398)

EFFx 05-05-2016 20:53

Pause Format Help
 
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?

EFFx 05-07-2016 20:25

Re: Pause Format Help
 
Bump

Anyone?


All times are GMT -4. The time now is 18:41.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.