[HELP] Tab menu klik on player and teleport
#1

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

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

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)