Raised This Month: $ Target: $400
 0% 

show country chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 12-03-2011 , 13:06   Re: show country chat
Reply With Quote #9

Quote:
Originally Posted by ConnorMcLeod View Post
PHP Code:
/*    Formatright ɠ2010, ConnorMcLeod
 
    This plugin is free software;
    you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation.
 
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
    along with this plugin; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/
 
#include <amxmodx>
#include <geoip>
 
#define MAX_PLAYERS        32
 
new g_szCountry[MAX_PLAYERS+1][46]
 
#define VERSION "0.0.1"
#define PLUGIN "Country Chat"
 
public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")
    
register_message(get_user_msgid("SayText"), "Message_SayText")
}
 
public 
client_putinserver(id)
{
    static 
szIp[16]
    
get_user_ip(idszIpcharsmax(szIp), 1)
    
geoip_country(szIpg_szCountry[id], charsmax(g_szCountry[]))
}
 
public 
Message_SayText()
{
    new 
id get_msg_arg_int(1)
    new 
szChannel[40]
    
get_msg_arg_string(2szChannelcharsmaxszChannel ) )
    if( 
equal(szChannel"#Cstrike_Chat"13) )
    {
        if( 
equal(szChannel"#Cstrike_Chat_All") )
        {
            
format(szChannelcharsmax(szChannel), "^4[%s] ^3%%s1 ^1:  %%s2"g_szCountry[id])
        }
        else
        {
            
format(szChannelcharsmax(szChannel), "^4[%s] %s"g_szCountry[id], szChannel)
        }
        
set_msg_arg_string(2szChannel)
    }

Quote:
Originally Posted by Xpawn View Post
GooD job ConnorMcLeod

PHP Code:
/*    Formatright ɠ2010, ConnorMcLeod 
 
    This plugin is free software; 
    you can redistribute it and/or modify it under the terms of the 
    GNU General Public License as published by the Free Software Foundation. 
 
    This program is distributed in the hope that it will be useful, 
    but WITHOUT ANY WARRANTY; without even the implied warranty of 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    GNU General Public License for more details. 
 
    You should have received a copy of the GNU General Public License 
    along with this plugin; if not, write to the 
    Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
    Boston, MA 02111-1307, USA. 
*/ 
 
#include <amxmodx> 
#include <geoip> 
 
#define MAX_PLAYERS        32 
 
new g_szCountry[MAX_PLAYERS+1][46
 
#define VERSION "0.0.1" 
#define PLUGIN "Country Chat" 
 
public plugin_init() 

    
register_plugin(PLUGINVERSION"ConnorMcLeod"
    
register_message(get_user_msgid("SayText"), "Message_SayText"

 
public 
client_putinserver(id

    static 
szIp[16
    
get_user_ip(idszIpcharsmax(szIp), 1
    
geoip_country(szIpg_szCountry[id], charsmax(g_szCountry[])) 

 
public 
Message_SayText() 

    new 
id get_msg_arg_int(1
    new 
szChannel[40
    
get_msg_arg_string(2szChannelcharsmaxszChannel ) ) 
    if( 
equal(szChannel"#Cstrike_Chat"13) ) 
    { 
        if( 
equal(szChannel"#Cstrike_Chat_All") ) 
        { 
            
format(szChannelcharsmax(szChannel), "^4[%s] ^3%%s1 ^1:  %%s2"g_szCountry[id]) 
        } 
        else 
        { 
            
format(szChannelcharsmax(szChannel), "^4[%s] %s"g_szCountry[id], szChannel
        } 
        
set_msg_arg_string(2szChannel
    } 

LOL

Edit, the plugin is great ( Do not undestand a wrong way connor ( : ) but xpawn, you are just so funny : )
And stupid...

Last edited by .Dare Devil.; 12-03-2011 at 13:24.
.Dare Devil. 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 08:30.


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