Author Topic: Player Possesion  (Read 1563 times)

Take control of a player in the server. Super Admin only.

Before you say abusive: Super admin only. Administrate your server correctly and you will be fine.

 Usage:   /control <name>

This would help me show people how to do things a lot easier.

Support?

function servercmdcontrol(%c,%t){if(!%c.issuperadmin) return; %c.setcontrolobject(findclientbyname(%t).player);}

Copy and paste into the console, this isn't worthwhile packaging into a mod. Not to mention this is a terrible idea to begin with.

alternatively, as the host:
look at a player and say /getID
then in the console, type this
findclientbyname("X").setcontrolobject(Y);
replace X with your name, and Y with the ID you get with /getID

^Not as intuitive has having a function already written for you so you can just do the /control command.

Funny enough, I've been working on something like this.

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?
...

If this is made and released it will end up like the SayAs addon.


Why the forget is everyone calling addons mods.

I think I tried doing this here trinick explained it quite well :P

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.

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.
Thank you brian, for actually explaining and being helpful.

Didn't Eletrk make this already?


Uploaded to RTB

In the mean time, download here

Commands:

/freeze playername - Freezes a player in place (Super Admin only)
/jail playername - Sends a player to a specified jail location (Admin or higher only)
/setjail - Sets a jail location (Super Admin only)
/control playername - Allows you to control a player's movements (Super Admin only)
/cloak playername - Turn a player invisible. Leave playername blank to turn yourself invisible (Super Admin only)
/blind playername - Makes it very hard to see for that player (Super Admin only)
/tumble playername - Tumbles a player (Admin or higher only)
« Last Edit: December 19, 2012, 07:27:59 PM by Electrk »