Raised This Month: $ Target: $400
 0% 

req -Show Country in Chat


Post New Thread Reply   
 
Thread Tools Display Modes
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-15-2009 , 13:42   Re: req -Show Country in Chat
Reply With Quote #31

Quote:
Originally Posted by beckham9224 View Post
whats the difference?

PHP Code:

bool
:IsValidMessage(const said[])
{
    new 
len strlen(said);
    if( !
len ) return false;
    
    for( new 
0leni++ )
    {
        if( 
said[i] != ' ' )
        {
            return 
true;
        }
    }
    
    return 
false;

__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
beckham9224
Senior Member
Join Date: Feb 2009
Location: Asia, Mongolia
Old 03-15-2009 , 13:59   Re: req -Show Country in Chat
Reply With Quote #32

im teh noob cant understand any codes..
beckham9224 is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 03-16-2009 , 14:43   Re: req -Show Country in Chat
Reply With Quote #33

The plugin has a fix that if you say nothing (say "" or just press y+enter) it doesn't send the message to the players
__________________
IneedHelp is offline
Glist3r
Senior Member
Join Date: Feb 2008
Old 10-29-2009 , 19:20   Re: req -Show Country in Chat
Reply With Quote #34

If I put this on my server , some commands does not work anymore:
trail number color
bet t/ct all
Why?
__________________
Help me with these requests, please!
http://forums.alliedmods.net/showthread.php?t=85287

Glist3r is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-29-2009 , 23:29   Re: req -Show Country in Chat
Reply With Quote #35

Put the plugin at the bottom of the plugins.ini
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-30-2009 , 04:36   Re: req -Show Country in Chat
Reply With Quote #36

@ Exolent

Can I use some of your code in my plugin?

http://forums.alliedmods.net/showthread.php?t=104719

P.S: I had this idea a lot of time ago :E
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-30-2009 , 05:32   Re: req -Show Country in Chat
Reply With Quote #37

I will try write this code
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Old 10-30-2009, 05:46
xPaw
This message has been deleted by xPaw.
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-30-2009 , 08:52   Re: req -Show Country in Chat
Reply With Quote #38

@ Exolent
i used you code ,can be load, but there was nothing changed !!
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-30-2009 , 09:02   Re: req -Show Country in Chat
Reply With Quote #39

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <geoip>
#define PLUGIN_NAME "country chat"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "K.K.Lv"
new players[33][32]
new 
num[33]
public 
plugin_init()
{
 
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
 
 
register_clcmd("say""hook_say")
 
register_clcmd("say_team""hook_team_say")
}
public 
hook_say(id)
{
 new 
chat[192]
 
read_args(chat191)
 
remove_quotes(chat)
 
 new 
name[32], userip[16], usercountry[46], message[256]
 
get_user_name(idname31)
 
get_user_ip(iduserip151)
 
geoip_country(useripusercountry45)
 
 if(
equal(chat""))
  return 
PLUGIN_HANDLED
 
 
if (is_user_alive(id))
 {
  
format(message255"^x04[%s]^x03%s^x01: %s"usercountrynamechat)
  
color_chat(0idmessage)
 }
 else 
 {
  
format(message255"^x04[%s]^x01*DEAD*^x03%s^x01: %s"usercountry,  namechat)
  
color_chat(0idmessage)
 }
 return 
PLUGIN_HANDLED
}
public 
hook_team_say(id)
{
 new 
chat[192]
 
read_args(chat191)
 
remove_quotes(chat)
 
 new 
name[32], userip[16], usercountry[46], message[256], team[32]
 
get_user_name(idname31)
 
get_user_ip(iduserip151)
 
geoip_country(useripusercountry45)
 
 if(
equal(chat""))
  return 
PLUGIN_HANDLED
 
 
new CsTeams:userteam =cs_get_user_team(id)
 if (
userteam == CS_TEAM_T)
 {
  
get_players(players[id], num[id], _"TERRORIST")
  
team "(Terrorist)"
 
}
 else if (
userteam == CS_TEAM_CT)
 {
  
get_players(players[id], num[id], _"CT")
  
team "(Counter-Terrorist)"
 
}
 else
 {
  
get_players(players[id], num[id], _"SPECTATOR")
  
team "(Spectator)"
 
}
 for (new 
0num[id]; ++a)
 {
  new 
players[id][a]
  if (
is_user_alive(id))
  {
   
format(message255"^x04[%s]^x01%s^x03%s^x01: %s"usercountryteamnamechat)
   
color_chat(iidmessage)
  }
  else 
  {
   
format(message255"^x04[%s]^x01*DEAD*%s^x03%s^x01: %s"usercountryteamnamechat)
   
color_chat(iidmessage)
  }
 }
 return 
PLUGIN_HANDLED
}
public 
color_chat(playeridcoloridmessage[])
{
 
message_begin(playerid?MSG_ONE:MSG_ALLget_user_msgid("SayText"), {000}, playerid)
 
write_byte(colorid)
 
write_string(message)
 
message_end()

this my code !!
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
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 20:12.


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