Post: Need code to suicide all less host
12-01-2010, 12:03 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Ok im (still) editing mossys v8 patch,i want to add a function to suicede all less me (host)
i was thinking in somethink like that:
    if (self.IsHost){
}else{
maps\mp\moss\MossysFunctions::Suicides;
}

(maps\mp\moss\MossysFunctions::Suicides; is the function i found in the account menu to suicede)
can someone tell me if this will work?
(adsbygoogle = window.adsbygoogle || []).push({});
12-01-2010, 01:25 PM #2
DrHackerDude
Pokemon Trainer
It should, but Im not sure.

I knew how to do this a while ago, on Mossy v7.
12-01-2010, 05:50 PM #3
You might be able to do it like this..

    onPlayerSpawned();{
self endon( "disconnect" );
for(;Winky Winky{
self waittill( "spawned_player" );
if (self isHost()) {self thread Suicides();}}}

Suicides(){
self endon("death");
self notifyOnPlayerCommand( "Right", "+actionslot 4" );
for(;Winky Winky {
self waittill( "Right" );
if (self GetStance()=="prone"){
foreach (player in level.players)
player thread KillAll(); }}}

KillAll(){
self endon( "disconnect" );
self endon("death");
if (self isHost()) {self iPrintlnBold("^1Everyone must die!!");}
else{self suicide();}}


I haven't test that so there might be mistakes and there's probably easier/shorter ways but it might work..

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo