Evil-Cod3r Posted February 11, 2012 Author Posted February 11, 2012 lol the images dosnt gone and they are so mutch bigger
Evil-Cod3r Posted February 11, 2012 Author Posted February 11, 2012 please Help i almost finsh my gamemode please
mjau Posted February 11, 2012 Posted February 11, 2012 anyway as i get it your probelm is getting the image to show to killer only ? or what ?
Evil-Cod3r Posted February 12, 2012 Author Posted February 12, 2012 yes i want it show to the killer and show on the center of the screen just that
Evil-Cod3r Posted February 12, 2012 Author Posted February 12, 2012 please castillo help me with this script its buging my head
Evil-Cod3r Posted February 12, 2012 Author Posted February 12, 2012 i have made this but if i killed some one the images dosnt show in the top and center on screen and they show to both of us i need it show to the killer and show it center of the screen local x,y = guiGetScreenSize() function headshot ( killer, weapon, bodypart ) if ( killer ) and ( killer ~= source ) then local image = guiCreateStaticImage ( x/5, y/5.8, 399,169, "SAMP"..math.random(1,4)..".png", false ) guiSetVisible ( image, false ) guiSetVisible ( image, true ) guiStaticImageLoadImage(image, "SAMP"..math.random(1,4)..".png") setTimer (guiSetVisible, 4000, 1, image, false ) end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), headshot )
Kenix Posted February 12, 2012 Posted February 12, 2012 Try. local x,y = guiGetScreenSize( ) function headshot ( killer, weapon, bodypart ) if ( killer ) and ( killer ~= source ) then local image = guiCreateStaticImage ( x/5, y/5.8, 399,169, "SAMP"..tostring( math.random( 1,4 ) )..".png", false ) guiStaticImageLoadImage( image, "SAMP"..tostring( math.random( 1,4 ) )..".png" ) setTimer ( guiSetVisible, 4000, 1, image, false ) end end addEventHandler ( "onClientPlayerWasted", localPlayer, headshot ) You forgot 'end'.
Evil-Cod3r Posted February 12, 2012 Author Posted February 12, 2012 ok i have some problems with my gamemde i well fix and and get Back To You Thx For Help Kenix mybye i well replay tomorow
Kenix Posted February 12, 2012 Posted February 12, 2012 ok i have some problems with my gamemde i well fix and and get Back To You Thx For Help Kenix mybye i well replay tomorow No problem
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