View Single Post
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-10-2018 , 10:06   Re: Help blocking a message
Reply With Quote #6

Code:
#include <amxmodx>

new g_TextMsg;

public plugin_init()
{
	register_plugin("Test","0.1","ME");
	
	g_TextMsg = get_user_msgid("TextMsg");
	register_event("TextMsg","TextMsg","a","2=#Cstrike_TitlesTXT_Spec_No_PIP");
}

public TextMsg()
{
	set_msg_block(g_TextMsg,BLOCK_ONCE);
	return PLUGIN_HANDLED;
}
Im suspect that first plugin works, also test second version

EDIT: First version will work fine with #Game_will_restart_in as parameter!

You also can disable picture in picture mode with a server variable i guess.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 07-10-2018 at 10:11.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY