SA-MP Forums Archive
Player to player teleport On click - 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)
+--- Thread: Player to player teleport On click (/showthread.php?tid=301069)



Player to player teleport On click - SnG.Scot_MisCuDI - 03.12.2011

Hello, ive been searching for a command where any player, not just admins, can press Tab and on the score list (what ever its called) you click on the persons name and it teleport's the player to the other.. Any idea/scripts?


Re: Player to player teleport On click - THE_KNOWN - 03.12.2011

Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	new Float:p[3];
	GetPlayerPos(clickedplayerid,p[0],p[1],p[2]);
	SetPlayerPos(playerid,p[0]+2,p[1]+2,p[2]+2);
	return 1;
}



Re: Player to player teleport On click - SnG.Scot_MisCuDI - 03.12.2011

(295) : error 029: invalid expression, assumed zero
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
(295) : error 004: function "OnPlayerClickPlayer" is not implemented
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
(29 : error 017: undefined symbol "clickedplayerid"
pawn Код:
GetPlayerPos(clickedplayerid,p[0],p[1],p[2]);
(303) : warning 225: unreachable code
(303) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


Re: Player to player teleport On click - Tanush123 - 03.12.2011

Something should be wrong with your pawno, go on sa-mp.com and download the server files and copy that include samp to your server files include samp. and upload the other includes in the samp to ur file


Re: Player to player teleport On click - SnG.Scot_MisCuDI - 03.12.2011

yeah, because my pawno crashes sometimes while compiling


Re: Player to player teleport On click - SnG.Scot_MisCuDI - 03.12.2011

ok ok, its fixed. ty


Re: Player to player teleport On click - Tanush123 - 03.12.2011

no problem dude.