Author Topic: Killing every User in a server at once with one command  (Read 322 times)

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

Compressed code:

Code: [Select]
for(%x=0;%x<ClientGroup.getCount();%x++)
if(isObject(%p = ClientGroup.getObject(%x).player)
%p.kill();

Easily readable code:

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

Ok thanks.

 
                                                           LOCKED