Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 7,037
» Latest member: gui717144
» Forum threads: 2,347
» Forum posts: 12,235
Full Statistics
|
Online Users |
There are currently 237 online users. » 0 Member(s) | 234 Guest(s) Bing, Google, DuckDuckGo
|
Latest Threads |
will open.mp supports hig...
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-23, 07:10 PM
» Replies: 2
» Views: 393
|
black screen
Forum: Support
Last Post: geppetog
2025-04-23, 05:34 PM
» Replies: 0
» Views: 18
|
Discord server - Ban Appe...
Forum: Chat
Last Post: joshcoconutard
2025-04-22, 06:42 PM
» Replies: 0
» Views: 41
|
I know Kalcor left the bu...
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-22, 02:22 PM
» Replies: 4
» Views: 152
|
Sponsors and Donations
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-20, 05:48 AM
» Replies: 0
» Views: 51
|
Best practices for conver...
Forum: Tech
Last Post: Mido
2025-04-19, 09:53 PM
» Replies: 1
» Views: 123
|
What got you into SA-MP a...
Forum: Chat
Last Post: alecnia
2025-04-17, 01:17 AM
» Replies: 1
» Views: 172
|
I would like to know abou...
Forum: General Discussions
Last Post: Wriney
2025-04-15, 07:14 AM
» Replies: 0
» Views: 83
|
Mini Games
Forum: Advertisements
Last Post: Voldy
2025-04-15, 03:59 AM
» Replies: 9
» Views: 1,943
|
help
Forum: Programming
Last Post: J0nathan550
2025-04-14, 06:10 PM
» Replies: 1
» Views: 200
|
|
|
GeoLite |
Posted by: George - 2020-02-05, 11:26 AM - Forum: Libraries
- Replies (6)
|
 |
GeoLite (SQLite)
It is based on the free product GeoLite2 by MaxMind.
I was updating the country database every month for MySQL and decided to update the GeoIp databases by Whitetiger's include as many people requested. It turned out I was unable to, the way the databases were structured. I converted my version to SQLite and started comparing the two includes with geolite.inc being victorious. But this was to be expected with not only the good database structure and the use of indexes but also the appropriate queries to avoid range scans. Even though latest database provide more data than last year, it did not affect the performance in any way.
The past days, I managed to import Autonomous System (AS) and City databases with the original databases having big flows.
- Certain organizations in Autonomous System list did have many unique identifiers (ASN - Autonomous System Number) registered to IANA. All duplicates were removed and kept only their initial ASN.
- Certain ip ranges in City database:
- did not provide a city name. Country name was used in replacement.
- did not provide a city name, nor a country name. Continent name was used in replacement.
The above issue arose another problem related to time zones.
- Antarctica, Asia and Europe have time zone set as :00
- Cities with country name as replacement have central standard time set mostly, with few exceptions. Some examples are:
- United States is set to have UTC -05:00 (Washington, DC) whereas Central Standard Time is in Chicago (-06:00)
- Russia is set to Moscow Standard Time (:00)
I initially posted these changes and improvements in Whitetiger's thread but due to their absence, I decided to create a new thread. I was also unaware if Whitetiger would accept the changes, nor how the updates would be done.
Installation
Repository: https://github.com/George480/geolite
Releases: https://github.com/George480/geolite/releases
Include: https://raw.githubusercontent.com/George...eolite.inc
Save as geolite.inc into pawno\include folder. Include in your code and begin using the library:
Place the database you want to use into scriptfiles folder.
Functions
IP-Based Functions:
- GetIpAutonomousSystem(const geolite_ip[], geolite_dest[], geolite_len = sizeof (geolite_dest))
- Stores the Autonomous System organization (ISP is an Autonomous System) according to given IP, passed by reference.
- Returns 1 on success (database file exists in scriptfiles folder) or 0 on failure.
- GetIpCountry(const geolite_ip[], geolite_dest[], geolite_len = sizeof (geolite_dest))
- Stores the Country name according to given IP, passed by reference.
- Returns 1 on success (database file exists in scriptfiles folder) or 0 on failure.
- GetIpCity(const geolite_ip[], geolite_dest[], geolite_len = sizeof (geolite_dest))
- Stores the City name according to given IP, passed by reference.
- Returns 1 on success (database file exists in scriptfiles folder) or 0 on failure.
- GetIpUTC(const geolite_ip[], geolite_dest[], geolite_len = sizeof (geolite_dest))
- Stores the UTC offset according to given IP, passed by reference.
- Returns 1 on success (database file exists in scriptfiles folder) or 0 on failure.
- IsIpProxy(const geolite_ip[])
- Requires country database.
- Returns 1 if the given ip is public proxy otherwise 0. It will also return 0 if database file does not exist in scriptfiles folder.
Player-Based Functions:
- GetPlayerAutonomousSystem(playerid, geolite_dest[], geolite_len = sizeof (geolite_dest))
- Stores the Autonomous System organization (ISP is an Autonomous System) according to given player's IP, passed by reference.
- Returns 1 on success (database file exists in scriptfiles folder and player is connected) or 0 on failure.
- GetPlayerCountry(playerid, geolite_dest[], geolite_len = sizeof (geolite_dest))
- Stores the Country name according to given player's IP, passed by reference.
- Returns 1 on success (database file exists in scriptfiles folder and player is connected) or 0 on failure.
- GetPlayerCity(playerid, geolite_dest[], geolite_len = sizeof (geolite_dest))
- Stores the City name according to given player's IP, passed by reference.
- Returns 1 on success (database file exists in scriptfiles folder and player is connected) or 0 on failure.
- GetPlayerUTC(playerid, geolite_dest[], geolite_len = sizeof (geolite_dest))
- Stores the UTC offset according to given player's IP, passed by reference.
- Returns 1 on success (database file exists in scriptfiles folder and player is connected) or 0 on failure.
- IsPlayerUsingProxy(playerid)
- Requires country database.
- Returns 1 if the ip of the given player is public proxy otherwise 0. It will also return 0 if database file does not exist in scriptfiles folder.
Usage
Code: #include <a_samp>
#include <sscanf2>
#include <geolite>
main() {}
public OnPlayerConnect(playerid)
{
? ? new player_name[MAX_PLAYER_NAME], player_country[MAX_COUNTRY_LENGTH], connection_text[80];
? ??
? ? GetPlayerName(playerid, player_name, MAX_PLAYER_NAME);
? ? GetPlayerCountry(playerid, player_country, MAX_COUNTRY_LENGTH);
? ? format(connection_text, sizeof (connection_text), "%s joined from %s", player_name, player_country);
? ? SendClientMessageToAll(0xFFFF00FF, connection_text);
? ? return 1;
}
Extra Notes
127.0.0.1 is given as "Unknown" as it is a private IP.
Country, City and ASN databases will be updated every first Wednesday of every month.
It opens the databases on startup according to which database exists in scriptfiles folder, therefore if you prefer to use the Country database only, place maxmind_country.db into scriptfiles folder and not the other two databases.
It only detects public proxies and not VPNs.
A MySQL version would require non-threaded queries to keep the same usage of functions. If you have any suggestion, please inform me.
Constants:
Code: #define MAX_AUTONOMOUS_SYSTEM_LENGTH? ? 95
#define MAX_COUNTRY_LENGTH? ? ? ? ? ? ? 45
#define MAX_CITY_LENGTH? ? ? ? ? ? ? ? ?64
#define MAX_UTC_LENGTH? ? ? ? ? ? ? ? ? 7
Requirements
sscanf: https://github.com/maddinat0r/sscanf/releases
Credits
- MaxMind - GeoLite2
- Alex "Y_Less" Cole - sscanf
- Andy Skelton - ordering by `ip_to` (avoidance of range scan)
- Nikolay Bachiyski - ordering by `ip_to` (avoidance of range scan)
- Mark Robson - highest `ip_from` which is less than or equal to the given IP (avoidance of next country returned due to gaps)
|
|
|
Indirection_OnGameModeInit |
Posted by: offr0ad - 2020-02-04, 11:50 AM - Forum: Programming
- Replies (1)
|
 |
