Player to player teleport On click
#1

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?
Reply
#2

Код:
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;
}
Reply
#3

(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
Reply
#4

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
Reply
#5

yeah, because my pawno crashes sometimes while compiling
Reply
#6

ok ok, its fixed. ty
Reply
#7

no problem dude.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)