SA-MP Forums Archive
Cant teleport to exterior - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Cant teleport to exterior (/showthread.php?tid=575791)



Cant teleport to exterior - Rissam - 30.05.2015

PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == pickup_store)
    {
        
SetPlayerPos(playerid,-30.946699,-89.609596,1003.546875);
        
SetPlayerInterior(playerid18);
    }
    if(
pickupid == pickup_storeint)
    {
           
SetPlayerPos(playerid,2118.1294,901.2576,10.8130);
           
SetPlayerFacingAngle(playerid270);
           
SetCameraBehindPlayer(playerid);
    }
    return 
1;

pickup_storeint doesnot works. Tell me what to do?


Re: Cant teleport to exterior - rainbowPUKE - 30.05.2015

What happen's when you enter the pickup?


Re: Cant teleport to exterior - Rissam - 30.05.2015

everything turns blue like when the samp server starts


Re: Cant teleport to exterior - jamesbond007 - 30.05.2015

SetPlayerInterior(playerid, 0);

when you exit the interior.


Re: Cant teleport to exterior - rainbowPUKE - 30.05.2015

PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == pickup_store)
    {
        
SetPlayerPos(playerid,-30.946699,-89.609596,1003.546875);
        
SetPlayerInterior(playerid18);
    }
    if(
pickupid == pickup_storeint)
    {
           
SetPlayerPos(playerid,2118.1294,901.2576,10.8130);
           
SetPlayerFacingAngle(playerid270);
           
SetPlayerInterior(playerid0);
           
SetCameraBehindPlayer(playerid);
    }
    return 
1;




Re: Cant teleport to exterior - NoDi522 - 30.05.2015

Hey man. Try to set virtualworld maybe:


PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == pickup_store)
    {
        
SetPlayerPos(playerid,-30.946699,-89.609596,1003.546875);
        
SetPlayerVirtualWorld(playerid,1// Try to set virtual world maybe.
        
SetPlayerInterior(playerid18);
    }
    if(
pickupid == pickup_storeint)
    {
           
SetPlayerPos(playerid,2118.1294,901.2576,10.8130);
           
SetPlayerFacingAngle(playerid270);
           
SetPlayerVirtualWorld(playerid,1// Try to set virtual world maybe.
           
SetCameraBehindPlayer(playerid);
    }
    return 
1;




Re: Cant teleport to exterior - Rissam - 31.05.2015

Quote:
Originally Posted by rainbowPUKE
Посмотреть сообщение
PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == pickup_store)
    {
        
SetPlayerPos(playerid,-30.946699,-89.609596,1003.546875);
        
SetPlayerInterior(playerid18);
    }
    if(
pickupid == pickup_storeint)
    {
           
SetPlayerPos(playerid,2118.1294,901.2576,10.8130);
           
SetPlayerFacingAngle(playerid270);
           
SetPlayerInterior(playerid0);
           
SetCameraBehindPlayer(playerid);
    }
    return 
1;

thanks rainbow it worked +rep


Re: Cant teleport to exterior - rainbowPUKE - 31.05.2015

No worries, goodluck mate.