[Include] GEO-IP (GEOIP) V2 | Supports States and Cities
#16

Quote:
Originally Posted by Dwane
Посмотреть сообщение
I used the filterscript you had on the package with this OnPlayerConnect
pawn Код:
public OnPlayerConnect(playerid)
{
    new isLocal;
    new Country[16];
    isLocal=GetPlayerLocation(playerid,Country);
    new message[256];
    if(!isLocal)
    {
        format(message,sizeof(message),">>GEO-IP<< %s from Localhost has joined the server.",GetPName(playerid));
        printf(message);
    }
    else
    {
        format(message,sizeof(message),">>GEO-IP<< %s from %s has joined the server.",GetPName(playerid),Country);
        printf(message);
    }
    SendClientMessageToAll(COLOR_JOIN,message);
    return 1;
}
But everytime, it says this
FIXED in 2.1. Sorry, my bad. It was because of the wrong name of database. Read the Change Log in the first page.

Quote:
Originally Posted by DJTunes
Посмотреть сообщение
Nice job man!
Thank You

Quote:
Originally Posted by vMapper
Посмотреть сообщение
Can you post a Pastebin link, since I am in my iPad? Thanks again in advance
What are you going to do with a pastebin link, when you still have to download the whole database ....

Quote:
Originally Posted by costel_nistor96
Посмотреть сообщение
Awesome. <3

Can you make GetPlayerCountryCode ? Like "uk", "usa", "ro", "ru", "pl", "de" ... ?
It already gives that by default. Output is like this. (EDIT: Released Version 2.1 : Now you can get output for the "Country[]" string, like - IN, IND, or INDIA - 2 letter, 3 letter, and full country name). This can be achieved by using the optional parameter isotype. Read the Change Log in the first page for more info.
Код:
>>GEO-IP<< CodeWave from (IN) Uttarakhand, Dehradun has joined the server
NOTE: In the above case (IN) is for INDIA.

Quote:
Originally Posted by AndreT
Посмотреть сообщение
I'd still like to point out that plugin implementations using the MaxMind GeoIP API are a lot faster than any PAWN scripts reading the data from a SQL database for example.

Although it has been like 4 years since the original plugin was released and 2 years since Remis updated it, the API has not been through a lot of changes from version 1.4.6 to 1.4.8. So the version I linked to is still worth using!

@costel_nistor96: the plugin I mentioned supports country codes - both 2 or 3 characters
I agree that plugins can do things pretty faster, but when my old C2D (E4300) can give location without taking not more than 10ms-30ms (I'm talking about FULL version of script that operates on a 114MB DB, not the LITE version) then I don't think the SERVERs are going to have any problems whatsoever regarding the speed of script.
Reply


Messages In This Thread
GEO-IP (GEOIP) V2.1 | Supports Country(3 ISO-Types), State and City - by abhinavdabral - 29.12.2012, 22:16
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by tungki - 29.12.2012, 22:25
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by Rillo - 29.12.2012, 22:34
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by Niko_boy - 30.12.2012, 11:23
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by Konstantinos - 30.12.2012, 11:44
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by abhinavdabral - 30.12.2012, 14:07
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by Konstantinos - 30.12.2012, 14:12
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by abhinavdabral - 30.12.2012, 14:25
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by vMapper - 30.12.2012, 14:26
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by abhinavdabral - 30.12.2012, 14:31
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by Konstantinos - 30.12.2012, 14:35
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by DJTunes - 30.12.2012, 14:40
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by vMapper - 30.12.2012, 14:46
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by IstuntmanI - 30.12.2012, 14:50
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by AndreT - 30.12.2012, 15:01
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by abhinavdabral - 30.12.2012, 16:27
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by totar - 02.02.2013, 05:15
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by abhinavdabral - 02.02.2013, 14:18
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by [GF]Logic - 02.02.2013, 14:29
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by abhinavdabral - 02.02.2013, 14:35
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by IstuntmanI - 02.02.2013, 16:23
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by abhinavdabral - 02.02.2013, 18:07
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by Lordzy - 19.02.2013, 03:40
Thank You - by abhinavdabral - 19.02.2013, 05:06
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by IstuntmanI - 02.03.2013, 11:57
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by abhinavdabral - 02.03.2013, 16:09
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by RajatPawar - 03.03.2013, 11:02
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by Hiddos - 03.03.2013, 11:36
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by abhinavdabral - 03.03.2013, 12:04
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by IstuntmanI - 02.04.2013, 16:27
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by abhinavdabral - 02.04.2013, 16:56
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by d0nTtoucH - 28.07.2013, 12:13
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by abhinavdabral - 28.07.2013, 12:24
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by d0nTtoucH - 28.07.2013, 12:25
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by Saleem - 30.07.2013, 15:15
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by Poschi - 30.03.2016, 13:35
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by IstuntmanI - 30.03.2016, 13:42
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by Leopards - 24.07.2016, 20:59
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by Leopards - 26.07.2016, 11:31
Re: GEO-IP (GEOIP) V2 | Supports States and Cities - by yvoms - 13.06.2017, 20:25

Forum Jump:


Users browsing this thread: 1 Guest(s)