Raised This Month: $ Target: $400
 0% 

Help blocking a message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-10-2018 , 07:14   Re: Help blocking a message
Reply With Quote #1

Can you try?

PHP Code:
#include <amxmodx>

new TextMsg;

public 
plugin_precache()
{
    
TextMsg get_user_msgid("TextMsg");
}

public 
plugin_init() {
    
register_plugin("Block Msg""1.0""PurposeLess");

    
register_message(TextMsg"message_TextMsg");
}

public 
message_TextMsg(msgidmsgdestid)
{
    static const 
message_specnorip[] = "#Cstrike_TitlesTXT_Spec_No_PIP";

    new 
msg[15];
    
get_msg_arg_string(2msgcharsmax(msg));

    return (
equali(msgmessage_specnorip)) ? 1:0;

__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx is offline
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