SA-MP Forums Archive
[Request] Tab Teleport System - 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)
+--- Thread: [Request] Tab Teleport System (/showthread.php?tid=374889)



[Request] Tab Teleport System - PinEvil - 04.09.2012

Hello can anyone code me a Tab Teleporting system for my server
I want cmds that are like /gotome to enable and /gotome to disable people from teleporting to you

It should when you click Tab and double click someones name to teleport to them

Thanks!


Re: [Request] Tab Teleport System - coole210 - 04.09.2012

https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer


Re: [Request] Tab Teleport System - RanSEE - 04.09.2012

pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{  
        // Need 3 float variables to store the X, Y and Z coordinates in
        new Float:x, Float:y, Float:z;
 
        // Use GetPlayerPos, passing the 3 float variables that we created
        GetPlayerPos(clickedplayerid,  x, y, z);

        // SetPlayerPos from: 3 float variables that we saved.
        SetPlayerPos(playerid, x,y,z);
    return 1;
}