
#Iniciante3D
Members-
Posts
18 -
Joined
-
Last visited
Everything posted by #Iniciante3D
-
De nada.
-
Eu tenho, só baixar ai: http://www.mediafire.com/download/3k6pzm8c3ww35rx/assalto-banco.zip
-
[DÚVIDA] Milisegundos em Segundos
#Iniciante3D replied to #Iniciante3D's topic in Programação em Lua
Você pode me ajudar a arrumar ? Ou falar do que preciso para fazer com que um Banco de Dados guarde o tempo..? -
[DÚVIDA] Milisegundos em Segundos
#Iniciante3D replied to #Iniciante3D's topic in Programação em Lua
---------------- IntervalTime = 1 ---------------- function mfs (x) return tonumber((x*1000)) or false end function AddVipForVisualization (attacker,comando,accname,msf) if not (hasObjectPermissionTo(attacker,"command.mute")) then return end if accname and msf then aclGroupAddObject (aclGetGroup("UserVIP"), "user."..accname) outputChatBox ('#00bfffVocê deu vip para a conta #ffffff'..accname..' #00bfffPor #ffffff'..msf..' #00bfffDias.',attacker,255,255,255,true) setTimer (aclGroupRemoveObject, msf, IntervalTime, aclGetGroup("UserVIP"), "user."..accname) setTimer (outputChatBox, msf, IntervalTime, '#00FF00SEU VIP EXPIROU!',source, 255, 255, 255, true) else outputChatBox ("Comando correto: /vip [CONTA] [TEMPO]") end end addCommandHandler ("vip",AddVipForVisualization) Tem algo errado ai?? -
[DÚVIDA] Milisegundos em Segundos
#Iniciante3D replied to #Iniciante3D's topic in Programação em Lua
Ok vlw, e como faz milisegundos para dias ? function milisecondsToSeconds(x) return tonumber((x*86400000)) or false end Pode ser desse jeito, acima -
Eae pessoal, bom eu queria que os milisegundos, se transformem em Segundos, ex: 20000 = 20 segundos, teria como colocar só o 20 que iria ser igual ao 20000 ?
-
Olá, bom eu criei um script para que, quando o jogador fale algum palavrão ele seja mutado, até ai tudo bem, porém eu quero REMOVER a mensagem que ele disse (o palavrão) Código abaixo root = getRootElement() function ins (msg , msgty,player) player = getPlayerName(source) k = {"fdp" , "FDP"} if string.find(msg ,"FDP") or string.find(msg ,"mtasa://") or string.find(msg ,"fdp") or string.find(msg ,"22003") or string.find(msg ,"gay") or string.find(msg ,"tnc") or string.find(msg ,"vtnc") or string.find(msg ,"Filha da puta") or string.find(msg ,"diferenciados") or string.find(msg ,"servidor lixo") or string.find(msg ,"favelados") or string.find(msg ,"viado") or string.find(msg ,"vai se fuder") or string.find(msg ,"puta") or string.find(msg ,"porra") or string.find(msg ,"poha") or string.find(msg ,"cuzão") or string.find(msg ,"caralho") or string.find(msg ,"macaco") or string.find(msg ,"staff lixo") or string.find(msg ,"putão") or string.find(msg ,"buceta") or string.find(msg ,"bct") or string.find(msg ,"Favelados") or string.find(msg ,"traveco") or string.find(msg ,"rola") or string.find(msg ,"pinto") or string.find(msg ,"vadia") or string.find(msg ,"cachorra") or string.find(msg ,"vtnc") or string.find(msg ,"FAVELADOS") or string.find(msg ,"Diferenciados") or string.find(msg ,"DIFERENCIADOS") or string.find(msg ,"FDP") or string.find(msg ,"VIADO") or string.find(msg ,"VTNC") or string.find(msg ,"krl") or string.find(msg ,"viad.o") or string.find(msg ,"puta*") or string.find(msg ,"TNC") or string.find(msg ,"vagabunda") or string.find(msg ,"porno") or string.find(msg ,"FUCK") or string.find(msg ,"cuzão") or string.find(msg ,"corno") then cancelEvent() setTimer (setPlayerMuted, 60000, 1, source, false) setPlayerMuted (source,true) outputChatBox (getPlayerName(source)..' #FF0000Foi mutado por 1 minuto devido ao uso de linguagem inadequada.',getRootElement(),255,255,255,true) end end addEventHandler ("onPlayerChat",root,ins)
-
[RESOLVIDO] setGameSpeed apenas para o jogador.
#Iniciante3D replied to #Iniciante3D's topic in Programação em Lua
Sim claro, ele esta do lado client. function speedplayer () setGameSpeed (10) end addEvent ("SpeedOn", true) addEventHandler ("SpeedOn", getRootElement(), speedplayer) -
[RESOLVIDO] setGameSpeed apenas para o jogador.
#Iniciante3D replied to #Iniciante3D's topic in Programação em Lua
Olá Dnl291, ja fiz isso, mas mesmo assim fica para todos. -
Então, eu estou fazendo um Painel VIP em DX, quero colocar o setGameSpeed no arquivo server.lua, porém quando o jogador aperta em ATIVAR, todos ficam a velocidade, como que faz para que só o jogador que executou a ação use a velocidade?
-
Olá. isso ai é só você mudar pelo próprio servidor, Aperte P, vá em RESOURCES, depois de 2 clicks em cima de " scoreboard" vai ter algo escrito + ou - assim " Allowed colors ", ele vai estar false, clica duas vezes e deixe true, e reinicie o scoreboard
-
[Editbox DX] Enviar Informações a uma function [RESOLVIDO]
#Iniciante3D replied to #Iniciante3D's topic in Programação em Lua
Sim deu certo, vlw ai manawydan sempre me ajudando kk, usei o Label -
Olá Galera Bom, eu estou criando um painel de login em DX, mas eu não sei quais funções usar para fazer um Editbox em DX, alguém ai poderia me ajudar a fazer.? E eu queria mandar as informações desse Editbox para uma função... (de se logar ou registrar) Agradeço desde já. Eu fiz isto e as coisas que a pessoa aparecem normalmente user1 = guiGetText (EditUser) pass1 = guiGetText (EditPass) showCursor (true) if user1 then dxDrawText(user1, 595, 341, 770, 369, tocolor(0, 0, 0, 215), 1.20, "default", "center", "center", false, false, false, false, false) if pass1 then dxDrawText(pass1, 595, 415, 770, 443, tocolor(0, 0, 0, 215), 1.20, "default", "center", "center", false, false, false, false, false) Mas como eu disse acima eu quero mandar as informações do user1 e pass1 para uma função, tipo esta function reg (_,state) if registro == true then if state == "down" then if isCursorOnElement (596, 465, 173, 28) then local usernamedrx = guiGetText(user1) local passworddrx = guiGetText(pass1) if usernamedrx ~= "" and passworddrx ~= "" then triggerServerEvent("register",getLocalPlayer(),getLocalPlayer(),usernamedrx,passworddrx) end end end end end addEventHandler ("onClientClick", getRootElement(), reg) Alguém ajuda porfavor ?
-
[DÚVIDA-SIMPLES] Player ao lado [RESOLVIDO]
#Iniciante3D replied to #Iniciante3D's topic in Programação em Lua
Tu podes porfavor, fazer isso no meu script acima? Não entendi direito. Obrigado... -
Eae pessoal. Então, estou criando um script de evento e eu quero colocar pra quando os players que digitaram o comando de ir ao evento, eles ficarem um do lado do outro, não estou conseguindo por favor ajude-me x = -1431 y = -72 z = 14.1 function damagex (source) local incarx = getPedOccupiedVehicle (source) if getElementData (source, "foi",true) then outputChatBox ('#FF5500** #FFFFFFVocê já está no evento!',source,255,255,255,true) return end if incarx then outputChatBox ('#FF5500 ** #FFFFFFVocê não pode ir com um veículo!',source,255,255,255,true) return end setElementPosition (source, x,y,z) setPedFrozen (source,true) takeAllWeapons (source) setElementDimension (source,1) setElementData (source, "foi", true) end addCommandHandler ("evento", damagex)
-
[AJUDA] Saída do som para todos. [RESOLVIDO]
#Iniciante3D replied to #Iniciante3D's topic in Programação em Lua
Obrigado manawydan, pegou corretamente -
[AJUDA] Saída do som para todos. [RESOLVIDO]
#Iniciante3D replied to #Iniciante3D's topic in Programação em Lua
Obrigado por tentar ajudar, mas não funcionou. Agradeço. -
Olá a todos. Estou com uma dúvida no seguinte, fiz um script para a policia que, ao apertar um botão, neste caso 7 sai um som de sirene, porém só sai para a pessoa que apertou o botão (7) queria deixar para todos ouvir. Script abaixo: function bindHoron(_,state,veh) local veh = getPedOccupiedVehicle(localPlayer) local x,y,z = getElementPosition(veh) if isElement(veh) then if ( state == "down" ) then sound = playSound3D ("som.mp3",x,y,z) setSoundMinDistance(sound,1.0) setSoundMaxDistance(sound, 100) attachElements (sound,veh) elseif ( state == "up" ) then if isElement( sound ) then stopSound( sound ) end end end end bindKey("7", "down", bindHoron) bindKey("7", "up",bindHoron)