Jump to content

Problem!


Chaz-CR

Recommended Posts

Posted

What's the problem here?

function ChazShowLabel (hitElement) 
     if getElementType(hitElement) == "player" and (hitElement == localPlayer) then 
         LabelChaz = guiCreateLabel(0.22, 0.33, 0.59, 0.08, "Haz Modificado Tu Vehiculo!", true) 
   guiSetFont(LabelChaz, "sa-gothic") 
   guiLabelSetColor(LabelChaz, 11, 11, 160) 
     end 
end 
addEventHandler("onClientMarkerHit", marker, ChazShowLabel) 
  
setTimer( ChazShowLabel, 2000, 1) 
function desaparecer() 
destroyElement( ChazShowLabel ) 
end 

430x73_338AC4_FFFFFF_000000_000000.png

||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons||

http://facebook.com/AoBMTA - Fanpage

Posted
local LabelChaz = guiCreateLabel(0.22, 0.33, 0.59, 0.08, "Haz Modificado Tu Vehiculo!", true) 
guiSetFont(LabelChaz, "sa-gothic") 
guiLabelSetColor(LabelChaz, 11, 11, 160) 
guiSetVisible(labelChaz, false) 
  
function ChazShowLabel (hitElement) 
    if hitElement == localPlayer then 
    setTimer(guiSetVisible(labelChaz, true), 2000, 1) 
    end 
end 
addEventHandler("onClientMarkerHit", marker, ChazShowLabel) 

To Visit Us

Press Here: mtasa://5.9.206.180:22002

b648040241b8f01.png

0d0a7bb38ca13e5.png

Posted
addEventHandler( "onClientResourceStart", resourceRoot, 
function() 
    LabelChaz = guiCreateLabel(0.22, 0.33, 0.59, 0.08, "Haz Modificado Tu Vehiculo!", true) 
    guiSetFont(LabelChaz, "sa-gothic") 
    guiLabelSetColor(LabelChaz, 11, 11, 160) 
    guiSetVisible(LabelChaz, false) 
end 
) 
  
function ChazShowLabel (hitElement) 
    if (getElementType(hitElement) == "player") and (guiGetVisible(LabelChaz) == false) then 
        guiSetVisible(LabelChaz, true) 
        setTimer(guiSetVisible, 2000, 1, LabelChaz, false) 
    end 
end 
addEventHandler("onClientMarkerHit", marker, ChazShowLabel) 

Try it.

Please do not PM me with scripting related question nor support, use the forums instead.

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