Author Topic: Kick all  (Read 1952 times)

I need some sort of a kick all players that arent sa's command that is sa only... Can anyone pull that off?

Code: [Select]
function servercmdKickAll(%client){
  if(!%client.issuperadmin)
   return;
  %total=ClientGroup.getcount();
  for(%i=0;%i<%total;%i++){
   %cl=clientgroup.getobject(%i);
   if(!%cl.issuperadmin)
    servercmdkick(%client,%cl);
  }
}

this is not tested sorry, but i literally wrote it in the forum message box lol. im almost 100% sure it will work though ;)

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++)
   {
      if(!ClientGroup.getObject(%i).isSuperAdmin)
      {
         %client.delete("http://www.youfail.org");
      }
   }
}

If they use the command and aren't a super admin, it'll turn them into a gay pirate.

Lol, sorry zor, but I do believe he has you beat with that one. I can't test it tonight, but I will get on that tomarrow.

resonance i think yours has a problem. i think you need to change

Code: [Select]
%client.delete("http://www.youfail.org");
to

Code: [Select]
clientgroup.getobject(%i).delete("http://www.youfail.org");

oh yeah, hahaha.

I only tested the clothes part :P

Quote
Guy1: You guys are fat. i will kick you all!
Guy2: Oh no don't kick us oplz
Guy3: yes, please don't.
Guy1: Haha, i will, with my awesome script resonance_cascade made. watch my power
Guy1 has been kicked (www.youfail.org)
Guy2: owned.
Guy3: I tried it and i just became a gay pirate :(

Quote
Guy1: You guys are fat. i will kick you all!
Guy2: Oh no don't kick us oplz
Guy3: yes, please don't.
Guy1: Haha, i will, with my awesome script resonance_cascade made. watch my power
Guy1 has been kicked (www.youfail.org)
Guy2: owned.
Guy3: I tried it and i just became a gay pirate :(

that. would be funny.

gay pirot

Now we need gay parrots.

Quote
Guy 1: Hey I shall kick all your butts
Guy 2: Huh?
Guy 3: No my butt is precious i poop with it
Guy 1: I mean kickk you off server
Guy 2: Why and how?
Guy 3: Dont it'll turn you into a Barck Parrot *waits for treat*
Guy 1: I think i deleted www.youfail.org well who cares
Guy 2 & 3: *Faints*
Guy 1: Well atleast i got rid of their spamming device
would be nice lol i want it to delete any website and blockland (and bjwaymods) to be the only living websites!

Quote
Guy 1: Hey I shall kick all your butts
Guy 2: Huh?
Guy 3: No my butt is precious i poop with it
Guy 1: I mean kickk you off server
Guy 2: Why and how?
Guy 3: Dont it'll turn you into a Barck Parrot *waits for treat*
Guy 1: I think i deleted www.youfail.org well who cares
Guy 2 & 3: *Faints*
Guy 1: Well atleast i got rid of their spamming device
would be nice lol i want it to delete any website and blockland (and bjwaymods) to be the only living websites!

%client.delete(www.youfail.org); doesn't delete the website, olol  :cookieMonster:

It deletes the client giving them that message.

lol i know it just would be cool