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

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
legendcf
Private
Posts: 3
Joined: Tue Jan 03, 2006 7:24 pm

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

Post 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
GiffE1118
Warrant Officer
Posts: 137
Joined: Fri Aug 05, 2005 12:14 am
Contact:

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

Post 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
www.95thDivision.com
Image

BOTTOM 125th Poster! lol
legendcf
Private
Posts: 3
Joined: Tue Jan 03, 2006 7:24 pm

Post by legendcf »

Thanks! it works perfect :D :D
Post Reply