AvaMods 5.o Forums (https://forums.avamods.com/)
-   Server / Mod Support (https://forums.avamods.com/server-mod-support/)
-   -   Country of player (https://forums.avamods.com/server-mod-support/469-country-player.html)

Sh4d0w December 13th, 2006 07:40 PM

Country of player
 
I would like to know how to show the country of the player against his/her name upon them joining the server in the form of a greeting for the game counter-strike. For example: "Joe has joined us from Canada".

As I am a total noob in amxx mod, I would appreciate if you can detail the steps to enable this to be done. I am using the latest amxx mod version 1.7b.

I also have statsme installed which has a greeting function. Is it possible to incorporate the country data into the statsme greeting or must I use amxx mod for this.

If I have to use amxx mod for this, then I would like to know how to position the location of the greeting in a specific place on the screen and set the colour of the message so that it doesn't clash with the existing statsme greeting mod.

Many thanks.

JoeCool

diamond-optic December 13th, 2006 08:14 PM

i doubt it would work thru the statsme msg because theres probably no geoip code in statsme itself...

and basically... i only know how to do it thru amxx :-P

..the plugin i use is HERE... and if you dont know how to compile plugins, you can just use an online compiler like THIS...

one thing tho that plugin in that link isnt as up to date as the one i posted in the amxx forums.. and also the plugin, as of right now, only prints the msg in the chat.. it shows up at the same time it says "so and so has joined the game" it will also print a line that says "so and so is playing from: countryname"

I can add a hud msg to it with a cvar to control the settings.. it wont be right now lol... but i can probably do it soon.. so you can check that one out for now if you want.. and i'll try getting 'round to putting hud msg options in...

:D

Sh4d0w December 13th, 2006 09:39 PM

Country of player
 
Hi,

Many thanks for the super fast reply. This is all so exciting!

I've done the following:

1) Enabled the geoip function in the modules.ini file.

2) Compiled the plugin and included it in the plugins.ini file.

3) Do I need to do anything else such as modifying the amxx.cfg file?

Thanks again!

Joe

diamond-optic December 13th, 2006 10:49 PM

well you can add these lines to your amxx.cfg file if you want:
Code:

amx_country_connect "1" //Turn On/Off
amx_country_connect_admins "0" //Dont show msg for admins
amx_country_connect_bots "1" //Dont show msg for bots

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

but the default values are probably fine for you..

by default it will display the msg for everyone who joins except bots (if you run any bots)


*and hopefully i'll get to updating the plugin tomorrow...

xxkrissixx December 14th, 2006 10:04 AM

Dia your so helpful :D

Jonny Automatic December 14th, 2006 01:03 PM

he is! especially when you and to make youre score look less like a hacker's :D

Sh4d0w December 14th, 2006 10:14 PM

Country of player
 
Hi again!

Just to let you know that everything worked fine!! I have had players joining me from Canada, Belgium, Sweden, Hong Kong, Singapore and Malaysia! It certainly made the server more cosy as the players know where everyone comes from.

Just one final tweak I would like to do to make it perfect. Hope I am not being too forward here!!

The position of the message is fine as it is where the chat messages are. Can I change the colour of the message to say, yellow, so that it stands out from the chat messages. lol

Many many thanks!!

Joe

diamond-optic December 14th, 2006 11:01 PM

well i dont really think theres much way to control color of text printed in the chat..

tho im pretty sure green and white are possible..

*btw i got an updated version pretty much set to go.. just gonna do more testing tomorrow.. right now im too tired :-P

Jonny Automatic December 14th, 2006 11:33 PM

on a similar note... is it possible to get Admin chat a different colour, cause people think I'm ignoring them :mad:

diamond-optic December 16th, 2006 07:16 PM

hey i updated the plugin..

download version 1.3
i re-wrote a lot of it (so old cvar settings need to be redone)

otherwise if your happy with the way 1.1 works (i think thats what you're using) and you have no need to update to 1.3 (as it increases plugin size and theres more going on in the functions) it would be best to not update if your not going to use the new features..

*BUT*

i do suggest you at least update to 1.2 which fixes a small little thing from 1.1

you can get 1.2 HERE


All times are GMT -4. The time now is 03:05 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.

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