15.03.2010, 16:14

WireZ
_____________
WireZinfinity
MTA map streamer addon
|----------------------------------------Preview----------------------------------------|
~From this~
MTA
MTA

~To this~
SA-MP

With just one line of code
Code:
LoadObjects(filename[]);
|----------------------------------------About----------------------------------------|
WireZ comes in two flavors: WireZ and WireZinfinity
They both currently support two streamers
Midostream
Incognito's Streamer Plugin
They both currently support two streamers
Midostream
Incognito's Streamer Plugin
So what is WireZ?
WireZ is an include scripted to build wires from MTA .map files to your gamemode, directly
No converters are needed, no copying large text into your gamemode, then sorting it out
WireZ does all the converting for you, and links these objects to your favorite streamer
All you have to do is write one line for every map you want to stream
WireZ is an include scripted to build wires from MTA .map files to your gamemode, directly
No converters are needed, no copying large text into your gamemode, then sorting it out
WireZ does all the converting for you, and links these objects to your favorite streamer
All you have to do is write one line for every map you want to stream
What is WireZinfinity?
WireZinfinity is a modified flavor of WireZ
The infinity version lets you Unload maps as well as stream them
Although, this comes at a price, streamed objects are limited to 5000 objects
WireZinfinity is a modified flavor of WireZ
The infinity version lets you Unload maps as well as stream them
Although, this comes at a price, streamed objects are limited to 5000 objects
|----------------------------------------Download----------------------------------------|
_________________________________________________Notes
When using WireZ, it automatically detects whether the map you are loading is from New MTA or from Old MTA
WireZ can load both versions, but New MTA maps have more functionality
Each Streamer supported version needs the required streamer...
If you would like a streamer supported, please post the direct link to a WORKING download to it
The source files are the .inc files, so please don't post asking where the source is...(Plus, I was too damn tired to post additional downloads)
READ INSTRUCTIONS CAREFULLY AND THORUGHLY!!!
Usage
WireZinfinity (Incognito Streamer Plugin supported)
The infinity version of WireZ only lets you stream unlimited objects
Notes: (Please read, so as not to get confused)
-FileName[] must be replaced by the map you want to load (Look at example)
-Must include the file's extension
-With the new MTA maps, interior id can be set to auto (Whereby, the interior you placed you objects in MTA determines the interiorid)
-NEW MTA MAPS ONLY: Interior must be replaced by -2 (See above note), -1 (Streaming for all interiorids) or an InteriorID number of your choice
-OLD MTA MAPS ONLY: Interior must be replaced by -1(Stream for all interiorids) or an InteriorID number of your choice
Installation:
- Copy WireZinfinity.inc to your includes folder
- Include (At the top of your gamemode/filterscript)
Code:
#include <WireZinfinity >
Functions:
Code:
LoadObjects(FileName[], interior, playerid, Float:distance);
public OnPlayerConnect(playerid)
Code:
LoadObjects("test.map", -2, playerid, 200.0); // Automatically streams for created interiorid (For new MTA maps ONLY!!!)
Code:
LoadObjects("tracks/track2.track", 0, playerid, 500.0); // Streaming map track2.track from the file tracks into interior world id 0
WireZ allows for Loaded objects to be unloaded via their file names
Notes: (Please read, so as not to get confused)
-FileName[] must be replaced by the map you want to load (Look at example)
-Must include the file's extension
-With the new MTA maps, interior id can be set to auto (Whereby, the interior you placed you objects in MTA determines the interiorid)
-NEW MTA MAPS ONLY: Interior must be replaced by -2 (See above note), -1 (Streaming for all interiorids) or an InteriorID number of your choice
-OLD MTA MAPS ONLY: Interior must be replaced by -1(Stream for all interiorids) or an InteriorID number of your choice
-OBJECT LIMITATIONS (WireZ only): 5000
Installation:
- Copy WireZ.inc to your includes folder
- Include (At the top of your gamemode/filterscript)
Code:
#include <WireZ>
Functions:
Code:
LoadObjects(FileName[], interior, playerid, Float:distance); UnloadObjects(FileName[]);
public OnPlayerConnect(playerid)
Code:
LoadObjects("test.map", -2, playerid, 200.0); // Automatically streams for created interiorid (For new MTA maps ONLY!!!)
Code:
UnloadObjects("test.map"); // Unloads all the objects contained within the map defined, if there is no map, it gives an error in the console...
WireZinfinity (Midostream supported)
The infinity version of WireZ only lets you stream unlimited objects
Notes: (Please read, so as not to get confused)
-FileName[] must be replaced by the map you want to load (Look at example)
-Must include the file's extension
-With the Midostream supported version, there is no interiorid stream
Installation:
- Copy WireZinfinity.inc to your includes folder
- Include (At the top of your gamemode/filterscript)
Code:
#include <WireZinfinity >
Functions:
Code:
LoadObjects(FileName[], Float:distance);
public OnPlayerConnect(playerid)
Code:
LoadObjects("test.map", 200.0); // Streaming at a distance of 200 units
Code:
LoadObjects("tracks/track2.track", 500.0); // Streaming map track2.track from the file: tracks
WireZ allows for Loaded objects to be unloaded via their file names
Notes: (Please read, so as not to get confused)
-FileName[] must be replaced by the map you want to load (Look at example)
-Must include the file's extension
-As with the previous infinity flavor version of WireZ, object limit is 5000
Installation:
- Copy WireZ.inc to your includes folder
- Include (At the top of your gamemode/filterscript)
Code:
#include <WireZ >
Functions:
Code:
LoadObjects(FileName[], Float:distance); LoadObjects(FileName[]);
public OnPlayerConnect(playerid)
Code:
LoadObjects("test.map", 200.0); // Streaming at a distance of 200 units
Code:
UnloadObjects("tracks/track2.track"); // Unloads the objects that were loaded from the track2.map map from the file: tracks