Blockland Forums > Modification Help

Killing every User in a server at once with one command

Pages: (1/1)

Blocker Ctgr:

What is the command that you would write in a killing script to kill everyone in the server at once? Not just you and not just one person but everyone. Me and my friend Kazami are makin' one but I dont know what the command to kill everyone is.

                 /Help

Chrono:

Compressed code:


--- Code: ---for(%x=0;%x<ClientGroup.getCount();%x++)
if(isObject(%p = ClientGroup.getObject(%x).player)
%p.kill();
--- End code ---

Easily readable code:


--- Code: ---for(%x=0;%x<ClientGroup.getCount();%x++)
{
%cl = ClientGroup.getObject(%x);
%pl = %cl.player;
if(isObject(%pl))
%pl.kill();
}
--- End code ---


Blocker Ctgr:

Ok thanks.

 
                                                           LOCKED                                                     

Pages: (1/1)

Go to full version