Raised This Month: $ Target: $400
 0% 

Countries names


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-27-2014 , 16:11   Countries names
Reply With Quote #1

Hi.
I am trying to do a plugin of countries ranking.
But i have a question. What countries names can geoip detect?
__________________
Jhob94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-27-2014 , 16:20   Re: Countries names
Reply With Quote #2

It depends on the data file that you are using. Check the data file specifications.
__________________
fysiks is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-28-2014 , 08:31   Re: Countries names
Reply With Quote #3

Quote:
Originally Posted by Blizzard_87 View Post
Take a look at this plugin it uses country names
https://forums.alliedmods.net/showthread.php?t=63507
That plugin wont help me with anything, that stuff i already know about.

Quote:
Originally Posted by fysiks View Post
It depends on the data file that you are using. Check the data file specifications.
So i should register the countries that connect instead of make a country list, so i guess it would be compatible with everyone's dat version. Am i correct?
__________________
Jhob94 is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-28-2014 , 09:47   Re: Countries names
Reply With Quote #4

Quote:
Originally Posted by Jhob94 View Post
So i should register the countries that connect instead of make a country list, so i guess it would be compatible with everyone's dat version. Am i correct?
But how can you get the country name whatever a client connects to server without the '.dat' file ?
TheDS1337 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-28-2014 , 04:31   Re: Countries names
Reply With Quote #5

Take a look at this plugin it uses country names
https://forums.alliedmods.net/showthread.php?t=63507
__________________
Blizzard_87 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-28-2014 , 13:55   Re: Countries names
Reply With Quote #6

Everyone is supposed to have that file. I am not sure about this, but from what fysiks said, you can have different data files. But as far as i know, every server should have it. So it wouldnt be a problem.
__________________

Last edited by Jhob94; 06-28-2014 at 13:55.
Jhob94 is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 06-30-2014 , 02:59   Re: Countries names
Reply With Quote #7

PHP Code:
const char GeoIP_country_name[256] =
"N/A",
  
"Asia/Pacific Region",                         "Europe",
  
"Andorra",                                     "United Arab Emirates",
  
"Afghanistan",                                 "Antigua and Barbuda",
  
"Anguilla",
  
"Albania",                                     "Armenia",
  
"Curacao",
  
"Angola",
  
"Antarctica",                                  "Argentina",
  
"American Samoa",                              "Austria",
  
"Australia",                                   "Aruba",
  
"Azerbaijan",
  
"Bosnia and Herzegovina",                      "Barbados",
  
"Bangladesh",
  
"Belgium",                                     "Burkina Faso",
  
"Bulgaria",                                    "Bahrain",
  
"Burundi",                                     "Benin",
  
"Bermuda",
  
"Brunei Darussalam",                           "Bolivia",
  
"Brazil",
  
"Bahamas",                                     "Bhutan",
  
"Bouvet Island",                               "Botswana",
  
"Belarus",                                     "Belize",
  
"Canada",
  
"Cocos (Keeling) Islands",
  
"Congo, The Democratic Republic of the",
  
"Central African Republic",
  
"Congo",                                       "Switzerland",
  
"Cote D'Ivoire",                               "Cook Islands",
  
"Chile",                                       "Cameroon",
  
"China",
  
"Colombia",                                    "Costa Rica",
  
"Cuba",
  
"Cape Verde",                                  "Christmas Island",
  
"Cyprus",                                      "Czech Republic",
  
"Germany",                                     "Djibouti",
  
"Denmark",
  
"Dominica",                                    "Dominican Republic",
  
"Algeria",
  
"Ecuador",                                     "Estonia",
  
"Egypt",                                       "Western Sahara",
  
"Eritrea",                                     "Spain",
  
"Ethiopia",
  
"Finland",                                     "Fiji",
  
"Falkland Islands (Malvinas)",
  
"Micronesia, Federated States of",             "Faroe Islands",
  
"France",                                      "Sint Maarten (Dutch part)",
  
"Gabon",                                       "United Kingdom",
  
"Grenada",
  
"Georgia",                                     "French Guiana",
  
"Ghana",
  
"Gibraltar",                                   "Greenland",
  
"Gambia",                                      "Guinea",
  
"Guadeloupe",                                  "Equatorial Guinea",
  
"Greece",
  
"South Georgia and the South Sandwich Islands","Guatemala",
  
"Guam",
  
"Guinea-Bissau",                               "Guyana",
  
