Teleport help
#1

for example...
i would like to put a red marker into the sweet's house (coordinates: 2525.8318,-1679.3134,1015.4986 = interior 1) which would lead into the interior 0 with coordinates 2522.7598,-1679.1478,15.4970

how?
Reply
#2

When entering the interior, set a checkpoint and a variable (Example: 1). Then in OnPlayerEnterCheckpoint, check if the variable is 1 -> Set his pos to that coordinates and interior 0.

I believe you won't understand. If I were you, I'd use pickups for interiors in stead of checkpoints.
Reply
#3

i'm allmost done..
just..
i don't know what cmnd should i use in here:
if(pickupid) .........
only that left.. thx a lot
Reply
#4

Код:
SetPlayerPos(playerid,2525.8318,-1679.3134,1015.4986);
SetPlayerInterior(playerid,1);
that?
Reply
#5

errmm :/
i've got this:
Quote:

public OnGameModeInit()
{
CreatePickup(1239,23,2525.8318,-1679.3134,1015.4986,-1);
return 1;

and now..
i have this(i don't know what to put at the end)

Quote:

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid) ..h.e.r.e....c.o.m.e.s....s.o.m.e.t.h.i.n.g...
return 1;
}

Reply
#6

pawn Код:
public OnGameModeInit()
{
new pickup1 == CreatePickup(1239,23,2525.8318,-1679.3134,1015.4986,-1);
return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup1)
{
SetPlayerPos(playerid,2525.8318,-1679.3134,1015.4986);
SetPlayerInterior(playerid,1);
}
return 1;
}
Sorry for identation :L
Reply
#7

that's just what i needed..
thx a lot
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)