Country on Connect (v1.3b)
Author diamond-optic
Author email -email-
Author website -link-
Description Country On Connect
- Version 1.3b
- 12.17.2006
- diamond-optic


Information:

- Shows country from which a player is in when they connect..
- Can set cvars to prevent msgs being shown for admins/bots/normal users...
- Select from chat, center, or hud style messages...
- If using HUD messages, there's cvars to control different settings for them..

- * Requires GEOIP module *

Credit:

- santa_sh0t_tupac: fixing my sloppy coding on bot detection

CVAR:

amx_country_connect "1" //Turn on/off
amx_country_connect_users "1" //Normal Users -> 1=Show / 0=Dont show
amx_country_connect_admins "1" //Admins -> 1=Show / 0=Dont show
amx_country_connect_bots "0" //Bots -> 1=Show / 0=Dont show

amx_country_connect_default "United States" //Country of server (for bots)

amx_country_connect_msg " * $name is playing from: $country" //Message to print
//$name = client's name
//$country = client's country

amx_country_connect_msgmode "1" //Message Modes:
//1 = Chat message
//2 = Hud Message

amx_country_connect_hudpos "1" //Hud Message Position:
//1 = Center (csay)
//2 = Left side (tsay)
//3 = Bottom middle
//4 = Custom position (use hudx & hudy cvars)

amx_country_connect_hudx "-1.0" //Hud X position (-1.0=center, 0.00=left, 1.00=right)
amx_country_connect_hudy "-1.0" //Hud Y position (-1.0=center, 0.00=top, 1.00=bottom)

amx_country_connect_hudred "255" //Hud message RED value
amx_country_connect_hudgreen "255" //Hud message GREEN value
amx_country_connect_hudblue "255" //Hud message BLUE value

EXTRA:

Change #define ADMIN to admin level used for amx_country_connect_admins

Changelog:

- 07.11.2006 Version 1.0
Initial Release

- 08.06.2006 Version 1.1
Changed a return

- 12.09.2006 Version 1.2
If country returns "error", it prints as "Unknown"

- 12.14.2006 Version 1.3
Totally reworked the plugin, INCLUDING CVARs (SO TAKE NOTE OF THAT!!!)
Fixed 'default' typo in CVAR
Added CVAR to control normal users
Now 3 different messages (chat, center, and hud)
Various CVARs to control hud message color & position
Now a CVAR string sets the message to be printed

- 12.17.2006 Version 1.3b
Much better way of detecting bots (thanks santa_sh0t_tupac)
Checks to make sure player is actually connected
Filesize 5.49 kB
Date Sunday, July 27, 2008 - 04:48PM
Downloads 779
Download
Download Country on Connect (v1.3b)


You must be logged in to make comments on this site.
Please log in, or if you are not registered click here to signup




2005-2006
2006-2007
2007-2008
2008-2012
2013-2014
2014-2016
2016-2024
team cdrive
AvaMods 0.x
AvaMods 1.x
AvaMods 2.x
AvaMods 3.o
AvaMods 4.o
AvaMods 5.o

team cdrive   AvaMods

www.AvaMods.com