12.08.2011, 14:41
It's very easy. Look:
pawn Код:
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);
pawn Код:
#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;
}