Teleport to interiors
#1

How do i teleport to interiors? for example, i made a checkpoint and i want to make it teleport players to big smoke's crack palace

public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid,1380,-22,100;
return 1;
}


public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid,-49.9669,-269.3635,6.6332, 3.;
return 1;
}


i teleport in air then i fall in a countryside...
}
Reply
#2

You need to find out the coordinates of the interior, and then SetPlayerPos them to the coordinates, and then set their interior using SetPlayerInterior(playerid, interiorid);
Reply
#3

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    SetPlayerPos(playerid,1380,-22,1008);
    SetPlayerInterior(playerid,interiorid); //interior id of the teleport place
    return 1;
}
Reply
#4

http://weedarr.wikidot.com/interior
For list of available interiors.
Reply
#5

You are best setting the interior first so you don't have an issue with falling through the floor (sometimes).
Reply
#6

Quote:
Originally Posted by sizeof(Sky));
You need to find out the coordinates of the interior, and then SetPlayerPos them to the coordinates, and then set their interior using SetPlayerInterior(playerid, interiorid);
Quote:
Originally Posted by ►Peter Corneile [ideal-host.co.uk
◄ ]
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    SetPlayerPos(playerid,1380,-22,1008);
    SetPlayerInterior(playerid,interiorid); //interior id of the teleport place
    return 1;
}
Quote:
Originally Posted by Donny
You are best setting the interior first so you don't have an issue with falling through the floor (sometimes).
Quote:
Originally Posted by ►ϻozilla Fir3foж◄
http://weedarr.wikidot.com/interior
For list of available interiors.
Thanks to all, it worked
Reply
#7

Quote:
Originally Posted by ►ϻozilla Fir3foж◄
http://weedarr.wikidot.com/interior
For list of available interiors.
wow, thanks for that link man
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)