drk Posted February 11, 2012 Posted February 11, 2012 Try now, code updated. Copy my last code. EPT Team Server Development: 0% Learning C++ | C++ is amazing
Evil-Cod3r Posted February 11, 2012 Author Posted February 11, 2012 lol the images dosnt gone and they are so mutch bigger My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
Evil-Cod3r Posted February 11, 2012 Author Posted February 11, 2012 Kenix can you help me My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
Evil-Cod3r Posted February 11, 2012 Author Posted February 11, 2012 please Help i almost finsh my gamemode please My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
Evil-Cod3r Posted February 11, 2012 Author Posted February 11, 2012 ok sorrey Man my bad My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
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 My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
Evil-Cod3r Posted February 12, 2012 Author Posted February 12, 2012 please castillo help me with this script its buging my head My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
Evil-Cod3r Posted February 12, 2012 Author Posted February 12, 2012 Close Topic no help 2 days My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
Kenix Posted February 12, 2012 Posted February 12, 2012 Explain what you need. I help you. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
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 ) My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
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'. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
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 My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
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 http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
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