Jump to content

Recommended Posts

Is there a way I can enable teleport for just 1 player , as at the moment if i place the following code in 1 palyers .ini it seems that all players then can teleport ? -

onMapSingleClick "player setPos _pos";

Share this post


Link to post
Share on other sites

Hi,

if (local this) then
{
  onMapSingleClick { player setPosATL _pos };
};

_neo_

Share this post


Link to post
Share on other sites

waitUntil {!isNull player};
if (player == cheater) then
{
  onMapSingleClick { player setPosATL _pos };
};  

Where the name of the unit is cheater.

Share this post


Link to post
Share on other sites
waitUntil {!isNull player};
if (player == cheater) then
{
  onMapSingleClick { player setPosATL _pos };
};  

Where the name of the unit is cheater.

Works great for me.

:rolleyes:

Share this post


Link to post
Share on other sites

place the code inside a spawn if used in player init:

_null = [] spawn {
     <code here>
};

but easiest way is to just place it in init.sqf

Edit: you can also just use playerUID also in init.sqf then it doesnt matter wht unit the teleportinbg player chooses, he will always get the ability.

Edited by Demonized

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×