Teleport to a player (Witch TAB)
#1

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

Wrong Section
https://sampforum.blast.hk/showthread.php?tid=118885
Reply
#3

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

TY :d It work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)