SA-MP Forums Archive
[HELP] Tab menu klik on player and 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: [HELP] Tab menu klik on player and teleport (/showthread.php?tid=121048)



[HELP] Tab menu klik on player and teleport - snabbo - 14.01.2010

Hi everyone,
look if you click on TAB then to see your son menu,
if you click then on one's name that you then to him teleport?
What is there the script for?

In advance thanks!
snabbo


Re: [HELP] Tab menu klik on player and teleport - Correlli - 14.01.2010

Have you tried to search? I believe this was asked and answered many times before.


Re: [HELP] Tab menu klik on player and teleport - [DM]Kane - 15.01.2010

Quote:
Originally Posted by snabbo
Hi everyone,
look if you click on TAB then to see your son menu,
if you click then on one's name that you then to him teleport?
What is there the script for?

In advance thanks!
snabbo
Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new pname[24], string[128], Float:x, Float:y, Float:z;
if(IsPlayerAdmin(playerid))
{
GetPlayerName(clickedplayerid, pname, MAX_PLAYER_NAME);
GetPlayerPos(clickedplayerid, x, y, z);
SetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "You have teleported to %s", pname);
SendClientMessage(playerid, YELLOW, string);
}
return 1;
}