After long time I started working with my gamemode and tried to compile my gamemode "sampctl package build".
After that it updated dependencies and indirection.inc was added, but it gives ...dependencies\indirection\indirection.inc:940 (error) undefined symbol "Indirection_OnGameModeInit".
What may cause the problem and how should it be fixed?
|
|
|
Hola! |
Posted by: Yasef99 - 2020-02-01, 04:45 AM - Forum: Programaci?n
- No Replies
|
 |
Disculpen, ?Alguno tiene el .zip del server 0.3.DL para windows? En la p?gina oficial de SAMP ya no existe, y la necesito, porfavor. (
|
|
|
Looking for a new server/community to join! |
Posted by: Potassium - 2020-01-30, 02:11 AM - Forum: General Discussions
- No Replies
|
 |
Hi friends! Long-ish time, no see :(
I have terrible internet now so SA-MP is probably one of few online games I can play in the limited time I have to play games lol
I want to find a new server to play and be a part of. I'm a bit out of the loop these days, so I'm not sure what's still popular, what's still good, etc.
Please leave your suggestions below, but ONLY if they meet the criteria that I list below. This is not an opportunity to advertise servers that aren't relevant to the thread!
What I'm looking for in a server:
- Active, regular players. Server has a decent number of players online 24/7
- Main language is English, staff are fluent in English and easy to communicate with (it's fine if players speak other languages in game!)
- GOOD STAFF. I guess I'm looking for a server that isn't super strict. No power-trippy 14 year old bullshit anymore. I'm a grown-ass adult now and want to play with other grown-ass adults (maybe I'm in the wrong place? lmao)
- ACTIVE DEVELOPMENT. Dev team that actively works on improving the server, implementing suggestions and bug fixes etc.
- THINGS TO WORK TOWARDS. I like games where I can spend time grinding for results. Achievements, missions, ranks, jobs - that sort of thing. Things I can do by myself when no friends are online.
- THINGS TO DO WITH FRIENDS. I also want to be able to play with friends. Group activities etc
That's pretty much it, I think.
I enjoy things like owning houses etc but it's not a deal-breaker if the server doesn't have those features.
I've never really played RP servers but I'm willing to try low-level ones for now, if they are good.
Happy to play round-based servers like Sumo etc too.
Basically I just want to have a good time with and without friends, and be a part of a good community again :)
So show me what's out there please! ?
|
|
|
samp |
Posted by: rantamplan - 2020-01-26, 09:11 PM - Forum: Offtopic
- No Replies
|
 |
busco programador para un servidor samp pasarme discord y hablamos
|
|
|
Updating a pawn script without "gmx" |
Posted by: Tama - 2020-01-13, 12:53 AM - Forum: Questions and Suggestions
- Replies (6)
|
 |
Maaaaaaan, it will be dope if you can update a pawn script without GMX or closing and opening omp server.
Maybe u confused bout this, but basically just look at this.
[Video: https://www.youtube.com/watch?v=WzE0yqwbdgU]
Well, it's hard to explain the concepts, but the basics is same like "html live server vscode" ?when you press CTRL S, the live server host will automatically reload your html file and give you results without pressing F5 or manually opening .html file
|
|
|
Can't insert image in to a post |
Posted by: Hype - 2020-01-11, 09:58 AM - Forum: Tech
- Replies (2)
|
 |
I tried to ways, 1 was by using tool to instert link to an image and second one I dragged directly from imgur site.
Post removes image and replace it with text "undefined" or shows link to imgur instead of inserting it.
|
|
|
[Servidor]Battle Royale |
Posted by: MauricioGibson - 2020-01-01, 12:20 AM - Forum: Discusi?n GTA SA Multijugador
- Replies (1)
|
 |
Para Avanzar hay que Evolucionar
Hoy en dia existen muchos servidores que practicamente solo cambia el nombre el Gamemode es el mismo o es el mismo modo de juego
DM, RP, FDM
Pero Battle Royale, se han creado muchos juegos y MODs para esa opcion en otros juegos, pero en GTA SA? incluso en GTA V esta mal hecho.
Existe PUBG en MTA pero.. bueno no opino mejor...
Existieron servidores parecidos en SAMP pero.. Battle Royale no es solo un menu de "inventario"
A mediados del a?o "2019" decidi regresar a gta multiplayer, pero no queria abrir mi servidor RP "2008-2013" porque seria otro RP mas,
mi comunidad de jugadores "RP" tienes 10 a?os mas de cuando jugaban unos hasta hijos tienen, ya no juegan gta sa.
Entonces tuve una idea crear un gamemode de cero, hacerlo diferente y unico tipo battle royale.
Muy dificil, casi imposible.
Pero se logro
Actualmente sigo trabajando, desde que abri la version BETA he recibido muchas sugerencias y las he aplicado.
El Gamemode tiene:
*Sistema de Reduccion de mapa
*Mochilas
Se ha utilizado el mapa real de gta sa "TODO"
hay mas de 2700 Armas y accesorios en todo el mapa.
*Sistema de HeadShot
*interactive system (asi le llamo, un pack de sonidos agregados al juego "UNICO")
*Modo DUO *Actualmente en Test**
*Radios
*LOBBY " Unico? "se que algun dia hare un "FS" para que todos tengo una igual.
*Sistema de Diamantes* "Eso lo cree en el 2010"
*Temporadas
*Ranking de mejores Jugadores.
Y mas.
LA IDEA ORIGIAL ERA PREMIAR CON DINERO REAL AL MEJOR JUGADOR DE LA TEMPORADA
*Pero No ha recibido apoyo por parte de los "Beta tester*
YA QUE PARA DAR PREMIO AL MEJOR JUGADOR, TIENE QUE REGISTRARSE AL TORNEO CON DINERO REAL
*Tenia Logica pagar el mantenimiento y aparte premiar al mejor jugador ejemplo: costo: $2.00 premio: $20.00 (multiplicado de los usuarios registrados)
AUN TENGO PENSADO HACERLO ASI? en la "VERSION 1.0"
Primero les dejo unos pasos para jugar:
1. Registrarse
2. Elegir Skin, Accesorios, tipo de cuenta
3. Iniciar partida "ESTO ES IMPORTANTE YA QUE NECESITA HABER MAS DE 1 JUGADOR PARA INICIAR"
3. Descubrir la magia.
HostName: ||????????? GTA BATTLE ROYALE???????? ||SAMP0.3.7|
Address:? 167.114.56.3:7787
Players:? 5 / 149
Ping:???? 79
Mode:???? Battle Royale ?
Language: Spanish/English/Russian
Servidor: ALOJADO 24/7
Ojo: Es 0.3.7 tambien lo tengo en dl, es epico pero cancelaron esa version.
Esperare a Open Multiplayer
Para hacer un Gamemode Epico.
PUEDES ENTRAR Y VERLO TU MISMO, SON BIENVENIDAS TODAS LAS SUGERENCIAS.
|
|
|
|