CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Unlimited S&D Lives
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TheNiceUb3r" data-source="post: 4744" data-attributes="member: 731"><p>Hey man thought I would reply with this as it may help the community out a bit <img src="/styles/default/xenforo/smilies.emoji/people/wink.emoji.svg" class="smilie" loading="lazy" alt=":wink:" title="Wink :wink:" data-shortname=":wink:" /></p><p></p><p>Make a TDM Lobby</p><p></p><p>The if(!isAlive(player)) is needed because you can't turn it on for a dead player so if they are dead this will revive them before the function itself is ran on them</p><p></p><p>[CODE]MakeTDMLobby()</p><p>{</p><p>foreach(player in level.players)</p><p>{</p><p> if(player.UnlimitedLives==0)</p><p> {</p><p> player.UnlimitedLives=1;</p><p> player iprintln("Unlimited Lives ^2ON^7");</p><p> if(!isAlive(player))</p><p> {</p><p> player thread [[ level.spawnplayer ]]();</p><p> }</p><p> player thread UnlimitedLives();</p><p> }</p><p> else</p><p> {</p><p> player.UnlimitedLives=0;</p><p> player iprintln("Unlimited Lives ^1OFF^7");</p><p> player notify("stop_UnlimitedLives");</p><p> }</p><p> }</p><p>}[/CODE]</p><p></p><p>Unlimited Lives Player</p><p>[CODE]Fun_Unlimited_Lives_Player(player)</p><p>{</p><p> if(player.FuLvFp == true)</p><p> { </p><p> if(!isAlive(player))</p><p> {</p><p> player thread [[ level.spawnplayer ]]();</p><p> }</p><p> player thread UnlimitedLives();</p><p> self iprintln("Unlimited Lives ^2On");</p><p> player.FuLvFp = false;</p><p> }</p><p> else</p><p> {</p><p> player notify("stop_UnlimitedLives");</p><p> self iprintln("Unlimited Lives ^1Off");</p><p> player.FuLvFp = true;</p><p> }</p><p>}[/CODE]</p><p></p><p>Keeps bringing you to life</p><p>[CODE]Fun_Unlimited_Lives_self()</p><p>{</p><p> if(self.FuLvFS == true)</p><p> { </p><p> if(!isAlive(self))</p><p> {</p><p> self thread [[ level.spawnplayer ]]();</p><p> }</p><p> self thread UnlimitedLives();</p><p> self iprintln("Unlimited Lives ^2On");</p><p> self.FuLvFS = false;</p><p> }</p><p> else</p><p> {</p><p> self notify("stop_UnlimitedLives");</p><p> self iprintln("Unlimited Lives ^1Off");</p><p> self.FuLvFS = true;</p><p> }</p><p>}[/CODE]</p><p></p><p>Keeps Your Team Alive</p><p>[CODE] UnlimitedLivesMyteam()</p><p> {</p><p> foreach(player in level.players)</p><p> {</p><p> if(self.pers["team"] == player.pers["team"])</p><p> {</p><p> player thread Fun_Unlimited_Lives_self();</p><p> }</p><p> }</p><p> }</p><p>[/CODE]</p><p></p><p>Keeps Enemy Team Alive</p><p>[CODE] UnlimitedLivesMyteamForEnemy()</p><p> {</p><p> foreach(player in level.players)</p><p> {</p><p> if(self.pers["team"] != player.pers["team"])</p><p> {</p><p> player thread Fun_Unlimited_Lives_self();</p><p> }</p><p> }</p><p> }[/CODE]</p><p></p><p>And last but no least revive yourself once you have actually died already</p><p></p><p>To do this add this to MenuInit()</p><p>[CODE]self thread reviveMeThread();[/CODE]</p><p></p><p>And this actually being the function needed</p><p>[CODE]reviveMeThread()</p><p>{</p><p> self endon("disconnect");</p><p> self endon( "destroyMenu" );//////// CHANGE THIS TO WHAT YOUR MENU USES TO DESTROY MENU</p><p> for(;;)</p><p> {</p><p> if(!isAlive(self))</p><p> {</p><p> if(self jumpButtonPressed() && self useButtonPressed())</p><p> {</p><p> wait 0.1;</p><p> if(self jumpButtonPressed() && self useButtonPressed())</p><p> { </p><p> self thread [[ level.spawnplayer ]]();</p><p> }</p><p> }</p><p> }</p><p> wait .06;</p><p> }</p><p>}</p><p>[/CODE]</p><p></p><p>Then use the unlimited lives code he has up there</p><p>[CODE]UnlimitedLives()</p><p>{</p><p> self endon("disconnect");</p><p> self endon("stop_UnlimitedLives");</p><p> for(;;)</p><p> {</p><p> self waittill("death");</p><p> wait 0.50;</p><p> self iprintln("^2You Have Been Given Another Chance.");</p><p> self thread [[ level.spawnplayer ]]();</p><p> }</p><p>}[/CODE]</p></blockquote><p></p>
[QUOTE="TheNiceUb3r, post: 4744, member: 731"] Hey man thought I would reply with this as it may help the community out a bit :wink: Make a TDM Lobby The if(!isAlive(player)) is needed because you can't turn it on for a dead player so if they are dead this will revive them before the function itself is ran on them [CODE]MakeTDMLobby() { foreach(player in level.players) { if(player.UnlimitedLives==0) { player.UnlimitedLives=1; player iprintln("Unlimited Lives ^2ON^7"); if(!isAlive(player)) { player thread [[ level.spawnplayer ]](); } player thread UnlimitedLives(); } else { player.UnlimitedLives=0; player iprintln("Unlimited Lives ^1OFF^7"); player notify("stop_UnlimitedLives"); } } }[/CODE] Unlimited Lives Player [CODE]Fun_Unlimited_Lives_Player(player) { if(player.FuLvFp == true) { if(!isAlive(player)) { player thread [[ level.spawnplayer ]](); } player thread UnlimitedLives(); self iprintln("Unlimited Lives ^2On"); player.FuLvFp = false; } else { player notify("stop_UnlimitedLives"); self iprintln("Unlimited Lives ^1Off"); player.FuLvFp = true; } }[/CODE] Keeps bringing you to life [CODE]Fun_Unlimited_Lives_self() { if(self.FuLvFS == true) { if(!isAlive(self)) { self thread [[ level.spawnplayer ]](); } self thread UnlimitedLives(); self iprintln("Unlimited Lives ^2On"); self.FuLvFS = false; } else { self notify("stop_UnlimitedLives"); self iprintln("Unlimited Lives ^1Off"); self.FuLvFS = true; } }[/CODE] Keeps Your Team Alive [CODE] UnlimitedLivesMyteam() { foreach(player in level.players) { if(self.pers["team"] == player.pers["team"]) { player thread Fun_Unlimited_Lives_self(); } } } [/CODE] Keeps Enemy Team Alive [CODE] UnlimitedLivesMyteamForEnemy() { foreach(player in level.players) { if(self.pers["team"] != player.pers["team"]) { player thread Fun_Unlimited_Lives_self(); } } }[/CODE] And last but no least revive yourself once you have actually died already To do this add this to MenuInit() [CODE]self thread reviveMeThread();[/CODE] And this actually being the function needed [CODE]reviveMeThread() { self endon("disconnect"); self endon( "destroyMenu" );//////// CHANGE THIS TO WHAT YOUR MENU USES TO DESTROY MENU for(;;) { if(!isAlive(self)) { if(self jumpButtonPressed() && self useButtonPressed()) { wait 0.1; if(self jumpButtonPressed() && self useButtonPressed()) { self thread [[ level.spawnplayer ]](); } } } wait .06; } } [/CODE] Then use the unlimited lives code he has up there [CODE]UnlimitedLives() { self endon("disconnect"); self endon("stop_UnlimitedLives"); for(;;) { self waittill("death"); wait 0.50; self iprintln("^2You Have Been Given Another Chance."); self thread [[ level.spawnplayer ]](); } }[/CODE] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Unlimited S&D Lives
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top