Raised This Month: $ Target: $400
 0% 

Help blocking a message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-10-2018 , 10:06   Re: Help blocking a message
Reply With Quote #1

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
Reply



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 12:16.


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