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

Code:
#include <amxmodx>

public plugin_init()
{
	register_plugin("Test Block","1.0","ME");

	register_message(get_user_msgid("TextMsg"),"TextMsg");
}

public TextMsg(Msg,Dest,id)
{
	new Message[32]; // #Cstrike_TitlesTXT_Spec_No_PIP has 31 in size, not 15
	get_msg_arg_string(2,Message,charsmax(Message));

	server_print(Message);

	return (containi(Message,"Spec_No_PIP")) ? PLUGIN_HANDLED : PLUGIN_CONTINUE;
}
Try this and see what is returning into server_console when try to spec picture
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY