Page 1 of 1

Help!!!!!!!!!!!!!!1

Posted: Thu Jan 05, 2006 3:06 pm
by legendcf
Hi, how could i know when they bin killed while they are invisible? so i can reset it all back to show.. if anyone can make this code beta please do.. Thanks!

Code: Select all

MakeMEInvisible:
 local.player = parm.other

if (local.player.InvisibleMode == NIL)
{
     local.player.InvisibleMode = "MeInvisible"

     Wait 0.5
     
     local.player stufftext ("say I am invisible")
     local.player hide
     local.player iprint ("You have 1 minute as an invisible player!")

     wait 30

     local.player iprint ("You have 30 seconds left as an invisible player!")
     
     wait 20

     local.player stopwatch 10
     local.player iprint ("You have 10 seconds left as an invisible player!")

     wait 10

     local.player iprint ("You are no longer invisible!")
     local.player show
     local.player.InvisibleMode = NIL  
}

End

Re: Help!!!!!!!!!!!!!!1

Posted: Thu Jan 05, 2006 10:41 pm
by GiffE1118

Code: Select all

MakeMEInvisible:
 local.player = parm.other
local.player stufftext ("say I am invisible")
local.player hide
local.player iprint ("You have 1 minute as an invisible player!")
local.player.InvisibleMode = "MeInvisible"
local.counter = 0
while((local.player.InvisibleMode != NIL) && isAlive(local.player))) {
Wait 0.5
local.counter++
if(local.counter == 60)
{     local.player iprint ("You have 30 seconds left as an invisible player!") }
if(local.counter == 100) {
     local.player stopwatch 10
     local.player iprint ("You have 10 seconds left as an invisible player!")
}
if(local.counter == 120) { local.player.InvisibleMode = NIL  }
}
local.player iprint ("You are no longer invisible!")
local.player show
End

Posted: Thu Jan 05, 2006 11:12 pm
by legendcf
Thanks! it works perfect :D :D