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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 8,065
» Latest member: phnx
» Forum threads: 2,430
» Forum posts: 12,449

Full Statistics

Online Users
There are currently 220 online users.
» 0 Member(s) | 216 Guest(s)
Bing, Google, Yandex, Applebot

Latest Threads
UZS Zombie Survival
Forum: Advertisements
Last Post: phnx
6 hours ago
» Replies: 0
» Views: 8
🎮 Free SA-MP Server Hosti...
Forum: Chat
Last Post: Centnodes
2026-04-02, 02:22 AM
» Replies: 14
» Views: 3,097
FCNPC for open.mp
Forum: Pawn Scripting
Last Post: mentaletion
2026-04-01, 12:28 PM
» Replies: 7
» Views: 7,348
Samp development
Forum: Chat
Last Post: pmemorex2016
2026-03-31, 09:57 AM
» Replies: 0
» Views: 117
Pawno compiler (pawncc.ex...
Forum: Support
Last Post: PutuSuhartawan
2026-03-20, 11:12 PM
» Replies: 0
» Views: 159
[0.3.7 & 0.3.DL] Los Sant...
Forum: Advertisements
Last Post: renza1st
2026-03-16, 05:58 AM
» Replies: 0
» Views: 113
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2026-03-13, 11:17 AM
» Replies: 0
» Views: 104
Atlanta DeathMatch/Team D...
Forum: Advertisements
Last Post: NixaSha
2026-03-10, 04:57 AM
» Replies: 1
» Views: 150
mysql_samp
Forum: Plugins
Last Post: NullSablex
2026-03-10, 03:33 AM
» Replies: 0
» Views: 185
backtrace
Forum: Questions and Suggestions
Last Post: Lyvex
2026-03-09, 06:32 AM
» Replies: 0
» Views: 127

 
  Detailed Mapping Guide/Tips
Posted by: Uproar - 2020-02-15, 12:59 PM - Forum: Tutorials - Replies (3)

Hello everyone, this guide was posted back in April 2018 on the SAMP forum- but since I can't acces it from where I live, I'll be reposting it here.
Many of you want to start mapping, but lack either the motivation or the ideas. Here in this thread, I'm going to list some tips, some commonly known bugs, useful objects and such.

Quote:You need to have a criticism sense, I know your map is like your baby and you think its all beautiful and stuff, but its not. You need to get over this mentality and judge your map objectively.
This thread mainly is about roleplay maps but some tips can come in handy with all types of maps


Map Editor Choice

This is completely your own choice.
  • If you're going for mapping without textures and just with normal objects, without text and stuff, use Map Editor. This is not an in-game editor, but a seperate program.
  • If you're going for an in-game map editor with textures, text and actor anim support, go for Fusez's Map Editor. This has an in-built smoothcam too, so you can record videos for your showcase pretty easily. It has a lot more, so you can click on the thread and check it out yourself.
  • Then comes my personal favorite program, Texture Studio.?It is by far the easiest program with a lot of features. You may think it is complicated but it is not.
  • In the end, the Ultimate Creator. This one deserves more peers but I didn't work with it, so don't know how is it. As far as I know, this editor mainly works with keyboard shortcuts and such, check the thread for more information.


Object Choice and Placement

Coming to the objects, you need to have a really good imagination and creativity. In Texture Studio, you can still edit textures and make them look almost completely different! But in map editors without texture support, this can be a nightmare. You can also edit textures in the code with SetObjectMaterial but it isn't easy, neither do I know more about scripting.

For object and texture IDs, use this website.
I'll list below how to use that website.
  • Object selection- Use objects that suit your theme. If you're making a old styled map like for a county server, use wooden textures, mostly. DO NOT use any modern objects in such a map. Vintage objects work the best with such a map. Just imagine yourself being in the 1950s, how would it feel? What would your environment consist of? There, that's how you decide your objects. In a modern themed map, use any object you want but don't use objects with too plain textures. If you still plan to make them look better and realistic, retexture them to a proper texture combination without making it look cartoonish. Collision holds a major role here too. If you need players to NOT pass through a particular object, use an object with collision. If you're really scrict about how players collide with an object and if the object doesn't have a proper collision like this, simply use the chip objects (The stack of coins in gambling).
[Image: pDu2aQQl.png]
  • Object Placement- Placing objects is a major part of the map. If you're using Map Editor, it's comparatively difficult to align some objects properly (They either float in the air or are badly aligned along). In texture studio, use the /editobject GUI to place them properly. Now you might need an object which isn't there in GTA SA? Use your creativity. Make a new object with small existing objects. For example, a computer monitor. There isn't a modern one available. So use the LCDTV1 object and for the stand, either use the Lava Lamp and retexture it and place it behind the LCD TV so that it looks like a screen or use 2 Switch objects (Retexture them according to your needs). Then place one horizontal and another one at 45 degrees so that it holds the LCD TV like this.


If you're placing two object side by side or very near to make one big object, make sure they don't overlap along and become glitchy like below. To avoid it, simply move the second object back by 0.001 along the forward/backward axis (/ox 0.001 or /oy 0.001 in Texture Studio), so it doesn't really look like it's behind but avoids the glitch.
[Image: ead1n4C.gifl]

Flashhie Wrote:If you place small detailed objects, never place them at a 90 degree angle. Because in real life nobody places the stuff on table perfectly, even if they want it to.

And that's right! Have a look at this:-
[Image: HU22sfE.png?1]
[Image: c4bV3nW.png?1]



Textures

Textures are a very important part of your map. Good textures can make it look so realistic, believe me. I always placed objects and only used the concrete texture (Index 3 in texture studio) but later I realised how good does proper texturing result in. Again, if you're making a old styled map, use old textures. Mostly wood.

Useful Wooden Textures - 223, 229, 230, 288, 301, 1054, 3840.

For a modern-themed map, NEVER use plain textures like 8691 to 8705. Use textures that look realistic, you won't want your map to look like a minecraft map, do you? Ever seen plastic walls of a building? No. Use concrete textures. If you still like plain textures, use texture ID 3 and edit the color with /mtcolor. Do not use plain textures. They may look decent with your ENB Shaders but not everyone has ENB, so don't use plain textures at all!
Now you can always use /mtcolor to set the color in texture studio. More details about this in the Texture Studio section below.
If you wish to find texture of a default GTA object, go here, search for your object and once you get it click on the "Details" button, then click here and you'll get a list of the textures on it. Go to texture studio and use /tsearch [Your texture name] (Remove the square brackets).


It's really easy. Use the search bar or the categories below to search for an object. Then if you see your object on the screen, click on it, then click on details. To get the textures of that object, click on the .txd file on the right side of your screen. Then go in game and use /tsearch [Texture Name] to search for it. Below is a demonstration. (Sorry for the bad quality, it's because I made it into .gif instead of a YouTube video which will be annoying to open)
[Image: RXbp7Hv.gifl]


Below, I'll show you how to get the position(s) of a certain object. For example the pershing square object. Search for it, scroll down and click on "Fullscreen / Position Export" then you'll see the co-ordinates on the right side of your screen. Here is a demonstration of the same:-
[Image: k84M1Cb.gif]


Searching an Object by position
Click on the small location blip icon in the search bar. The San Andreas Map will pop up, click on the location you wish to see the objects near to, and it'll show all of them.
[Image: kAR9xzRl.png]


Useful Textures
Concrete textures- 3, 139, 8438, 8535.
Wood textures- 223, 229, 230, 288, 301, 1054, 3840.
Glass and window textures- 1123, 3565.



[Image: YoAM8rR.png]

I hope you like it.
Questions and suggestions are welcome.
For more help, ask below in a reply.


  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