Jump to content

[How To] Disable the 1.0.2 Anti-TP protection


Radiix

Recommended Posts

I've added this

if ((getPlayerUID player) in ["xxxxxxx","xxxxxxx"]) then { //skip

Right before the Anti Tp script, making it look like this 

 
if ((getPlayerUID player) in ["xxxxxxx","xxxxxxx"]) then { //skip
if (!isNil "_mylastPos") then {
_lastPos = getPosATL _refObj;
if (_adminMapTP < 1) then {
if (!_inVehicle) then {
if (_mylastPos distance _lastPos > _maxDistancePlayer) then {
if (alive player) then {
player setPosATL _mylastPos;
diag_log ("Player Teleport Revert : "+ str(_mylastPos distance _lastPos));
};
};
} else {
if (_mylastPos distance _lastPos > _maxDistanceVehicle) then {
if (alive player) then {
player setPosATL _mylastPos;
diag_log ("Vehicle Teleport Revert : "+ str(_mylastPos distance _lastPos));
};
};
};
} else {
player setVariable["adminMapTP",0,true];
_myLastPos = getPosATL _refObj;
_lastPos = getPosATL _refObj;
};
};
 
And it worked, while all Player ID included can TP, admin can also tp otehr player, not sure if it's a flaw in that or is due from me Teleporting someone
Link to comment
Share on other sites

 

I've added this

if ((getPlayerUID player) in ["xxxxxxx","xxxxxxx"]) then { //skip

Right before the Anti Tp script, making it look like this 

 
if ((getPlayerUID player) in ["xxxxxxx","xxxxxxx"]) then { //skip
if (!isNil "_mylastPos") then {
_lastPos = getPosATL _refObj;
if (_adminMapTP < 1) then {
if (!_inVehicle) then {
if (_mylastPos distance _lastPos > _maxDistancePlayer) then {
if (alive player) then {
player setPosATL _mylastPos;
diag_log ("Player Teleport Revert : "+ str(_mylastPos distance _lastPos));
};
};
} else {
if (_mylastPos distance _lastPos > _maxDistanceVehicle) then {
if (alive player) then {
player setPosATL _mylastPos;
diag_log ("Vehicle Teleport Revert : "+ str(_mylastPos distance _lastPos));
};
};
};
} else {
player setVariable["adminMapTP",0,true];
_myLastPos = getPosATL _refObj;
_lastPos = getPosATL _refObj;
};
};
 
And it worked, while all Player ID included can TP, admin can also tp otehr player, not sure if it's a flaw in that or is due from me Teleporting someone

 

 

Is this block of code at the bottom of player_spawn_2.sqf? Also is that player ID or GUID?

Edit: As it's not working as it should with player ID. I set my player ID as the only value and had 1 other admin on my test server, we could both teleport, the other admin wasn't getting reverted back to his original position.

Link to comment
Share on other sites

  • 1 month later...

I got the Teleport to me working so any player you want to move to you stays put instead of moving back, the problem I have now is when I use the ESP/TELE I hold ALT and click on the map, it TP's me alright but I am stuck to the spot and about 1/2 a foot off the ground, my tools menu also is gone after I TP and strangely enough it drops  a green can on the ground called PEEVO BEER????

Any thoughts?

Link to comment
Share on other sites

I got the Teleport to me working so any player you want to move to you stays put instead of moving back, the problem I have now is when I use the ESP/TELE I hold ALT and click on the map, it TP's me alright but I am stuck to the spot and about 1/2 a foot off the ground, my tools menu also is gone after I TP and strangely enough it drops  a green can on the ground called PEEVO BEER????

Any thoughts?

press space, learn the basics if you use something like this lol

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...