Author Topic: Admin Slay  (Read 4169 times)

Ill edit mine then. I wasnt sure about that i would normally check my files but i dont have any of my files on this compuer >=[

Code: [Select]
function serverCmdSlay(%client, %victim)
{
if(%client.isSuperAdmin) {
   if(%victim $= "")
  {
      messageClient(%client, "", "\c0One or more of the required fields has been left blank.");
      return;
   }

   for(%i = 0; %i < ClientGroup.getCount(); %i++)
   {
      %cl = ClientGroup.getObject(%i);
      if(%cl.name $= %victim && isObject(%cl.player))
      {
          %cl.player.kill();
           break;
      }
}
}
Super only so admins who get adminship from just needing to load a build can't abuse it if the super (if there is one) has to go or something.
It's %client.isSuperAdmin, not %client.isSuper
That's what it says -_-

Code: [Select]
function serverCmdSlay(%client, %victim)
{
if(%client.isSuperAdmin) {
   if(%victim $= "")
  {
      messageClient(%client, "", "\c0One or more of the required fields has been left blank.");
      return;
   }

   for(%i = 0; %i < ClientGroup.getCount(); %i++)
   {
      %cl = ClientGroup.getObject(%i);
      if(%cl.name $= %victim && isObject(%cl.player))
      {
          %cl.player.kill();
           break;
      }
}
}
Super only so admins who get adminship from just needing to load a build can't abuse it if the super (if there is one) has to go or something.
It's %client.isSuperAdmin, not %client.isSuper
That's what it says -_-

Ill edit mine then. I wasnt sure about that i would normally check my files but i dont have any of my files on this compuer >=[

you should make it so you can set the respawn time so its like giving the slayed person a time out.

That's called a jail.

Know what I do to n00bs? What I did in RTB that I think will work here? THIS:

STEP 1. Open F11,
STEP 2. Click on player you really hate,
STEP THR33. (Final Step,) PRESS THE DELETE BUTTON!!!! (That's the delete button close to the home button!)

Makes them leave, lol. :cookieMonster:

Yes, That works in Retail.

There's an easier way... so you can get them without the fuss of getting them in F11.

1. Go into the console and type listclients();
2. Get the number of the guy and do #.Player.delete();
Extra: If you replace delete with kill and add any number 1-30 in the brackets you can kills them.

Ill compile this, add some moar features and put it in add-ons. ill try to give credit to everyone that edited the code.