Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,906
» Latest member: stryzo125
» Forum threads: 2,399
» Forum posts: 12,311

Full Statistics

Online Users
There are currently 251 online users.
» 1 Member(s) | 245 Guest(s)
Bing, Google, Applebot, Yandex, Baidu, stryzo125

Latest Threads
HWID BAN
Forum: Questions and Suggestions
Last Post: stryzo125
4 minutes ago
» Replies: 2
» Views: 1,869
Unban
Forum: Chat
Last Post: stryzo125
Yesterday, 10:35 PM
» Replies: 0
» Views: 32
problem dialog clan membe...
Forum: Pawn Scripting
Last Post: samuelmatheus0502
Yesterday, 10:16 PM
» Replies: 1
» Views: 102
Looking for Players for N...
Forum: Chat
Last Post: AlmightyJeremy
2026-02-04, 11:22 PM
» Replies: 0
» Views: 32
Manual sorting of servers...
Forum: Questions and Suggestions
Last Post: cherybomb
2026-02-04, 02:58 AM
» Replies: 2
» Views: 1,435
Project: Las Venturas Rol...
Forum: Advertisements
Last Post: Kremzy
2026-02-02, 10:14 PM
» Replies: 0
» Views: 57
Looking for Players for N...
Forum: Advertisements
Last Post: AlmightyJeremy
2026-02-02, 07:04 PM
» Replies: 0
» Views: 43
ExDM Reborn
Forum: Advertisements
Last Post: 0775448400
2026-02-02, 03:38 PM
» Replies: 1
» Views: 83
IPv6 support
Forum: Questions and Suggestions
Last Post: Markski
2026-02-02, 12:58 AM
» Replies: 1
» Views: 59
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: Pevenaider
2026-01-27, 08:48 PM
» Replies: 11
» Views: 19,367

 
  Deleted
Posted by: NexoR - 2020-02-13, 10:10 AM - Forum: Pawn Scripting - No Replies

Fix...


  Idlewood Monica Park [3DL 3DSMAX]
Posted by: Gtamodel - 2020-02-09, 12:42 AM - Forum: Videos and Screenshots - Replies (1)

Idlewood Monica Park

.Credits: Kaptanderya, Rockstar

[Image: 12.png]

[Image: unknown.png]

[Image: unknown.png]

[Image: unknown.png]

[Image: unknown.png]

[Image: unknown.png]


  Police Station Exterior - Interior [3DL 3DSMAX]
Posted by: Gtamodel - 2020-02-09, 12:29 AM - Forum: Maps - Replies (2)

San Andreas State Police?






.Credits: Kaptanderya, Rockstar, Gtamodel?

program 3DSmax, 8?dff - 1 txd = 2MB

[Image: sa-mp-090.png]

[Image: sa-mp-105.png]

[Image: sa-mp-089.png]

[Image: sa-mp-092.png]

[Image: sa-mp-107.png]

[Image: sa-mp-094.png]

[Image: sa-mp-097.png]

[Image: sa-mp-099.png]

[Image: sa-mp-101.png]

[Image: sa-mp-098.png]


  tricks with savanna from my friend
Posted by: kocis - 2020-02-06, 04:22 PM - Forum: Videos and Screenshots - No Replies

[Video: https://www.youtube.com/watch?v=HFKHwu73fOE]


  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:



Code:
#include <geolite>



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: Pawn Scripting - 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