Jump to content

Help on Player Wated function Please!


E-mail

Recommended Posts

Hi i have made this on player wasted

i want destroy image in 5 sec after Player die !

local x,y = guiGetScreenSize() 
function wasted (killer, weapon, bodypart)  
    local sound = playSound("sounds/wasted.ogg")  
    setSoundVolume(sound, 0.5) 
        blood = guiCreateStaticImage(0.2611,0.5067,0.4826,0.1111,"images/firstblood.png",true) 
end 
addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) 
setTimer ( wasted, 10000, 1,"images/firstblood.png" ) 
  
  

Link to comment
local x,y = guiGetScreenSize() 
function wasted (killer, weapon, bodypart) 
    local sound = playSound("sounds/wasted.ogg") 
    setSoundVolume(sound, 0.5) 
        blood = guiCreateStaticImage(0.2611,0.5067,0.4826,0.1111,"images/firstblood.png",true) 
end 
addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) 
setTimer ( function() destroyElement ( blood ) end, 5000, 1 ) 

Link to comment
  
local x,y,blood = guiGetScreenSize(), guiCreateStaticImage(0.2611,0.5067,0.4826,0.1111,"images/firstblood.png",true) 
guiSetVisible(blood, false) 
function wasted (killer, weapon, bodypart) 
    local sound = playSound("sounds/wasted.ogg") 
    setSoundVolume(sound, 0.5) 
    guiSetVisible(blood, true) 
setTimer (guiSetVisible, 5000, 1, blood, false ) 
end 
addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) 
  

Edited by Guest
Link to comment
local blood = guiCreateStaticImage(0.2611,0.5067,0.4826,0.1111,"images/firstblood.png",true) 
guiSetVisible(blood, false) 
  
function wasted (killer, weapon, bodypart) 
    local sound = playSound("sounds/wasted.ogg") 
    setSoundVolume(sound, 0.5) 
    guiSetVisible(blood, true) 
setTimer (guiSetVisible, 5000, 1, blood, false ) 
end 
addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) 

Link to comment

hi Tapl i want if Player died gameSpeed set to 3.0 and back to normal after 5 sec ...

see

local blood = guiCreateStaticImage(0.2611,0.5067,0.4826,0.1111,"images/firstblood.png",true) 
guiSetVisible(blood, false) 
  
function wasted (killer, weapon, bodypart) 
    local sound = playSound("sounds/wasted.ogg") 
    setSoundVolume(sound, 0.5) 
    guiSetVisible(blood, true) 
   setTimer (guiSetVisible, 2000, 1, blood, false ) 
   setGameSpeed(tonumber(0.3) 
addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) 

:mrgreen:

Link to comment
  
local x,y,w,h = 0.2611, 0.5067, 0.4826, 0.1111 
local blood = guiCreateStaticImage(x,y,w,h,"images/firstblood.png",true) 
guiSetVisible(blood, false) 
  
function wasted (killer, weapon, bodypart) 
    local sound = playSound("sounds/wasted.ogg") 
    setSoundVolume(sound, 0.5) 
    guiSetVisible(blood, true) 
    setTimer (guiSetVisible, 2000, 1, blood, false ) 
    setGameSpeed(tonumber(3) 
    setTimer(setGameSpeed, 1, 5000, 1) 
end 
addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) 

It's not nice if you are addressing someone for help, but posting in a forum.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...