Jump to content

verdao

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by verdao

  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 + +
  12. Pls Help Me core.dll not load http://uploaddeimagens.com.br/imagens/s ... -png--5907 http://uploaddeimagens.com.br/imagens/s ... -png--5907 http://uploaddeimagens.com.br/imagens/s ... -png--5907
  13. Gostaria de Saber Como Coloca tempo para usar 1 comando ja procurei na net nao achei o comando se passar o comando ja fico agradecido se puder editar fico mais agradecido ainda comessei a mecher com lua hj estou aprendendo function kitarmas ( source ) accountname = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user." .. accountname, aclGetGroup("VIP")) then giveWeapon(source, 24, 50, true) giveWeapon(source, 27, 50, true) giveWeapon(source, 30, 30, true) giveWeapon(source, 31, 30, true) giveWeapon(source, 34, 5, true) outputChatBox("#00ff00[KitVIP]: Você pegou o Kit VIP", source, 255, 255, 255, true) outputChatBox("#00f5ff[KitVIP]:#ffffff O jogador #00ff00 "..getPlayerName(source).." #ffffff Acaba de pegar o KITVIP , Seja você tambem VIP por Apenas 10 Reais Mensais", getRootElement(source), 255, 255, 255, true) end end addCommandHandler("kitvip", kitarmas)
  14. Vlw cara me ajudo muito mesmo , errei por coisa besta vou prestar + atenção no proximo resource
  15. It worked just outboxchat not received weapons Funcionou apenas o outboxchat nao recebi as armas
  16. e um script basico de kit so q para 1 certo grupo Nao sei o que esta errado nao esta funcionando me ajudem porfavor function kitarmas() accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then giveWeapon(source, 4, 200, true) giveWeapon(source, 24, 200, true) giveWeapon(source, 26, 200, true) giveWeapon(source, 28, 200, true) giveWeapon(source, 31, 200, true) giveWeapon(source, 34, 200, true) giveWeapon(source, 37, 200, true) giveWeapon(source, 16, 200, true) giveWeapon(source, 46, 200, true) outputChatBox("#00ff00[Kitadmin]: Você pegou o Kit admin", source, 255, 255, 255, true) end else end end addCommandHandler("kitadmin", kitarmas)
  17. English I am trying to create one kit for admins only what does not help me Portuguêse estou tentando criar 1 kit para admins só que não funciona me ajudem function kitarmas(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then giveWeapon(source, 4, 200, true) giveWeapon(source, 24, 200, true) giveWeapon(source, 26, 200, true) giveWeapon(source, 28, 200, true) giveWeapon(source, 31, 200, true) giveWeapon(source, 34, 200, true) giveWeapon(source, 37, 200, true) giveWeapon(source, 16, 200, true) giveWeapon(source, 46, 200, true) outputChatBox("#00ff00[Kitadmin]: Você pegou o Kit admin", source, 255, 255, 255, true) end else end end addCommandHandler("kitadmin", kitarmas)
×
×
  • Create New...