Results 1 to 9 of 9
  1. #1
    Shadowyfaze's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    101
    Reputation
    10
    Thanks
    154

    Player Controller Script

    is there one of these out there?
    If so can i haz ?

  2. #2
    Dubw0w's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    354
    Reputation
    10
    Thanks
    66
    My Mood
    Hungover
    Use the search function next time.

    Quote Originally Posted by GavoTrav View Post
    Code:
    _mycv = cameraView;
    
    _n2sh = 10;  
    _n2c = "Select Player:";
    shnext = false;
    nlist = [];  
    selecteditem = "";
    
    if (isNil "spectate") then {spectate = true;} else {spectate = !spectate;};
    if (spectate) then 
    {
    		 
    	{if (_x != player) then {nlist set [count nlist, name _x];};} forEach playableUnits;
    		
    	shnmenu = 
    	{
    		_pmenu = [["",true],[_n2c, [-1], "", -5, [["expression", ""]], "1", "0"]];
    		for "_i" from (_this select 0) to (_this select 1) do
    		{_arr = [format['%1',nlist select (_i)], [_i - (_this select 0) + 2],  "", -5, [["expression", format["selecteditem = nlist select %1;",_i]]], "1", "1"];_pmenu set [_i+2, _arr];};
    		if (count nlist >  (_this select 1)) then {_pmenu set [(_this select 1)+2, ["Next", [12], "", -5, [["expression", "shnext = true;"]], "1", "1"]];}
    		else {_pmenu set [(_this select 1)+2, ["", [-1], "", -5, [["expression", ""]], "1", "0"]];};
    		_pmenu set [(_this select 1)+3, ["Exit", [13], "", -5, [["expression", "selecteditem = 'exitscript';"]], "1", "1"]];
    		showCommandingMenu "#USER:_pmenu";
    	};
    	_j = 0; _n2sh = 10; if (_n2sh>9) then {_n2sh=10;};
    	while {selecteditem==""} do
    	{
    		[_j,(_j+_n2sh) min (count nlist)] call shnmenu;_j=_j+_n2sh;
    		WaitUntil {selecteditem!="" or shnext};	
    		shnext = false;
    	};
    
    	
    	if (selecteditem!= "exitscript") then
    	{
    		_name = selecteditem;
    		{
    			if(format[name _x] == _name) then 
    			{
    				_player = player;
    				[_x] join group player;
    				player remoteControl effectiveCommander _x;
    				selectPlayer _x;
    
    				F3_EH = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == 0x3D) then {spectate = false;};"];	
    				(vehicle _x) switchCamera "EXTERNAL";
    				titleText ["Controlling...Press F3 to get back to your body","PLAIN DOWN"];titleFadeOut 4;
    				player remoteControl _x;
    
    				waitUntil { !(alive _x) or !(alive player) or !(spectate)};
    				(findDisplay 46) displayRemoveEventHandler ["KeyDown", F3_EH];
    				
    				objNull remoteControl effectiveCommander _x;
    				player switchCamera _mycv;
    				selectPlayer _player;
    			};
    		} forEach playableUnits;
    	};
    	spectate = false;
    	
    };
    if (!spectate) then 
    {	
    	titleText ["Back to player...","PLAIN DOWN"];titleFadeOut 4;
    Might be outdated/detected
    Do not use without a BE bypass and a RE bypass.

  3. The Following User Says Thank You to Dubw0w For This Useful Post:

    xGTx (01-10-2013)

  4. #3
    token86's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    2
    This works. The only problem is that you take control, then pressing F3 goes back to your own body. But doesnt let them use their body after you;ve returned to your own.

    On the Map it shows that i'm at two different locations at the same time. And the player i took control of is in limbo without a body.... hope this makes sense.

  5. #4
    Jim Morrison's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Canterlot, Equestria
    Posts
    12,444
    Reputation
    1090
    Thanks
    3,336
    Quote Originally Posted by token86 View Post
    This works. The only problem is that you take control, then pressing F3 goes back to your own body. But doesnt let them use their body after you;ve returned to your own.

    On the Map it shows that i'm at two different locations at the same time. And the player i took control of is in limbo without a body.... hope this makes sense.
    The script is weird like that, if they talk while you are controlling them it pops up as your name; if you die while in their body it pops up as their name, it's just how the script works.

  6. #5
    token86's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    2
    Arr so once you take control. You cant press F3 and they have control again? Plus you got any experience with va bybass and rustlers menu?

  7. #6
    Jim Morrison's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Canterlot, Equestria
    Posts
    12,444
    Reputation
    1090
    Thanks
    3,336
    Quote Originally Posted by token86 View Post
    Arr so once you take control. You cant press F3 and they have control again? Plus you got any experience with va bybass and rustlers menu?
    I think you can take control again once you exit out, that's how it worked for me, and yes I do know how to set it up; but I am very busy with school work and I can't help anyone today, PM me your skype name and I'll help you when I have the time.

  8. #7
    token86's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    2
    cheers. By pm you mean where it says send email? Says i need 20 posts or more doh.
    Last edited by token86; 01-22-2013 at 04:57 PM.

  9. #8
    Jim Morrison's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Canterlot, Equestria
    Posts
    12,444
    Reputation
    1090
    Thanks
    3,336
    No private message, not email.

  10. #9
    token86's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    2
    Need 15 posts to PM :P doh. ive left my skype on your wall. Sorry for hijacking the post...

Similar Threads

  1. [Help] Looking for the ''take control'' script
    By moeps2 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 1
    Last Post: 12-07-2012, 06:39 PM
  2. i need change colur player esp script
    By seabkai in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 2
    Last Post: 10-21-2012, 05:33 PM
  3. SERVER FOR BANNED PLAYERS AND SCRIPT TESTER!!!
    By cobra0702 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 7
    Last Post: 10-18-2012, 12:50 PM
  4. [Request] Player camo script
    By St4rkz in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 3
    Last Post: 08-04-2012, 12:37 PM
  5. Replies: 1
    Last Post: 07-09-2010, 08:11 AM