-
Posts
80 -
Joined
-
Last visited
Everything posted by MRXBBC
-
returned You Key: table: 0x55ecae718cf0
-
I only wanted one player to generate the key and pass it on to others
-
Faça um evento pra ser iniciado na tela de registro por exemplo : quando o player se registra ele tem esse valor como true, depois que ele spawna pela primeira vez seta esse evento como false, nisso ele só vai aparecer nessas coordenadas na primeira vez do registro, e n irá ter conflito com seu save system
-
is this just for the player who generated a key? or can any other player use it?
-
I did so, I would like the player to use the command together with the generated key function teste (source) KEYS[Key] = true Key = generateString(12) outputChatBox ( "Generated string was: " .. Key, root, 0, 255, 0 ) end addCommandHandler("teste",teste ) addCommandHandler("Gen", function(keyuser) if KEYS[Key] then outputChatBox ( "You Key: " .. Keys[Key], root, 0, 255, 0 ) else outputChatBox ( "not", root, 0, 255, 0 ) end end)
-
function generateString ( len ) if tonumber ( len ) then math.randomseed ( getTickCount () ) local str = "" for i = 1, len do local charlist = allowed[math.random ( 1, 3 )] str = str .. string.char ( math.random ( charlist[1], charlist[2] ) ) end return str end return false end function test (source) Key = generateString(12) outputChatBox ( "Generated string was: " .. Key, root, 0, 255, 0 ) end addCommandHandler("test",teste ) Hello Community, I would like some help with the following code, I would like the generated string to be saved in a table, and then checked if it exists or not
-
Se vc colocar objetos através do outro sempre dará bug , e a função você escolhe o id e a distancia do render
-
local ativo = { { 48, 57 }, { 65, 90 }, { 97, 122 } } function gerador ( len ) if tonumber ( len ) then math.randomseed ( getTickCount () ) local str = "" for i = 1, len do local lista = ativo[math.random ( 1, 3 )] str = str .. string.char ( math.random ( lista[1], lista[2] ) ) end return str end return false end function teste (source) Key = gerador(12) outputChatBox ( "Key Gerada " .. Key, root, 0, 255, 0 ) end addCommandHandler("teste",teste ) Queria salvar a key no arquivo ai quando o player usar ela vai verificar se existe ou n, ai se existe será removida da tabela, teria como fazer algo assim com o Json?
-
Como faço a interação com JSON?
-
Opa irmãos, alguem pode me dá uma luz? como eu posso fazer uma função pra gerar numero aleatorios? podemos se dizer um gerador de key, e nisso um sistema detectar essa key pra ver se ela é válida ou n, vou precisar de um bd mas quais funçoes eu poderia usar?
-
ele tá restaurando de uma vez
-
só vc fazer uma variavel no lugar do local da sua imagem no caso eu coloquei como button dxDrawImage(x*930, y*20, x*55, y*50, button, 0, 0, 0, tocolor(255,255,255, between[5]), false) ai eu fiz uma condição que se tiver play e ele clicar na posição e o button tiver em play ele seta pra pause e seta o som como pause e vice e versa
-
elseif isCursorOnElement(x*930, y*20, x*55, y*50) then if button == "img/pause.png" then button = "img/play.png" setSoundPaused(playingSound, true) elseif button == "img/play.png" then button = "img/pause.png" setSoundPaused(playingSound, false) end só cirar um if, e setar o seu playsound para falso
-
Quero criar um sistema pra quando o player estiver com a vida menor que 100 comece a aumentar um de vida eu estava fazendo assim mas n tava dando muito certo, alguem pode me dá uma luz if vida < 100 then Tempo[source] = setTimer ( function() setElementHealth ( localPlayer, getElementHealth(localPlayer) + 1 ) if vida >= 100 then if isTimer(Tempo[source]) then killTimer(Tempo[source]) end end end, 100000, 1 ) end Exemplo: a cada 1 segundo aumenta 1 de vida
-
Muito obrigado, vou dá uma olhada aqui, pra ver se consigo fazer
-
Lord tem como dá uma olhada no meu tópico?
-
<meta> <script src="client.Lua" type="client" /> <script src="sever.Lua" type="server" /> </meta> irmão tenta por assim
-
coloca bindkey mano kkkkk, vai funcionar
-
n tinha visto é alguma expressão de codigo externo, o seu console também n ta achando
-
n existe esse keybind que vc colocou
-
Mano tem como vc me explicar melhor? n entendi muito bem
