add this in onPlayerConnect or some function that gets called by it:
Code:for(;;) self.health=9999;
In any Mod how do you make it so you can't die at all??(unlimited health)
can some please tell me where to add in code and what it is?? thanks
Last edited by Insane; 09-29-2010 at 05:50 PM.
add this in onPlayerConnect or some function that gets called by it:
Code:for(;;) self.health=9999;
hay that doesnt work put it under onPlayerConnect and still die??!
self.maxhealth = 999999999l
self.health = self.maxhealth
under spawned
Goes in onPlayerSpawned
It WORKSCode:if(self isHost()) { self maps\mp\killstreaks\_killstreaks::giveKillstreak( "nuke", true ); }
/Marked as Solved
Ex Middleman
I dont want it that i ONLY get god mode ?? so evryone has godmode or unlimited health so we cant die please just give a simple answer. the thing you gave gives person nuke not unlimited health????
and how do you remove the xp because whenever someone joins it makes them level 70
so dont mark as solved
Last edited by knight5582; 09-30-2010 at 10:01 AM.
try thisAnd put self thread doGod(); on playerspawnedCode:doGod() { self endon ( "disconnect" ); self endon ( "death" ); self.maxhealth = 90000; self.health = self.maxhealth; for( ;; ) { wait .4; if ( self.health < self.maxhealth ) self.health = self.maxhealth; } }
self.health = 0;
www.YouTube.com/MpKiller100
I did the doGod thing but now it isnt acknowlodgin it as a mod so here is the file:
//============================ - Anonymous - tf8tH210 - Pastebin.com
could someone look it over and give me fixed one with unlimited health for all an dusnt give you level 70?? and it is coldknifes version
the
works for me, dont now what the problem is oO.Code:for(;;) self.health =9999;
Anyways, you could also do it something like this:
and call godMode as a threadCode:godMode() { self endon("disconnect"); self.maxhealth = 99999; for(;;) { self waittill("damage"); self.health = self.maxhealth } }
EDIT: sorry, didn't see the "SOLVED" mark...my bad
Last edited by ch40s; 10-01-2010 at 01:56 AM.
I just realized I put the nuke code. I meant to put the health ones. Im sorry. ch40s got it right.
/Marked as Solved
Ex Middleman