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
Respawning Dead Players
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="CF4_99" data-source="post: 20034" data-attributes="member: 201"><p style="text-align: center">Hello everyone, today I am releasing something I have been trying to get working for a while now, and finally got it. It can respawn dead players. this has been tested many times, and can be used as an All Player function or just for one person.</p> <p style="text-align: center"></p> <p style="text-align: center"><strong><u>Make sure to use this #include:</u></strong></p> <p style="text-align: center">#include maps\mp\gametypes_zm\_zm_gametype;</p><p><strong>Respawn Individual Player:</strong></p><p>[CODE]</p><p>respawnThePlayer(player)</p><p>{</p><p> if(player.sessionstate == "spectator")</p><p> {</p><p> if(isDefined(player.spectate_hud))</p><p> player.spectate_hud destroy();</p><p> player [[ level.spawnplayer ]]();</p><p> }</p><p>}</p><p>[/CODE]</p><p></p><p></p><p></p><p><strong>Respawn All Players:</strong></p><p></p><p>[CODE]</p><p>RespawnAllPlayers()</p><p>{</p><p> for(i=0;i<level.players.size;i++)</p><p> {</p><p> if(level.players[i].sessionstate == "spectator")</p><p> {</p><p> if(isDefined(level.players[i].spectate_hud))</p><p> level.players[i].spectate_hud destroy();</p><p> level.players[i] [[ level.spawnplayer ]]();</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p><p style="text-align: center"></p> <p style="text-align: center">Credits:</p> <p style="text-align: center">Frinz(Didn't Know It Was Already Released)</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"></p></blockquote><p></p>
[QUOTE="CF4_99, post: 20034, member: 201"] [CENTER]Hello everyone, today I am releasing something I have been trying to get working for a while now, and finally got it. It can respawn dead players. this has been tested many times, and can be used as an All Player function or just for one person. [B][U]Make sure to use this #include:[/U][/B] #include maps\mp\gametypes_zm\_zm_gametype;[/CENTER] [B]Respawn Individual Player:[/B] [CODE] respawnThePlayer(player) { if(player.sessionstate == "spectator") { if(isDefined(player.spectate_hud)) player.spectate_hud destroy(); player [[ level.spawnplayer ]](); } } [/CODE] [B]Respawn All Players:[/B] [CODE] RespawnAllPlayers() { for(i=0;i<level.players.size;i++) { if(level.players[i].sessionstate == "spectator") { if(isDefined(level.players[i].spectate_hud)) level.players[i].spectate_hud destroy(); level.players[i] [[ level.spawnplayer ]](); } } } [/CODE] [CENTER] Credits: Frinz(Didn't Know It Was Already Released) [/CENTER] [/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
Respawning Dead Players
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