Jump to content

~Sr.Victor

Members
  • Content Count

    25
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ~Sr.Victor

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Queria colocar ACL em um salário vip que tenho, mas todas as formas que tento não vai. function giveSalarioVIP(playerSource) if getElementData(playerSource, "isVIPRevolution") or getElementData(playerSource, "isVIPOmega") or getElementData(playerSource, "isVIPSigma") or getElementData(playerSource, "isVIPEpsylon") or getElementData(playerSource, "isVIPAlpha") then local account = getPlayerAccount(playerSource) local timeAtual = getRealTime().timestamp local day = 18000 local dataUltimaTroca = getAccountData(account, "ultimaTrocaSalario") or timeAtual - day local calc = timeAtual
  2. Estou com um gerenciador de vips, queria colocar quando o VIP é dado á alguém, é dada uma acl a pessoa. local vips = {} addEventHandler("onResourceStart", resourceRoot, function() --executeSQLQuery("DROP TABLE VIPS" ) executeSQLQuery("CREATE TABLE IF NOT EXISTS VIPS (type TEXT, login TEXT, nick TEXT, inicio TIMESTAMP, termino TIMESTAMP, staff TEXT)") for _, row in ipairs(executeSQLQuery("SELECT * FROM VIPS ORDER BY termino ASC")) do if (getAccount(row.login)) then vips[row.login] = tonumber(row.termino) local thePlayer = getAccountPlayer(getAccount(row.login)) if (th
  3. I put it, but when I activate the mod the players are already redirected.
  4. Is it possible to put a command for players to be redirected?
  5. ~Sr.Victor

    Command

    I wanted to place a command to do the redirection, and not as soon as it activates. Because I have a separate event server, and I need players to return to the official with a given command. local IP = "" local Porta = addEvent( "redirecionar", true ) addEventHandler( "redirecionar", root, function (player) for index, player in ipairs ( getElementsByType ( "player" ) ) do redirectPlayer ( player, IP, Porta ) end end )
  6. I don't know how to do it, I wanted to put a time of 10 seconds to type the command again and also the command can only be given with the ACL function progressodeagle(thePlayer) if isElementWithinMarker(thePlayer, deagle2) then local currentMoney = getPlayerMoney(thePlayer) if currentMoney >= 2500 then takePlayerMoney(thePlayer, 2500) giveWeapon(thePlayer, 24, 2) setPedFrozen(thePlayer, true) setPedAnimation(thePlayer, "ped", "bomber", 16000, true, false, false, false) setTimer(setPedFrozen, 16000,
  7. It worked, thank you very much! Can you put a delay to give the command?
  8. Hello, I have a script for making weapons. However, if the person has no money, he can manufacture it anyway. I want that if the person has no money a warning appears in the chat function progressodeagle(thePlayer) if isElementWithinMarker (thePlayer, deagle2) then takePlayerMoney(thePlayer, 2500) giveWeapon(thePlayer, 24, 2) setPedFrozen(thePlayer, true) setPedAnimation(thePlayer, "ped", "bomber", 16000, true, false, false, false) setTimer(setPedFrozen, 16000, 1, thePlayer, false) setTimer(giveWeapon,16000, 1, thePlayer, 24, 450) end end addCommandHandler("fabricar", progr
  9. No debug não aparece nada, porém não abre mais. Quer pegar meu discord para um melhor contato?
  10. Olá, tentei colocar um sistema de fabricar armas por acl porém não consegui. Podem me ajudar? function abrir1 (thePlayer) if (thePlayer) and (getElementType (thePlayer) == "player") then triggerClientEvent (thePlayer, "tec9gui", thePlayer) end end addEventHandler ("onMarkerHit", tec9, abrir1) function abrir1 () if (painel) then removeEventHandler("onClientRender", root, Tec9gui) painel = false else addEventHandler("onClientRender", root, Tec9gui) painel = true end end addEvent ("tec9gui", true) addEventHandler("tec9gui", root, abr
  11. Bom dia, tenho um script de quando a pessoa é punida aparece a mensagem em um canal do discord. Porém só aparece o tempo, alguém poderia me ajudar? function Prender (Jogador_Selecionado, getMotivo, getTempo) local Criminoso = getPlayerID(Jogador_Selecionado) --local Estrelas = getPlayerWantedLevel(Criminoso) local QuantidadePreso = getElementData(Criminoso, "PrisaoStaff:QuantidadePreso") or 0 local Tempo = tonumber(getTempo) local Motivo = getMotivo local jX, jY, jZ = getElementPosition (Criminoso) local pX, pY, pZ = getElementPosition (source) local IDPolicial = getElementData(source, "
  12. bindKey("tab", "both", function() if isEventHandlerAdded("onClientRender", root, scoreboardMenu) then removeEventHandler("onClientRender", root, scoreboardMenu) destroyPed() else addEventHandler("onClientRender", root, scoreboardMenu) createModelPed() end end )
  13. Olá! queria colocar delay de 3 segundos em uma dashboard que tenho, devido um bug que ela tem quando fica apertando o TAB várias vezes.
×
×
  • Create New...