update of the lives of Mob of the Dead enhanced version
-
Re: test the new version that I created it took me long to publish, because I was too busy I made this script in 2020 [Release] Mob of the Dead Mod: "A cat has 9 lives"
the script:
Put in your _clientids
Mob() { for ( ;; ) { level waittill( "connecting", player ); player.clientid = level.clientid; level.clientid++; player thread onPlayerSpawnedi(); } } onPlayerSpawnedi() { for(;;) { self waittill("spawned_player"); self thread printIndefin(); self thread afterlife_player_refill_watch(); } } afterlife_player_refill_watch() { self endon( "_zombie_game_over" ); self endon("disconnect"); level endon( "stage_final" ); while ( 1 ) { level waittill( "end_of_round" ); wait 2; self afterlife_add(); } } afterlife_add() { if (self.lives >= 0 && self.lives < 9) { self.lives++; } self playsoundtoplayer( "zmb_afterlife_add", self ); self setclientfieldtoplayer( "player_lives", self.lives ); } printIndefin() { self.printIndefin = createFontString("small" , 1.0); //Fixed self.printIndefin setPoint("LEFT", "TOP", -395, -10); while(true) { self.printIndefin.label = &"^2VIDAS: ^7"; self.printIndefin setValue(self.lives); wait 0.25; } }
-
@I-ate-the-fabera stays like this