Raised This Month: $ Target: $400
 0% 

Pause Format Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-05-2016 , 20:53   Pause Format Help
Reply With Quote #1

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?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 05-05-2016 at 20:53.
EFFx is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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