[FilterScript] MTA .map loader
#1

MTA .map loader
by mick88
This is an easy to use include that allows you to load objects directly from .map file without need to convert. The script can load not only objects but also vehicles. Pickups and checkpoints are not currently supported. The vehicles will load with all applied modifications (rims, nitrous, hydraulics, spoilers etc) and paintjobs.

Pastebin download: http://pastebin.com/xa7AJ6Nv
SSCANF2 plugin by ****** is required to use this filterscript!
available here: https://sampforum.blast.hk/showthread.php?tid=120356[/CENTER]

Changes in version 0.2:
  • Added support for SA-MP 0.3c objects
  • Added storing object/vehicle IDs
  • Added function to unload single map
  • This script is now an include
  • Added support for custom vehicle numberplates (SA-MP 0.3c only)
  • Added function to unload all current map files
  • Added function checking if map is loaded
  • Support for Incognito's streamer
Functions:
Код:
LoadMtaMap(file[], convert03c=false)
IsMapLoaded(file[])
UnloadMtaMap(file[])
UnloadAll()
Usage:
* Place mtamap.inc in pawno/include folder
* Put #include mtamap on top of your gamemode script
* place all your .map files in the scriptfiles folder
* Use LoadMtaMap("filename.map") anywhere in your script to load map.
* compile and run your script, the objects will be loaded from file. You can unload filterscript after map is loaded

example:
Код:
public OnGameModeInit()
{
    LoadMtaMap("LosSantos.map");
    LoadMtaMap("LasVenturas.map");
    LoadMtaMap("Island.map");
    LoadMtaMap("03ctest.map", true);
}
Support for Incognito's streamer
All you have to do is include streamer.inc before mtamap.inc nad put streamer in server.cfg. Script will detect it automatically and start using it. Default streaming distance is 300.0, you can change it in #define.

SA-MP 0.3c Support added
New version adds support for 0.3c objects and numberplaters. To convert object ids from MTA to 0.3c simply add true as second parameter in LoadMtaMap():
Код:
LoadMtaMap("03ctest.map", true);
The numberplates will load automatically. Script will work on either 0.3b or 0.3c without any changes.

MTA editor VS sa-mp server:
Reply


Messages In This Thread
[INC] MTA .map loader UPDATED 12 Dec 2010 (0.3c objects support) - by mick88 - 13.09.2010, 11:08
Re: MTA .map loader - by Shockey - 13.09.2010, 11:11
Re: MTA .map loader - by Retardedwolf - 13.09.2010, 11:22
Re: MTA .map loader - by Dime - 13.09.2010, 11:22
Re: MTA .map loader - by mick88 - 13.09.2010, 11:33
Re: MTA .map loader - by CrunkBankS - 13.09.2010, 11:39
Re: MTA .map loader - by royal_king - 13.09.2010, 11:57
Re: MTA .map loader - by mick88 - 13.09.2010, 12:18
Re: MTA .map loader - by Rokzlive - 13.09.2010, 18:23
Re: MTA .map loader - by mick88 - 13.09.2010, 22:56
Re: MTA .map loader - by boyan96 - 23.09.2010, 17:22
Re: MTA .map loader - by mick88 - 23.09.2010, 23:34
Re: MTA .map loader - by Jumpman23 - 24.09.2010, 03:18
Re: MTA .map loader - by mick88 - 24.09.2010, 07:45
Re: MTA .map loader - by HyperZ - 24.09.2010, 08:28
Re: MTA .map loader - by boyan96 - 24.09.2010, 11:01
Re: MTA .map loader - by multinfs - 09.11.2010, 05:06
Re: MTA .map loader - by Haydz - 09.11.2010, 05:18
Re: MTA .map loader - by The_Moddler - 25.11.2010, 00:05
Re: MTA .map loader - by mick88 - 12.12.2010, 22:36
Re: MTA .map loader - by dragondex - 12.12.2010, 22:48
Re: MTA .map loader - by bamby - 13.01.2011, 02:45
Re: MTA .map loader - by twizeler - 12.02.2011, 08:20
Re: MTA .map loader - by mick88 - 12.02.2011, 08:27
Re: MTA .map loader - by twizeler - 12.02.2011, 08:35
Re: MTA .map loader - by Unknown123 - 12.02.2011, 09:13
Re: MTA .map loader - by mick88 - 12.02.2011, 09:15
Re: MTA .map loader - by Unknown123 - 12.02.2011, 09:34
Re: MTA .map loader - by [M.A]Angel[M.A] - 12.02.2011, 09:37
Re: MTA .map loader - by GhostDeath - 11.03.2013, 07:07
Re: MTA .map loader - by Linguritza - 28.05.2013, 11:56
Re: MTA .map loader - by Linguritza - 27.06.2013, 14:15

Forum Jump:


Users browsing this thread: 3 Guest(s)