SA-MP Forums Archive
Scripting tele markers - 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: Scripting tele markers (/showthread.php?tid=69999)



Scripting tele markers - Enzo_Ferrari_V12 - 22.03.2009

I'm kinda noobie.... I've loked arond all day but can't find it.

I want to add markers at these coordinates

AddPlayerClass(70,2503.1743,2773.1108,10.8203,88.2 857,0,0,0,0,0,0); // TELE!

AddPlayerClass(70,2491.8347,2773.3547,10.8009,266. 8076,0,0,0,0,0,0); // TELE

(I know that's for spawn, but that's just so you know where I want the markers)

Anyway, make it to where if you touch one, you go to the other one and vise versa. Also, keep your vehicle when you teleport.

How do I script this?


Since I'm new, how exactly would I do all of this? I just know how to set classes and vehicle spawns. Can someone PM their IM email? I want someone to teach me please




Re: Scripting tele markers - *ToM* - 22.03.2009

What exactly do you want to do ? Do you want to make a command to teleport you somewhere ? if so, try this...

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmd, "/blahblahblah", true) == 0)
	{
		if (GetPlayerState(playerid) == 2)
		{
			new tmpcar = GetPlayerVehicleID(playerid);
			SetVehiclePos(tmpcar, 2503.1743,2773.1108,10.8203);
		}
		else
		{
			SetPlayerPos(playerid, 2503.1743,2773.1108,10.8203);
		}
		SetPlayerInterior(playerid,0);
		return 1;
	}
Im not sure what exactly you want to do...


Re: Scripting tele markers - Enzo_Ferrari_V12 - 22.03.2009

Like set up a red checkpoint or an "i" and when you step in it, you get telied to another checkpoint or "i" and vise versa. Oh and keep your vehicle,


Re: Scripting tele markers - mascii - 22.03.2009

You will need to use a checkpoint streamer, so look that up because you need if you want to make more than 1 checkpoint