Raised This Month: $32 Target: $400
 8% 

Country On Name


Post New Thread Reply   
 
Thread Tools Display Modes
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 06-17-2012 , 10:31   Re: Country On Name
Reply With Quote #21

Of course I can ;)

It means admins are able to use explicitly defined nicks like "[GB] nick", or "[DE] nick", or whatever they wants.
Common players are able to hide their country using "[??] nick" only. Any other tags except their true country will be ignored, plugin just adds true country tag right before their 'construction' (example result is "[VN] [GB] nick").

In other words plugin does NOT check country tag in the admin's nick to be equal his true country.
__________________

Last edited by isotonic; 06-17-2012 at 10:31.
isotonic is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 07-13-2012 , 21:10   Re: Country On Name
Reply With Quote #22

New version ;)
Changes are:
Quote:
- new: amx_default_country_code cvar to set default country tag for player if he's country could not be determined (usually it is 'local' players (players with private IPs)). By default it is "??" as before;
- fix: every player could have any country tag like admins. It is amazing that nobody noticed that before.
Attached Files
File Type: sma Get Plugin or Get Source (country_on_name_adminfree.sma - 725 views - 1.8 KB)
File Type: sma Get Plugin or Get Source (country_on_name_wo_tag_for_bots.sma - 664 views - 1.9 KB)
__________________

Last edited by isotonic; 07-13-2012 at 22:26.
isotonic is offline
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 07-13-2012 , 23:52   Re: Country On Name
Reply With Quote #23

I'm wondering can you do the state or city instead of the country?
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 07-14-2012 , 00:46   Re: Country On Name
Reply With Quote #24

2 letters? You must be kidding.
__________________
isotonic is offline
nerv0us
Junior Member
Join Date: Feb 2010
Location: Brazil
Old 07-16-2012 , 02:43   Re: Country On Name
Reply With Quote #25

can this be edited to states instead of country?
nerv0us is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 07-30-2012 , 19:41   Re: Country On Name
Reply With Quote #26

Custom version ;)

Plugin adds custom tag for bots, it is [BOT] by default.
I needed it for jk_botti because many of players treat bots like a cheaters and leave the server.

To change the tag edit gszBotTag[] value in the sma.
Attached Files
File Type: sma Get Plugin or Get Source (country_on_name_with_tags_for_bots.sma - 669 views - 2.2 KB)
__________________
isotonic is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 07-30-2012 , 21:28   Re: Country On Name
Reply With Quote #27

New Versions with new cvars :

bot_tag (DEFAULT = 0) :
0 --> Show [??]
1 --> Show [BOT]
2 --> Show [LAN]

lan_tag (DEFAULT = 0) :
0 --> [??]
1 --> [LAN] if ip is LAN, else [??]
__________________
bboygrun is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 07-31-2012 , 07:15   Re: Country On Name
Reply With Quote #28

IP checking will NOT work as you expect.
Because you comparing player's IP address with entire strings like 192.168.0.0. But player from LAN never has such addresses.

In client_infochanged you check only first 4 symbols. But [LAN] tag has 5 ones.

:'(
__________________

Last edited by isotonic; 07-31-2012 at 07:15.
isotonic is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 07-31-2012 , 08:35   Re: Country On Name
Reply With Quote #29

Oups, about IP check fixed.

About infochanged i check the 5 symbols :
for( new i = 0; i <= 4; i ++ )

"<="
__________________
bboygrun is offline
TheSpetsnaz
Junior Member
Join Date: Jul 2012
Old 07-31-2012 , 09:35   Re: Country On Name
Reply With Quote #30

Is there a place where I just download and upload? Also could someone help me out with a plguin I am having with?
TheSpetsnaz is offline
Reply


Thread Tools
Display Modes

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 01:28.


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