Teleport to a player (Witch TAB) - 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 to a player (Witch TAB) (
/showthread.php?tid=170999)
Teleport to a player (Witch TAB) -
wouter0100 - 24.08.2010
Hello,
I'm looking for a script that when you press TAB and then click on the name of the player (double click) that you teleport to that player,
And you also can turn to no one that you can teleport ..
Thanks
And sorry for my bad english .. (I'm Dutch)
Re: Teleport to a player (Witch TAB) -
Master™ - 24.08.2010
Wrong Section
https://sampforum.blast.hk/showthread.php?tid=118885
Re: Teleport to a player (Witch TAB) -
Bumbis - 24.08.2010
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new Float:X,Float:Y,Float:Z;
new string[256];
new clickedname[MAX_PLAYER_NAME];
GetPlayerName(clickedplayerid,clickedname,sizeof(clickedname));
GetPlayerPos(clickedplayerid,X,Y,Z);
SetPlayerPos(playerid,X+1,Y+1,Z);
format(string,sizeof(string),"* You have successfuly teleported to %s",clickedname);
SendClientMessage(playerid,0xAFAFAFAA,string);
return 1;
}
Here you go...Not tested, buy maybe works.
Re: Teleport to a player (Witch TAB) -
wouter0100 - 25.08.2010
TY :d It work