Teleport help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Teleport help (
/showthread.php?tid=240312)
Teleport help -
AVG_Free - 15.03.2011
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?
Re: Teleport help -
Jochemd - 15.03.2011
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.
Re: Teleport help -
AVG_Free - 15.03.2011
i'm allmost done..
just..
i don't know what cmnd should i use in here:
if(pickupid) .........
only that left.. thx a lot
Re: Teleport help -
hadzx - 15.03.2011
Код:
SetPlayerPos(playerid,2525.8318,-1679.3134,1015.4986);
SetPlayerInterior(playerid,1);
that?
Re: Teleport help -
AVG_Free - 15.03.2011
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;
}
|
Re: Teleport help -
Marricio - 15.03.2011
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
Re: Teleport help -
AVG_Free - 15.03.2011
that's just what i needed..
thx a lot