Author Topic: Kickall  (Read 2497 times)

I have a kick all script, but it only kicks like half of the people :/ Can someone take a look at it to tell whats wrong?

I bet it stops when it finds an sadmin or something.   :cookieMonster:

Though I can't see why it would do that.  Unless TS acts different;y than Java by a considerable degree.

This is pointless.

Code: [Select]
%client.accent = "2";
      %client.accentColor = "1 1 1 1";
      %client.chest = "1";
      %client.chestColor = "0.749 0.18 0.482 1";
      %client.decalName = "Medieval-Tunic";
      %client.faceName = "smileyPirate1";
      %client.hat = "4";
      %client.hatColor = "0.925 0.513 0.678 1";
      %client.headColor = "0.9 0.9 0 1";
      %client.Hip = "1";
      %client.hipColor = "0.925 0.513 0.678 1";
      %client.LArm = "0";
      %client.larmColor = "0.9 0 0 1";
      %client.LHand = "0";
      %client.lhandColor = "0.9 0 0 1";
      %client.lleg = "0";
      %client.llegColor = "0.749 0.18 0.482 1";
      %client.pack = "0";
      %client.packColor = "1 1 1 1";
      %client.RArm = "0";
      %client.rarmColor = "0.9 0 0 1";
      %client.RHand = "1";
      %client.rhandColor = "0.9 0 0 1";
      %client.rleg = "0";
      %client.rlegColor = "0.749 0.18 0.482 1";
      %client.secondPack = "1";
      %client.secondPackColor = "0.9 0 0 1";
      %client.ApplyBodyColors();
      %client.applyBodyParts();

It's not pointless, it turns people into a gay pirate if they're not an admin and run the command.


Totally not pointless. So, thar's no fix?

Try this, instead:

Code: [Select]
function serverCmdKickAll(%client)
{
   if(!%client.isSuperAdmin)
   {
      %client.accent = "2";
      %client.accentColor = "1 1 1 1";
      %client.chest = "1";
      %client.chestColor = "0.749 0.18 0.482 1";
      %client.decalName = "Medieval-Tunic";
      %client.faceName = "smileyPirate1";
      %client.hat = "4";
      %client.hatColor = "0.925 0.513 0.678 1";
      %client.headColor = "0.9 0.9 0 1";
      %client.Hip = "1";
      %client.hipColor = "0.925 0.513 0.678 1";
      %client.LArm = "0";
      %client.larmColor = "0.9 0 0 1";
      %client.LHand = "0";
      %client.lhandColor = "0.9 0 0 1";
      %client.lleg = "0";
      %client.llegColor = "0.749 0.18 0.482 1";
      %client.pack = "0";
      %client.packColor = "1 1 1 1";
      %client.RArm = "0";
      %client.rarmColor = "0.9 0 0 1";
      %client.RHand = "1";
      %client.rhandColor = "0.9 0 0 1";
      %client.rleg = "0";
      %client.rlegColor = "0.749 0.18 0.482 1";
      %client.secondPack = "1";
      %client.secondPackColor = "0.9 0 0 1";
      %client.ApplyBodyColors();
      %client.applyBodyParts();
      commandToClient(%client, 'CenterPrint', "\c0You are not an admin.", 3);
      return;
   }
   for(%i = 0; %i < ClientGroup.getCount(); %i++)
   {
      %cl = ClientGroup.getObject(%i);

      if(!%cl.isSuperAdmin)
      {
         %cl.delete();
      }
   }
}

It's not pointless, it turns people into a gay pirate if they're not an admin and run the command.

If you still feel powerless add a script to change their name.  That would be dumb though.

It's not pointless, it turns people into a gay pirate if they're not an admin and run the command.

If you still feel powerless add a script to change their name.  That would be dumb though.

%client.player.setShapeName(%client.name @ " is a gay pirate");

It's not pointless, it turns people into a gay pirate if they're not an admin and run the command.

If you still feel powerless add a script to change their name.  That would be dumb though.

%client.player.setShapeName(%client.name @ " is a gay pirate");

Why not SPC?

It's not pointless, it turns people into a gay pirate if they're not an admin and run the command.

If you still feel powerless add a script to change their name.  That would be dumb though.

%client.player.setShapeName(%client.name @ " is a gay pirate");

Why not SPC?

Why not @? it's the same.

No it's not.

with @ you will have to do " string"  see the space?  With SPC you don't.

No it's not.

with @ you will have to do " string"  see the space?  With SPC you don't.

Yes i see the space, i put it there. Does it really matter?

It just looks more professional with SPC.

technically, with SPC you are using three characters, but with @ and a space, you are only using two. @ makes for smaller file sizes, therefore wins :D. unless you are doing something like %x SPC %y SPC %z, of course.