12.08.2011, 12:56
How can I use my maps in different world like world 2 3 etc not in 0
#include <a_samp>
#include <core>
#include <float>
#include <random>
#include "a_samp"
#define YOUR_WORLD_ID_GLOBAL (2)
public OnPlayerConnect(playerid)
{
SetPlayerVirtualWorld(playerid, YOUR_WORLD_ID_GLOBAL);
return true;
}
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);
#include "a_samp"
#include "streamer"
#define GLOBAL_VIRTUAL_WORLD (2) // Your virtual world.
public OnGameModeInit()
{
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, GLOBAL_VIRTUAL_WORLD, interiorid = -1, playerid = -1, Float:distance = 200.0);
return true;
}
public OnGameModeExit()
{
DestroyAllDynamicObjects();
return true;
}
public OnPlayerConnect(playerid)
{
SetPlayerVirtualWorld(playerid, GLOBAL_VIRTUAL_WORLD);
return true;
}