Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Remvoe Player Connect Message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DarthMan
Veteran Member
Join Date: Aug 2011
Old 06-19-2017 , 15:31   Re: [ H3LP ] Remvoe Player Connect Message
Reply With Quote #6

Quote:
Originally Posted by EFFx View Post
Try that

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_message(get_user_msgid("TextMsg") , "block_message")
}
public 
block_message() 
{
    if(
get_msg_argtype(2) == ARG_STRING
    {
        new 
szValue[64]
        
get_msg_arg_string(szValue charsmax(szValue))
        if(
containi(szValue "has joined") != -1
        {
            return 
PLUGIN_HANDLED
        
}
    }
    return 
PLUGIN_CONTINUE

Works, ty

Last edited by DarthMan; 06-19-2017 at 15:45.
DarthMan is offline
 



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 22:49.


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