SA-MP Forums Archive
[Ayuda] Como darle mundos virtuales a un interior. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Ayuda] Como darle mundos virtuales a un interior. (/showthread.php?tid=428260)



[Ayuda] Como darle mundos virtuales a un interior. - smith006 - 05.04.2013

Bueno, quisiera darle mundos virtuales a un ammu-nation para ponerlos en varios lugares con un mundo virtual diferente, pero no tengo idea como hacerlo, les agradecerнa si me ayudaran, dejare el comando para que vean las coordenadas y como lo tengo.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
DetectarTeleport(playerid);
}
return 1;
}
public DetectarTeleport(playerid)
{
if(PlayerToPoint(1,playerid, 2233.0925,-1159.7526,25.8906))
{
SetPlayerPos(playerid, 296.7678,-111.8191,1001.5156);
SetPlayerInterior(playerid, 6);

return 1;
}

if(PlayerToPoint(1,playerid, 296.7678,-111.8191,1001.5156))
SetPlayerPos(playerid, 2233.0925,-1159.7526,25.8906);
SetPlayerInterior(playerid, 0);
return 1;
}



Respuesta: [Ayuda] Como darle mundos virtuales a un interior. - JustBored - 05.04.2013

SetPlayerVirtualWorld(playerid, 1 // o 2 o 3 o 4 y asн vas cambiando entre mundo virtual);


Respuesta: [Ayuda] Como darle mundos virtuales a un interior. - smith006 - 05.04.2013

Ahora pasa que cuando salgo de unos de los ammu nation, digamos el que tiene el mundo 4 aparezco en la salida de otro que tiene el mundo 2, y asн pasa con todos, no aparecen en su respectiva salida.
Todos al salir del interior con el mundo virtual aparecen en la salida del otro.

Dejo el codigo:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
DetectarTeleport(playerid);
}
return 1;
}
public DetectarTeleport(playerid)
{
if(PlayerToPoint(1,playerid, 2233.0925,-1159.7526,25.8906))//Armeria Ballas
{
SetPlayerPos(playerid, 296.7678,-111.8191,1001.5156);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}

if(PlayerToPoint(1,playerid, 296.7678,-111.8191,1001.5156))
{
SetPlayerPos(playerid, 2233.0925,-1159.7526,25.8906);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
if(PlayerToPoint(1,playerid, 2520.2524,-1673.6304,14.7688))//Armeria Grove
{
SetPlayerPos(playerid, 296.7678,-111.8191,1001.5156);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 1);
return 1;
}

if(PlayerToPoint(1,playerid, 296.7678,-111.8191,1001.5156))
{
SetPlayerPos(playerid, 2520.2524,-1673.6304,14.7688);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 1);
return 1;
}

if(PlayerToPoint(1,playerid, 2808.0308,-1190.8811,25.3423))//Armeria Vagos
{
SetPlayerPos(playerid, 296.7678,-111.8191,1001.5156);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 2);
return 1;
}

if(PlayerToPoint(1,playerid, 296.7678,-111.8191,1001.5156))
{
SetPlayerPos(playerid, 2808.0308,-1190.8811,25.3423);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 2);
return 1;
}

if(PlayerToPoint(1,playerid, 1568.5902,-1689.9794,6.2188))//Armeria SAPD
{
SetPlayerPos(playerid, 296.7678,-111.8191,1001.5156);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 3);
return 1;
}

if(PlayerToPoint(1,playerid, 296.7678,-111.8191,1001.5156))
{
SetPlayerPos(playerid, 1568.5902,-1689.9794,6.2188);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 3);
return 1;
}


if(PlayerToPoint(1,playerid, 2163.5942,-2270.0632,13.3150))//Armeria Yakuza
{
SetPlayerPos(playerid, 296.7678,-111.8191,1001.5156);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 4);
return 1;
}

if(PlayerToPoint(1,playerid, 296.7678,-111.8191,1001.5156))
{
SetPlayerPos(playerid, 2163.5942,-2270.0632,13.3150);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 4);
}
return 1;
}
En este caso todos aparecen en la salida de groove