28.07.2012, 19:12
Quote:
You won't be able to see objects in a virtual world unless you spawn the objects in that world,
That is if it's your map. ******: How to spawn objects in a virtual world That should tell you how. Hope this helped |
Edit: If I use my Dialog Teleport I can see object's without killing my self before I teleport to that map. What's the difference??
pawn Код:
case 1:
{
if(gCommandsDisabled[playerid]==true)
{
ShowPlayerDialog(playerid, DIALOG_EVADE, DIALOG_STYLE_MSGBOX, "Leave Menu", "You must Leave first before using this command", "Leave", "Cancel");
return 1;
}
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{6666FF}(/cs) {00CCFF}%s {6666FF}has Teleported to Counter Strike",pName);
GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Counter-Strike",2000,3);
SetPlayerVirtualWorld(playerid, 2);
DestroyVehicle(GetPlayerVehicleID(playerid));
SendClientMessageToAll(playerid, string);
new Random = random(sizeof(RandomSpawnCsDM));
SetPlayerPos(playerid, RandomSpawnCsDM[Random][0], RandomSpawnCsDM[Random][1], RandomSpawnCsDM[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawnCsDM[Random][3]);
CreateDynamicObject(10946, -2261.0671386719, 1785.4710693359, 3.3126780986786, 0, 0, 0,2,-1,-1,300.0);
CreateDynamicObject(10946, -2260.9309082031, 1832.5231933594, 3.2876780033112, 0, 0, 180,2,-1,-1,300.0);
CreateDynamicObject(5463, -2259.2067871094, 1808.7338867188, 27.753015518188, 0, 0, 0,2,-1,-1,300.0);
CreateDynamicObject(3887, -2228.0598144531, 1847.9217529297, 9.663948059082, 0, 0, 270,2,-1,-1,300.0);