Raised This Month: $ Target: $400
 0% 

[REQ] Simple Chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-11-2012 , 08:35   Re: [REQ] Simple Chat
Reply With Quote #2

PHP Code:
#include <amxmodx>

#define VERSION "0.0.1"
#define PLUGIN "All Chat"

new gmsgSayText

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")

    
gmsgSayText get_user_msgid("SayText")

    
register_clcmd("say""Host_Say" /* , 0 */ )
    
register_clcmd("say_team""Host_Say" /* , 1 */ )
}

public 
Host_Say(id /*, teamonly*/ )
{
    new 
said[192]
    
read_args(saidcharsmax(said))
    
remove_quotes(said)
    new 
civalid
    
while( (said[i++]) != EOS )
    {
        if( 
!= ' ' )
        {
            
message_begin(MSG_BROADCASTgmsgSayText)
            {
                
write_byte(id)
                
write_string("#Cstrike_Chat_All")
                
write_string("")
                
write_string(said)
            }
            
message_end()

            return 
PLUGIN_HANDLED_MAIN
        
}
    }
    return 
PLUGIN_HANDLED

__________________
- tired and retired -

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


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