4 hours ago
* =============================================================================
* MAP LOADER / MAP MANAGER - Hot load maps without server restart
* =============================================================================
*
* ENGLISH:
* Load and unload maps from .txt files at runtime. Requires streamer plugin.
* Place map files in scriptfiles/maps/ (e.g. mymap.txt). Optional remove
* file: mymapremove.txt (RemoveBuildingForPlayer lines).
*
* USAGE:
* #include <streamer>
* #include <map_loader>
*
* LoadMap("map_name"); - load map (OnGameModeInit or anytime)
* LoadMap("map_name", playerid); - load and send stream update to that player
* UnloadMap("map_name"); - destroy all objects of that map
* ReloadMap("map_name"[, playerid]); - unload then load
*
* COMMANDS (requires PAWNCMD_INC_ and RCON admin):
* /mapreload [map_name] - load or reload a map
* /mapremove [map_name] - load ime_mape_remove.txt and apply remove building to all players
*
* SUPPORTED FORMATS IN .txt:
* CreateObject, CreatePlayerObject, CreateDynamicObject, CreateDynamicObjectEx
* SetObjectMaterial / SetDynamicObjectMaterial, SetObjectMaterialText / SetDynamicObjectMaterialText
* Raw numbers (modelid x y z rx ry rz ...), remove: RemoveBuildingForPlayer(...) or 5 numbers per line
*
* OPTIONAL DEFINES BEFORE INCLUDE:
* MAPLOADER_MAX_MAPS, MAPLOADER_MAX_OBJECTS_PER_MAP, MAPLOADER_PATH_PREFIX,
* MAPLOADER_FILE_EXT, MAPLOADER_DEFAULT_STREAM_DISTANCE, MAPLOADER_BATCH_SIZE, etc.
*
* -----------------------------------------------------------------------------
* AUTHOR: William Sparrow (sparrowww.aMx)
* FORUM: https://gtablkn.gg/profile/27196
* FACEBOOK: https://www.facebook.com/william.sparrow.5203
* YOUTUBE: https://www.youtube.com/@williamsparrow6053
* Made for Fusion Gaming, released for the community.
* =============================================================================
*
* BALKAN:
* Ucitavanje i brisanje mapa iz .txt fajlova u runtime-u. Koristi streamer
* plugin. Mape stavite u scriptfiles/maps/ (npr. mojamapa.txt). Opciono
* remove fajl: mojamaparemove.txt (RemoveBuildingForPlayer linije).
*
* KORISTENJE:
* #include <streamer>
* #include <map_loader>
*
* LoadMap("ime_mape"); - ucitaj mapu (OnGameModeInit ili bilo kada)
* LoadMap("ime_mape", playerid); - ucitaj i posalji stream update tom igracu
* UnloadMap("ime_mape"); - obrisi sve objekte te mape
* ReloadMap("ime_mape"[, playerid]); - unload pa load
*
* KOMANDE (zahtijeva PAWNCMD_INC_ i RCON admin):
* /mapreload [ime_mape] - ucitaj ili ponovo ucitaj mapu
* /mapremove [ime_mape] - ucitaj ime_mape_remove.txt i primijeni remove building na sve igrace
*
* PODRZANI FORMATI U .txt:
* CreateObject, CreatePlayerObject, CreateDynamicObject, CreateDynamicObjectEx
* SetObjectMaterial / SetDynamicObjectMaterial, SetObjectMaterialText / SetDynamicObjectMaterialText
* Cisti brojevi (modelid x y z rx ry rz ...), remove: RemoveBuildingForPlayer(...) ili 5 brojeva
*
* OPCIONO DEFINIRATI PRIJE INCLUDE-A:
* MAPLOADER_MAX_MAPS, MAPLOADER_MAX_OBJECTS_PER_MAP, MAPLOADER_PATH_PREFIX,
* MAPLOADER_FILE_EXT, MAPLOADER_DEFAULT_STREAM_DISTANCE, MAPLOADER_BATCH_SIZE, itd.
*
* AUTOR: William Sparrow (sparrowww.aMx)
* FORUM: https://gtablkn.gg/profile/27196
* FACEBOOK: https://www.facebook.com/william.sparrow.5203
* YOUTUBE: https://www.youtube.com/@williamsparrow6053
* Napravljeno za Fusion Gaming, objavljeno za zajednicu.
* =============================================================================
* MAP LOADER / MAP MANAGER - Hot load maps without server restart
* =============================================================================
*
* ENGLISH:
* Load and unload maps from .txt files at runtime. Requires streamer plugin.
* Place map files in scriptfiles/maps/ (e.g. mymap.txt). Optional remove
* file: mymapremove.txt (RemoveBuildingForPlayer lines).
*
* USAGE:
* #include <streamer>
* #include <map_loader>
*
* LoadMap("map_name"); - load map (OnGameModeInit or anytime)
* LoadMap("map_name", playerid); - load and send stream update to that player
* UnloadMap("map_name"); - destroy all objects of that map
* ReloadMap("map_name"[, playerid]); - unload then load
*
* COMMANDS (requires PAWNCMD_INC_ and RCON admin):
* /mapreload [map_name] - load or reload a map
* /mapremove [map_name] - load ime_mape_remove.txt and apply remove building to all players
*
* SUPPORTED FORMATS IN .txt:
* CreateObject, CreatePlayerObject, CreateDynamicObject, CreateDynamicObjectEx
* SetObjectMaterial / SetDynamicObjectMaterial, SetObjectMaterialText / SetDynamicObjectMaterialText
* Raw numbers (modelid x y z rx ry rz ...), remove: RemoveBuildingForPlayer(...) or 5 numbers per line
*
* OPTIONAL DEFINES BEFORE INCLUDE:
* MAPLOADER_MAX_MAPS, MAPLOADER_MAX_OBJECTS_PER_MAP, MAPLOADER_PATH_PREFIX,
* MAPLOADER_FILE_EXT, MAPLOADER_DEFAULT_STREAM_DISTANCE, MAPLOADER_BATCH_SIZE, etc.
*
* -----------------------------------------------------------------------------
* AUTHOR: William Sparrow (sparrowww.aMx)
* FORUM: https://gtablkn.gg/profile/27196
* FACEBOOK: https://www.facebook.com/william.sparrow.5203
* YOUTUBE: https://www.youtube.com/@williamsparrow6053
* Made for Fusion Gaming, released for the community.
* =============================================================================
*
* BALKAN:
* Ucitavanje i brisanje mapa iz .txt fajlova u runtime-u. Koristi streamer
* plugin. Mape stavite u scriptfiles/maps/ (npr. mojamapa.txt). Opciono
* remove fajl: mojamaparemove.txt (RemoveBuildingForPlayer linije).
*
* KORISTENJE:
* #include <streamer>
* #include <map_loader>
*
* LoadMap("ime_mape"); - ucitaj mapu (OnGameModeInit ili bilo kada)
* LoadMap("ime_mape", playerid); - ucitaj i posalji stream update tom igracu
* UnloadMap("ime_mape"); - obrisi sve objekte te mape
* ReloadMap("ime_mape"[, playerid]); - unload pa load
*
* KOMANDE (zahtijeva PAWNCMD_INC_ i RCON admin):
* /mapreload [ime_mape] - ucitaj ili ponovo ucitaj mapu
* /mapremove [ime_mape] - ucitaj ime_mape_remove.txt i primijeni remove building na sve igrace
*
* PODRZANI FORMATI U .txt:
* CreateObject, CreatePlayerObject, CreateDynamicObject, CreateDynamicObjectEx
* SetObjectMaterial / SetDynamicObjectMaterial, SetObjectMaterialText / SetDynamicObjectMaterialText
* Cisti brojevi (modelid x y z rx ry rz ...), remove: RemoveBuildingForPlayer(...) ili 5 brojeva
*
* OPCIONO DEFINIRATI PRIJE INCLUDE-A:
* MAPLOADER_MAX_MAPS, MAPLOADER_MAX_OBJECTS_PER_MAP, MAPLOADER_PATH_PREFIX,
* MAPLOADER_FILE_EXT, MAPLOADER_DEFAULT_STREAM_DISTANCE, MAPLOADER_BATCH_SIZE, itd.
*
* AUTOR: William Sparrow (sparrowww.aMx)
* FORUM: https://gtablkn.gg/profile/27196
* FACEBOOK: https://www.facebook.com/william.sparrow.5203
* YOUTUBE: https://www.youtube.com/@williamsparrow6053
* Napravljeno za Fusion Gaming, objavljeno za zajednicu.
* =============================================================================

