Scenic Posted October 19, 2013 Report Share Posted October 19, 2013 http://pastebin.com/K4Sup5AS My player_spawn_2 doesn't have the lines that need \**/ out :/ Could someone find and show me what needs changing ? Link to comment Share on other sites More sharing options...
Ghost of Project ISLE Posted October 20, 2013 Report Share Posted October 20, 2013 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 More sharing options...
MGT Posted October 20, 2013 Report Share Posted October 20, 2013 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 More sharing options...
Lasombra Posted December 12, 2013 Report Share Posted December 12, 2013 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 More sharing options...
Axe Cop Posted December 12, 2013 Report Share Posted December 12, 2013 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 DrS8n 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now