SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 05/02/2020, 10:22 AM   #21
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,227
Reputation: 205
Default Re: GeoLite

Databases were updated for February 2020: https://github.com/George480/geolite/releases/tag/v16.0
__________________
Calisthenics is offline   Reply With Quote
Old 08/02/2020, 02:55 PM   #22
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,227
Reputation: 205
Default Re: GeoLite

For those of you (non-sampctl users) that use community compiler version 3.10.10 (released an hour ago), you will need to modify a_sampdb.inc and change lines 12 and 14:
pawn Code:
native DB:db_open(name[]);
native DBResult:db_query(DB:db, query[]);
to:
pawn Code:
native DB:db_open(const name[]);
native DBResult:db_query(DB:db, const query[]);
in order to fix warning 239: literal array/string passed to a non-const parameter.
__________________
Calisthenics is offline   Reply With Quote
Old 19/02/2020, 02:07 AM   #23
Whitetiger
Huge Clucker
 
Whitetiger's Avatar
 
Join Date: Nov 2007
Posts: 406
Reputation: 156
Default Re: GeoLite

Great job, glad you could improve upon what I made some years back!
__________________
GitHub

Author of SA-MP AC

Whitetiger is offline   Reply With Quote
Old 19/02/2020, 05:46 AM   #24
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,227
Reputation: 205
Default Re: GeoLite

Quote:
Originally Posted by Whitetiger View Post
Great job, glad you could improve upon what I made some years back!
Thank you, I appreciate it.
__________________
Calisthenics is offline   Reply With Quote
Old 04/03/2020, 08:38 AM   #25
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,227
Reputation: 205
Default Re: GeoLite

Databases were updated for March 2020: https://github.com/George480/geolite/releases/tag/v17.0
__________________
Calisthenics is offline   Reply With Quote
Old 07/04/2020, 05:47 PM   #26
PurmeX
Little Clucker
 
Join Date: Apr 2018
Posts: 5
Reputation: 0
Default Re: GeoLite

Hi, is it possible to add an IP address to exceptions? I have a lot of regular players and can't play, thanks in advance for your help

I want to unlock ip players not locations


Code:
if(!IsAdminPlayer(playerid))
	{
		{
			if(strcmp(player_country, "Egypt", true))
			{
 				BoxInfo(playerid, ""RED""GOLD"Entries from foreign IPs have been blocked");

                KickPlayer(playerid, -1, "Foreign IP");

            }
		}
    }
PurmeX is offline   Reply With Quote
Old 07/04/2020, 05:56 PM   #27
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,227
Reputation: 205
Default Re: GeoLite

Quote:
Originally Posted by PurmeX View Post
Hi, is it possible to add an IP address to exceptions? I have a lot of regular players and can't play, thanks in advance for your help

I want to unlock ip players not locations


Code:
if(!IsAdminPlayer(playerid))
	{
		{
			if(strcmp(player_country, "Egypt", true))
			{
 				BoxInfo(playerid, ""RED""GOLD"Entries from foreign IPs have been blocked");

                KickPlayer(playerid, -1, "Foreign IP");

            }
		}
    }
Hello, adding an exception to current tables cannot be done because it saves them as IP ranges. However you can create your own whitelist for IPs or names to allow them join in case they are outside of Egypt.
__________________
Calisthenics is offline   Reply With Quote
Old 07/04/2020, 05:59 PM   #28
PurmeX
Little Clucker
 
Join Date: Apr 2018
Posts: 5
Reputation: 0
Default Re: GeoLite

Thank you
PurmeX is offline   Reply With Quote
Old 08/04/2020, 09:18 AM   #29
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,227
Reputation: 205
Default Re: GeoLite

Databases were updated for April 2020: https://github.com/George480/geolite/releases/tag/v18.0
__________________
Calisthenics is offline   Reply With Quote
Old 08/04/2020, 07:28 PM   #30
Symon
Gangsta
 
Symon's Avatar
 
Join Date: Apr 2019
Location: Italy
Posts: 915
Reputation: 89
Default Re: GeoLite

Thank you, may come in handy for sure.

Is it possible to categorize countries in order to make a top 10?
Symon is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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



All times are GMT. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.