Jump to content

Help in Script :(


^Dev-PoinT^

Recommended Posts

Hi all i Made if killer kill a player show images Like Samp

See

local image = guiCreateStaticImage ( x/4, y/5.8, 415,67, "H"..math.random(1,5)..".png", false ) 
local x,y = guiGetScreenSize() 
function headshot ( killer ) 
guiSetVisible ( image, true ) 
guiStaticImageLoadImage(image, "H"..math.random(1,5)..".png") 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), headshot )getLocalPlayer() 

but he say there is a error :(

:P

its 5 images

Link to comment
local x,y = guiGetScreenSize() 
local image = guiCreateStaticImage ( x/4, y/5.8, 415,67, "H"..math.random(1,5)..".png", false ) 
  
function headshot ( killer ) 
guiSetVisible ( image, true ) 
guiStaticImageLoadImage(image, "H"..math.random(1,5)..".png") 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), headshot ) 

Link to comment
local x,y = guiGetScreenSize() 
local image = guiCreateStaticImage ( x/4, y/5.8, 415,67, "H"..math.random(1,5)..".png", false ) 
guiSetVisible ( image, false ) 
  
function headshot (ammo, killer, killerweapon, bodypart ) 
if (killer == localPlayer) and (killer ~= source ) then 
      guiSetVisible ( image, true ) 
      guiStaticImageLoadImage(image, "H"..math.random(1,5)..".png") 
      setTimer (guiSetVisible, 5000, 1, image, false ) 
      end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), headshot ) 

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...