Raised This Month: $ Target: $400
 0% 

Help blocking a message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
^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
 



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