^Dev-PoinT^ Posted October 6, 2011 Share Posted October 6, 2011 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 its 5 images Link to comment
Castillo Posted October 6, 2011 Share Posted October 6, 2011 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
TAPL Posted October 6, 2011 Share Posted October 6, 2011 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
^Dev-PoinT^ Posted October 6, 2011 Author Share Posted October 6, 2011 Thx SoldSnake14 And Tapl For Help Sloved Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now