Jump to content

verdao

Members
  • Posts

    21
  • Joined

  • Last visited

Details

  • Gang
    groove

verdao's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. is how you do this for me, I'm new to lua, already tried in every way and could not
  2. Thanks, More like I do for it appears only when I enter the area, and disappear when I leave the area?
  3. Could anyone help me? the dxdrawtext appears and disappears very fast as I do to when it is within the area to stay with the text on the screen, when he leaves the text disappear Client function greetingHandler ( message ) dxDrawText("SAFEZONE!", 92, 158, 720, 195, tocolor(65, 205, 4, 255), 1.40, "pricedown", "left", "top", false, false, true, false, false) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler ) Server local hillArea = createColRectangle ( -1050, -1187,100,100 ) local hillRadar = createRadarArea ( -1050, -1187,100,100,0,255,0, 100 ) ------------------ BASE Do Resource function hill_Enter ( thePlayer, matchingDimension ) triggerClientEvent ( "onGreeting", getRootElement(), "Hello World!" ) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " Entrou Na SAFEZONE!", getRootElement(), 0, 255, 0 ) toggleControl ( thePlayer, "fire", false ) setElementData( thePlayer, "blood", false) setElementData( thePlayer, "isExploded", false) toggleControl ( thePlayer, "fire", false) toggleControl ( thePlayer, "next_weapon", false) toggleControl ( thePlayer, "previous_weapon", false) toggleControl ( thePlayer, "aim_weapon", false) toggleControl ( thePlayer, "vehicle_fire", false) setRadarAreaFlashing ( hillRadar, true ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) function hill_Exit ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then if isPedDead ( thePlayer ) ~= true then toggleControl ( thePlayer, "fire", true ) setElementData( thePlayer, "isExploded", true) setElementData( thePlayer, "blood", 12000) toggleControl ( thePlayer, "fire", true) toggleControl ( thePlayer, "next_weapon", true) toggleControl ( thePlayer, "previous_weapon", true) toggleControl ( thePlayer, "aim_weapon", true) toggleControl ( thePlayer, "vehicle_fire", true) outputChatBox ( getPlayerName(thePlayer) .. " Saio Da SAFEZONE!", getRootElement(), 0, 255, 0 ) setRadarAreaFlashing ( hillRadar, false ) end end end addEventHandler ( "onColShapeLeave", hillArea, hill_Exit ) sorry for the inconvenience this is my first resource
  4. verdao

    [HELP] Please

    function globalMessage ( thePlayer, cmd, ... ) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then if isPlayerMuted ( thePlayer ) then outputChatBox ( "You are muted!", thePlayer, 255, 0, 0 ) return end local message = table.concat ( { ... }, " " ) local name = getPlayerName ( thePlayer ) outputChatBox ( "#00FF00global chat: #FFFFFF".. name ..": #FFFF00".. message, getRootElement(), 255, 255, 255, true ) end addCommandHandler ( "global", globalMessage )
  5. how can I do to when the player enters certain area appear onscreen text such as this printscreen
  6. verdao

    Help Me Pls

    how can I shorten the connection attempt with the player for example if the internet it crashed he was kicked in plumb moment
  7. would like a resource to replace the images of the billboard. the name of txd to swap images is vgsn_billboard.como do it if you can leave comments on the ready
  8. how do I get the player can use /vip every 30 minutes function vip() triggerServerEvent ( "ClientHaveLevel", getLocalPlayer() ) end addCommandHandler ("vip", vip) function armavip () showCursor (true) triggerServerEvent ( "onGreeting", getLocalPlayer() ) end function equipvip () showCursor (true) triggerServerEvent ( "onGreeting2", getLocalPlayer() ) end function vip2() painel = guiCreateWindow(450, 250, 448, 280, "Painel V.I.P", false) guiWindowSetSizable(painel, false) showCursor ( true ) guiSetAlpha(painel, 1.00) guiSetProperty(painel, "CaptionColour", "FF6AE419") arma = guiCreateButton(48, 144, 341, 38, "Pegar Armamento", false, painel) equip = guiCreateButton(48, 193, 341, 38, "Pegar Equipamento", false, painel) close = guiCreateButton(156, 250, 114, 37, "Fechar", false, painel) memo = guiCreateMemo(17, 30, 421, 104, "Bem Vindo Ao Painel VIP, Nao Abuse dos Seus Privilegios", false, painel) guiMemoSetReadOnly(memo, true) addEvent( "showvip",true ) addEventHandler ( "onClientGUIClick", arma, armavip, false ) addEventHandler ( "onClientGUIClick", equip, equipvip, false ) addEventHandler ( "onClientGUIClick", close, function() guiSetVisible(painel, false) showCursor(false) end, false ) end addEvent( "ShowVipPanel", true ) addEventHandler( "ShowVipPanel", getRootElement(), vip2)
  9. it only put one little icon to the side
  10. I would like to change the side of the message can someone help me I've tried changing the coordinates no longer hit the right coordinates http://imgur.com/KWdP6CU http://imgur.com/KWdP6CU http://imgur.com/KWdP6CU local config = { ["lines"] = 5, ["startY"] = 0.35, ["textHeight"] = 16, ["iconPosOffY"] = -10, ["iconHeight"] = 20, ["iconSpacing"] = 4, ["defaultWeapon"] = 255, ["fadeTime"] = 5000, ["startFade"] = 15000, ["align"] = "right", ["startX"] = -10 } local default = { ["lines"] = 5, ["startY"] = 0.25, ["textHeight"] = 16, ["iconPosOffY"] = -10, ["iconHeight"] = 20, ["iconSpacing"] = 4, ["defaultWeapon"] = 255, ["fadeTime"] = 5000, ["startFade"] = 15000, ["align"] = "right", ["startX"] = -10 }
  11. is already installed Microsoft Visual C + +
×
×
  • Create New...