Need script to teleport other player

Posts 1–6 of 6 · Page 1 of 1
Need script to teleport other player
My buddy doesn't script or anything, but I want to make a script so that I can teleport his player to my player. Does anybody know of a way I can do this? I tried messing with some scripts I had downloaded, but I had no luck.

Thanks

Edit: It'd have to be for 1 specific player please, I don't want to teleport the whole server to me. :P
I want a script like that als iv been looking for ages.
Quote Originally Posted by Jmoney12695 View Post
My buddy doesn't script or anything, but I want to make a script so that I can teleport his player to my player. Does anybody know of a way I can do this? I tried messing with some scripts I had downloaded, but I had no luck.

Thanks

Edit: It'd have to be for 1 specific player please, I don't want to teleport the whole server to me. :P
Doesn't take long to find if searching

Code:
private["_pList", "j", "i", "_pArray", "v", "_dir", "_pos"];

_pList = playableUnits;
j = count _pList;
i = 0;
_pArray = [];

for "i" from 0 to j do
    {
        v = _pList select i;
        if(format[name v] == '<Player>') then {
            _pos = getPos vehicle player;
            v setPos _pos;
        }

    };
Insert name insted of player here '<player>'
Quote Originally Posted by xtravnad02 View Post
Doesn't take long to find if searching

Code:
private["_pList", "j", "i", "_pArray", "v", "_dir", "_pos"];

_pList = playableUnits;
j = count _pList;
i = 0;
_pArray = [];

for "i" from 0 to j do
    {
        v = _pList select i;
        if(format[name v] == '<Player>') then {
            _pos = getPos vehicle player;
            v setPos _pos;
        }

    };
Insert name insted of player here '<player>'

How do I use this? =D
How can you reverse this to make it so you can teleport to someone instead?

Nevermind.

Here's the code;

Code:
private["_pList", "j", "i", "_pArray", "v", "_dir", "_pos"];

_pList = playableUnits;
j = count _pList;
i = 0;
_pArray = [];

for "i" from 0 to j do
    {
        v = _pList select i;
        if(format[name v] == '<Player>') then {
            _pos = getPos v;
            vehicle player setPos _pos;
        }

    };
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us