Raised This Month: $ Target: $400
 0% 

Block "* PlayerName has changed to team 'red'" message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-04-2010 , 16:50   Re: Block "* PlayerName has changed to team 'red'" message
Reply With Quote #1

Try this :

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define VERSION "0.0.1"

new gmsgSayText
new g_iMhSayText

public plugin_init()
{
    
register_plugin("name"VERSION"ConnorMcLeod")

    
register_forward(FM_ClientUserInfoChanged"ClientUserInfoChanged")

    
gmsgSayText get_user_msgid("SayText")
}

public 
ClientUserInfoChanged()
{
    
g_iMhSayText register_message(gmsgSayText"Message_SayText")
}

public 
client_infochanged()
{
    
unregister_message(gmsgSayTextg_iMhSayText)
}

public 
Message_SayText(iMsgIdiMsgDestid)
{
    if( 
iMsgDest == MSG_ALL )
    {
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 03:45.


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