← Scripts and libraries
desulaid/samp-include-objects
A library for working with objects from MTA maps.
Library★ 4updated Dec 2018No licencePawn
Open on GitHubThis repository has no licence file. It is public to read, but that alone does not give permission to reuse it.
Try it in the Pawn compiler →
Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.
readme.md
Description
This library will allow you to load MTA map files without converting.
Uses
#include <a_samp>
#define MAX_MAPS 228 // optional
#include "dcm_o"
new map;
public OnGameModeInit()
{
map = LoadFromMapFile("PATH_TO_MAP_FILE");
DestroyMap(map);
}
public OnMapLoad(mapid, objectid, bool:dynamic)
{
printf("[CREATED] mapid: %d, objectid: %d, dynamic: %d", mapid, objectid, _:dynamic);
}
public OnMapDestroy(mapid, objectid, bool:dynamic)
{
printf("[DESTOYED] mapid: %d, objectid: %d, dynamic: %d", mapid, objectid, _:dynamic);
}
This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing