Usar Varias veces el mismo interiores con checkpoint
#1

Hola quisiera saber si puedo usar varias veces el mismo interior ya que estoy creando entradas, salidas dinamicas y me gustaria saber si puedo usar un mismo interior varias veces. Gracias si es asi, ayudenme gracias
Reply
#2

Coloca diferentes VirtualWorld
Reply
#3

SetPlayerVirtualWorld(playerid, playerid);
Reply
#4

Quote:
Originally Posted by Zo0mer
Посмотреть сообщение
SetPlayerVirtualWorld(playerid, playerid);
No.

Debe usar un mundo virtual diferente por casa/negocio, no por usuario.
Reply
#5

Explicenme
Reply
#6

cambie la SetPlayerVirtualWorld(playerid, 100); este en uno
y la otra la puse SetPlayerVirtualWorld(playerid, 1); pero igual no puedo salgo y me manda al primer al segundo lugar
Reply
#7

Eso es porque en la detecciуn de cuando sales no obtienes el virtualworld, podrнas mostrar algъn trozo del code?
Reply
#8

Puedes usar cuando estйs dentro del interior if(GetPlayerVirtualWorld(playerid) == ID World) pero crea una variable que almacene el World de cada interior
Reply
#9

Entradas y Salidas
Quote:

forward EntrarSitioPublico(playerid);
public EntrarSitioPublico(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1833.7810,-1842.6967,13.5781)) //24/7 1
{
SetPlayerPos(playerid,-27.3589,-58.2691,1003.5469);
SetPlayerInterior(playerid, 6);
SetPlayerFacingAngle(playerid, 0);
TogglePlayerControllable(playerid, 0);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
TextDrawShowForPlayer(playerid, CajaCargando);
TextDrawShowForPlayer(playerid, TextCargando);
SetTimerEx("Mr", 3000, 0, "d", playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1315.3729,-898.0526,39.5781)) //24/7 2
{
SetPlayerPos(playerid,-31.0235,-92.0114,1003.5469);
SetPlayerInterior(playerid, 1;
SetPlayerFacingAngle(playerid, 90);
TogglePlayerControllable(playerid, 0);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
TextDrawShowForPlayer(playerid, CajaCargando);
TextDrawShowForPlayer(playerid, TextCargando);
SetTimerEx("Mr", 3000, 0, "d", playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, -1816.7018,618.6842,35.1719)) //Burguershot
{
SetPlayerPos(playerid,364.9348,-11.8002,1001.8516);
SetPlayerInterior(playerid, 9);
SetPlayerVirtualWorld(playerid, 100);
SetPlayerFacingAngle(playerid, 90);
TogglePlayerControllable(playerid, 0);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
TextDrawShowForPlayer(playerid, CajaCargando);
TextDrawShowForPlayer(playerid, TextCargando);
SetTimerEx("Mr", 3000, 0, "d", playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 928.9094,-1352.8210,13.343) //Burguershot
{
SetPlayerPos(playerid,364.9348,-11.8002,1001.8516);
SetPlayerInterior(playerid, 9);
SetPlayerVirtualWorld(playerid, 1);
SetPlayerFacingAngle(playerid, 90);
TogglePlayerControllable(playerid, 0);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
TextDrawShowForPlayer(playerid, CajaCargando);
TextDrawShowForPlayer(playerid, TextCargando);
SetTimerEx("Mr", 3000, 0, "d", playerid);
}

return 1;
}
forward SalidaSitioPublico(playerid);
public SalidaSitioPublico(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, -31.0235,-92.0114,1003.5469)) //24/7 1
{
SetPlayerPos(playerid,1315.3729,-898.0526,39.5781);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 0);
TogglePlayerControllable(playerid, 0);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
TextDrawShowForPlayer(playerid, CajaCargando);
TextDrawShowForPlayer(playerid, TextCargando);
SetTimerEx("Mr", 3000, 0, "d", playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1315.3729,-898.0526,39.5781)) //24/7 2
{
SetPlayerPos(playerid,1315.3729,-898.0526,39.5781);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerFacingAngle(playerid, 90);
TogglePlayerControllable(playerid, 0);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
TextDrawShowForPlayer(playerid, CajaCargando);
TextDrawShowForPlayer(playerid, TextCargando);
SetTimerEx("Mr", 3000, 0, "d", playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 364.9348,-11.8002,1001.8516)) //clukin
{
SetPlayerPos(playerid,-1816.7018,618.6842,35.1719);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerFacingAngle(playerid, 90);
TogglePlayerControllable(playerid, 0);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
TextDrawShowForPlayer(playerid, CajaCargando);
TextDrawShowForPlayer(playerid, TextCargando);
SetTimerEx("Mr", 3000, 0, "d", playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 364.9348,-11.8002,1001.8516)) //clukin
{
SetPlayerPos(playerid,928.9094,-1352.8210,13.343;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 90);
TogglePlayerControllable(playerid, 0);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
TextDrawShowForPlayer(playerid, CajaCargando);
TextDrawShowForPlayer(playerid, TextCargando);
SetTimerEx("Mr", 3000, 0, "d", playerid);
}
return 1;
}

Reply
#10

wharlos
Esas son las lineas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)