Go Back   AvaMods 5.o Forums > AvaMods - Server > Server / Mod Support
       Log In
Log In | Lost Password | Register


Server / Mod Support Discuss our servers - Questions, requests, complaints, etc.. Need help with your server? Have any amxx questions/suggestions?

Reply
Views: 859 - Replies: 11  
Share LinkBack Thread Tools
  #1 (permalink)  
Old December 13th, 2006
forum n00b
 
Join Date: December 13th, 2006
Status: No Status
Posts: 3
Default 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
Reply With Quote
  #2 (permalink)   diamond-optic is Special  
Old December 13th, 2006
diamond-optic's Avatar
i dont want a goldfish
 
Join Date: March 13th, 2005
Location: Upstate New York
Status: hazey
Posts: 3,259
Default

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...


Quote: Originally Posted by ThePowerCosmic in regards to AvaMods
They are the type of people that are absolutely destroying the fabric of america and everything that goodness stands for.

Reply With Quote
  #3 (permalink)  
Old December 13th, 2006
forum n00b
 
Join Date: December 13th, 2006
Status: No Status
Posts: 3
Default 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
Reply With Quote
  #4 (permalink)   diamond-optic is Special  
Old December 13th, 2006
diamond-optic's Avatar
i dont want a goldfish
 
Join Date: March 13th, 2005
Location: Upstate New York
Status: hazey
Posts: 3,259
Default

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...

Quote: Originally Posted by ThePowerCosmic in regards to AvaMods
They are the type of people that are absolutely destroying the fabric of america and everything that goodness stands for.

Reply With Quote
  #5 (permalink)  
Old December 14th, 2006
Former AvaMods Admin
 
Join Date: August 3rd, 2006
Status: roxified
Posts: 1,068
Default

Dia your so helpful
Reply With Quote
  #6 (permalink)  
Old December 14th, 2006
Jonny Automatic's Avatar
Former AvaMods Admin & Excessive Faggotry
 
Join Date: October 8th, 2006
Location: the shire
Status: No Status
Posts: 1,692
Default

he is! especially when you and to make youre score look less like a hacker's
Reply With Quote
  #7 (permalink)  
Old December 14th, 2006
forum n00b
 
Join Date: December 13th, 2006
Status: No Status
Posts: 3
Default 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
Reply With Quote
  #8 (permalink)   diamond-optic is Special  
Old December 15th, 2006
diamond-optic's Avatar
i dont want a goldfish
 
Join Date: March 13th, 2005
Location: Upstate New York
Status: hazey
Posts: 3,259
Default

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

Quote: Originally Posted by ThePowerCosmic in regards to AvaMods
They are the type of people that are absolutely destroying the fabric of america and everything that goodness stands for.

Reply With Quote
  #9 (permalink)  
Old December 15th, 2006
Jonny Automatic's Avatar
Former AvaMods Admin & Excessive Faggotry
 
Join Date: October 8th, 2006
Location: the shire
Status: No Status
Posts: 1,692
Default

on a similar note... is it possible to get Admin chat a different colour, cause people think I'm ignoring them
Reply With Quote
  #10 (permalink)   diamond-optic is Special  
Old December 16th, 2006
diamond-optic's Avatar
i dont want a goldfish
 
Join Date: March 13th, 2005
Location: Upstate New York
Status: hazey
Posts: 3,259
Default

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

Quote: Originally Posted by ThePowerCosmic in regards to AvaMods
They are the type of people that are absolutely destroying the fabric of america and everything that goodness stands for.

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 10:13 AM.

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