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.