SA-MP Forums Archive
Teleport - 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 (/showthread.php?tid=71092)



Teleport - Martinike - 29.03.2009

Код:
UP: 246.3505, 87.48753, 1003.641

DOWN: 1556.78, -1675.778, 28.39545
This will to where tele to into PD up [ 246.3505, 87.48753, 1003.641 ]
Place where to tele: 1556.78, -1675.778, 28.39545
Код:
	if(strcmp(cmd, "/pdup", true) == 0)
	{
	  if(gTeam[playerid] == 2 || IsACop(playerid))
	  {
			if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			{

			}
			else
			{
			SendClientMessage(playerid, COLOR_GRAD1, " You are not cop!");
			}
		}
		return 1;
	}
This is where to tele to into PD down [ 1556.78, -1675.778, 28.39545 ]
Place where to tele down: 246.3505, 87.48753, 1003.641
Код:
	if(strcmp(cmd, "/pddown", true) == 0)
	{
	  if(gTeam[playerid] == 2 || IsACop(playerid))
	  {
			if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			{
			
			}
			else
			{
			SendClientMessage(playerid, COLOR_GRAD1, " You are not cop!");
			}
		}
		return 1;
	}
Thanks if anyone makes!


Re: Teleport - Martinike - 29.03.2009

Bump, sorry for bump! I need it! Please help!!


Re: Teleport - harly - 29.03.2009

Код:
    if(strcmp(cmd, "/pddown", true) == 0)
	{
	  if(gTeam[playerid] == 2 || IsACop(playerid))
       {
      if(!PlayerToPoint(246.3505, 87.48753, 1003.641);
      SendClientMessage(playerid, COLOR, "you are not in the right position");
      }
	  {
 			if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			{
            if(PlayerToPoint(246.3505, 87.48753, 1003.641);
			SetPlayerPos(playerid, 246.3505, 87.48753, 1003.641);
			}
			else
			{
			SendClientMessage(playerid, COLOR_GRAD1, "  You are not cop!");
			}
		}
		return 1;
	}
Код:
	if(strcmp(cmd, "/pdup", true) == 0)
	{
	  if(gTeam[playerid] == 2 || IsACop(playerid))
	  {
      if(!PlayerToPoint(246.3505, 87.48753, 1003.641);
      {
      SendClientMessage(playerid, "your not in the right position);
			if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			{
            SetPlayerPos(playerid, 1556.78, -1675.778, 28.39545);
            if(PlayerToPoint(1556.78, -1675.778, 28.39545);
			}
			else
			{
			SendClientMessage(playerid, COLOR_GRAD1, "  You are not cop!");
			}
		}
		return 1;
	}
Im also a script beginner, but i dont know if thats right, its untested.


Re: Teleport - ICECOLDKILLAK8 - 29.03.2009

And also if thier going into the PD make sure you set thier Interior to 6 (or 5, I cant remember which) otherwise they will just fall though the sky.


Re: Teleport - Martinike - 29.03.2009

How i set interior ?


Re: Teleport - harly - 29.03.2009

SetPlayerInterior(playerid, 6);


Re: Teleport - Martinike - 29.03.2009

Quote:
Originally Posted by harly
Код:
    if(strcmp(cmd, "/pddown", true) == 0)
	{
	  if(gTeam[playerid] == 2 || IsACop(playerid))
      {
      if(!PlayerToPoint(246.3505, 87.48753, 1003.641);
      SendClientMessage(playerid, COLOR, "you are not in the right position");
      }
	  {
 			if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			{
            if(PlayerToPoint(246.3505, 87.48753, 1003.641);
			SetPlayerPos(playerid, 246.3505, 87.48753, 1003.641);
			}
			else
			{
			SendClientMessage(playerid, COLOR_GRAD1, " You are not cop!");
			}
		}
		return 1;
	}
Код:
	if(strcmp(cmd, "/pdup", true) == 0)
	{
	  if(gTeam[playerid] == 2 || IsACop(playerid))
	  {
     if(!PlayerToPoint(246.3505, 87.48753, 1003.641);
     {
     SendClientMessage(playerid, "your not in the right position);
			if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			{
            SetPlayerPos(playerid, 1556.78, -1675.778, 28.39545);
            if(PlayerToPoint(1556.78, -1675.778, 28.39545);
			}
			else
			{
			SendClientMessage(playerid, COLOR_GRAD1, " You are not cop!");
			}
		}
		return 1;
	}
Im also a script beginner, but i dont know if thats right, its untested.
Код:
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1825) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1829) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1841) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1845) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1849) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1853) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1857) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1861) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1865) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1877) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1881) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1885) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1889) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1893) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1905) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1909) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1913) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1925) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(1929) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(3852) : error 004: function "CrimInRange" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(4055) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(4662) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(4739) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(5426) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(5432) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(5438) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.



Re: Teleport - ICECOLDKILLAK8 - 29.03.2009

You need to find the PlayerToPoint and CrimInRange functions


Re: Teleport - Martinike - 29.03.2009

How ?


Re: Teleport - harly - 29.03.2009

https://sampwiki.blast.hk/wiki/Automatic_Gates

Help with a PlayerToPoint there.