[Ayuda] Como darle mundos virtuales a un interior.
#3

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
Reply


Messages In This Thread
[Ayuda] Como darle mundos virtuales a un interior. - by smith006 - 05.04.2013, 06:15
Respuesta: [Ayuda] Como darle mundos virtuales a un interior. - by JustBored - 05.04.2013, 08:44
Respuesta: [Ayuda] Como darle mundos virtuales a un interior. - by smith006 - 05.04.2013, 21:32

Forum Jump:


Users browsing this thread: 1 Guest(s)