"Hong Kong",
  
"Heard Island and McDonald Islands",
  
"Honduras",                                    "Croatia",
  
"Haiti",
  
"Hungary",                                     "Indonesia",
  
"Ireland",
  
"Israel",                                      "India",
  
"British Indian Ocean Territory",              "Iraq",
  
"Iran, Islamic Republic of",                   "Iceland",
  
"Italy",
  
"Jamaica",                                     "Jordan",
  
"Japan",
  
"Kenya",                                       "Kyrgyzstan",
  
"Cambodia",                                    "Kiribati",
  
"Comoros",                                     "Saint Kitts and Nevis",
  
"Korea, Democratic People's Republic of",      "Korea, Republic of",
  
"Kuwait",
  
"Cayman Islands",
  
"Kazakhstan",
  
"Lao People's Democratic Republic",
  
"Lebanon",                                     "Saint Lucia",
  
"Liechtenstein",                               "Sri Lanka",
  
"Liberia",
  
"Lesotho",                                     "Lithuania",
  
"Luxembourg",
  
"Latvia",                                      "Libya",
  
"Morocco",                                     "Monaco",
  
"Moldova, Republic of",                        "Madagascar",
  
"Marshall Islands",                            "Macedonia",
  
"Mali",
  
"Myanmar",
  
"Mongolia",                                    "Macau",
  
"Northern Mariana Islands",                    "Martinique",
  
"Mauritania",                                  "Montserrat",
  
"Malta",
  
"Mauritius",                                   "Maldives",
  
"Malawi",
  
"Mexico",                                      "Malaysia",
  
"Mozambique",                                  "Namibia",
  
"New Caledonia",                               "Niger",
  
"Norfolk Island",
  
"Nigeria",                                     "Nicaragua",
  
"Netherlands",
  
"Norway",                                      "Nepal",
  
"Nauru",                                       "Niue",
  
"New Zealand",                                 "Oman",
  
"Panama",
  
"Peru",                                        "French Polynesia",
  
"Papua New Guinea",
  
"Philippines",                                 "Pakistan",
  
"Poland",                                      "Saint Pierre and Miquelon",
  
"Pitcairn Islands",                            "Puerto Rico",
  
"Palestinian Territory",                       "Portugal",
  
"Palau",
  
"Paraguay",
  
"Qatar",                                       "Reunion",
  
"Romania",                                     "Russian Federation",
  
"Rwanda",                                      "Saudi Arabia",
  
"Solomon Islands",                             "Seychelles",
  
"Sudan",
  
"Sweden",
  
"Singapore",                                   "Saint Helena",
  
"Slovenia",                                    "Svalbard and Jan Mayen",
  
"Slovakia",                                    "Sierra Leone",
  
"San Marino",
  
"Senegal",                                     "Somalia",
  
"Suriname",
  
"Sao Tome and Principe",
  
"El Salvador",                                 "Syrian Arab Republic",
  
"Swaziland",                                   "Turks and Caicos Islands",
  
"Chad",                                        "French Southern Territories",
  
"Togo",
  
"Thailand",
  
"Tajikistan",
  
"Tokelau",                                     "Turkmenistan",
  
"Tunisia",                                     "Tonga",
  
"Timor-Leste",                                 "Turkey",
  
"Trinidad and Tobago",                         "Tuvalu",
  
"Taiwan",
  
"Tanzania, United Republic of",
  
"Ukraine",                                     "Uganda",
  
"United States Minor Outlying Islands",        "United States",
  
"Uruguay",                                     "Uzbekistan",
  
"Holy See (Vatican City State)",
  
"Saint Vincent and the Grenadines",
  
"Venezuela",
  
"Virgin Islands, British",
  
"Virgin Islands, U.S.",                        "Vietnam",
  
"Vanuatu",                                     "Wallis and Futuna",
  
"Samoa",                                       "Yemen",
  
"Mayotte",
  
"Serbia",                                      "South Africa",
  
"Zambia",
  
"Montenegro",                                  "Zimbabwe",
  
"Anonymous Proxy",                             "Satellite Provider",
  
"Other",                                       "Aland Islands",
  
"Guernsey",
  
"Isle of Man",                                 "Jersey",
  
"Saint Barthelemy",
  
"Saint Martin",
  
"Bonaire, Saint Eustatius and Saba",
  
"South Sudan",                                 "Other" }; 
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
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 21:15.


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