28.06.2016, 20:22
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
|
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; } |