Cant teleport to exterior
#1

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?
Reply
#2

What happen's when you enter the pickup?
Reply
#3

everything turns blue like when the samp server starts
Reply
#4

SetPlayerInterior(playerid, 0);

when you exit the interior.
Reply
#5

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;

Reply
#6

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;

Reply
#7

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
Reply
#8

No worries, goodluck mate.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)