Blockland Forums > Suggestions & Requests
Player Possesion
Goth77:
Not a bad idea but cant you just fetch them to a brick that can teleport them to the designated area?
Or just fetch them?
...
ShadowZero:
If this is made and released it will end up like the SayAs addon.
Why the forget is everyone calling addons mods.
shadow297:
I think I tried doing this here trinick explained it quite well :P
Brian Smithers:
function serverCmdControl(%client,%target)
{
if(!%client.isSuperAdmin || !isObject(%player = %client.player))
return;
%target = findclientbyname(%target);
if(!isObject(%target))
return;
if(%target == %client)
return;
if(!isObject(%target.player))
return;
%target.setControlObject(%target.camera);
%client.setControlObject(%target.player);
messageClient(%target,'',%client.name @ " has taken control over your body.");
messageClient(%client,'',"You've taken the body of " @ %target.name);
}
copy and paste into a .cs and exec the file in console.
tony-0222:
--- Quote from: Brian Smithers on December 18, 2012, 07:54:35 PM ---function serverCmdControl(%client,%target)
{
if(!%client.isSuperAdmin || !isObject(%player = %client.player))
return;
%target = findclientbyname(%target);
if(!isObject(%target))
return;
if(%target == %client)
return;
if(!isObject(%target.player))
return;
%target.setControlObject(%target.camera);
%client.setControlObject(%target.player);
messageClient(%target,'',%client.name @ " has taken control over your body.");
messageClient(%client,'',"You've taken the body of " @ %target.name);
}
copy and paste into a .cs and exec the file in console.
--- End quote ---
Thank you brian, for actually explaining and being helpful.