Jump to content

Kaarpas

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

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

Kaarpas's Achievements

Square

Square (6/54)

3

Reputation

  1. Thanks for the help, it's something like @majqq I've already done in my scripts!
  2. function kikarplayer (theClient, commandName, kickedName, ...) local account = getAccountName (getPlayerAccount (theClient)) if isObjectInACLGroup ("user."..account, aclGetGroup ("Admin")) then  if not ... then return outputChatBox ("#bf2e2e* Erro: /kick [nick] [motivo]",theClient,255,255,255,true) end local reason = table.concat({...}," ") local kickerName = getPlayerName(theClient):gsub("#%x%x%x%x%x%x","") local kickedPlayer = getPlayerFromName(kickedName) if not isElement(kickedPlayer) then outputChatBox ("#bf2e2e* Erro: Player Invalido!",theClient,255,255,255,true) end outputChatBox ( "#c9c9c9[#1a6cefFW-INFORMA#c9c9c9]O #1a6cef" .. kickerName .. " #c9c9c9Kickou o Player #1a6cef" ..getPlayerName(kickedPlayer):gsub("#%x%x%x%x%x%x","").. "#c9c9c9 | Motivo #1a6cef" ..reason.. "#c9c9c9", getRootElement(), 255, 0, 0, true ) banPlayer ( kickedPlayer, theClient, reason ) else outputChatBox ("#bf2e2e* Erro: Você Não tem Permissão!",theClient,255,255,255,true) end end addCommandHandler ( "kick", kikarplayer )
  3. Você adicionou o evento errado. Linha 18 do client: addEvent("blipuplevel", true)
  4. It's something that worries me a lot, since I spend a lot of time in scripting, just as you should do.
  5. Thank you, but you have not helped me yet. It is because I believe that the code has to be sent to the client for it to run, I do not know if with some type of proxy it is possible to intercept it and read it, I do not understand much of proxys. And good, since you cite in your topic, what is the best way to compile a script, having three options in luac?
  6. How best to protect resources? Is it possible for someone to steal a decompiled client side script even with a false cache?
  7. Olá, pessoal... Em um script, chamo uma exportação que fiz de outro script. Essa função exportada retorna mais de um valor, como eu separo-os na função que o chamou? Função que chama a exportação: function Login() account = getAccountName(getPlayerAccount(source)) info = Login:getNumInfo(account) end addEventHandler("onPlayerLogin", getRootElement(), Login) Função exportada: function getNumInfo(account) local data = dbPoll(dbQuery(databDB, "SELECT * FROM Contas WHERE User = ?", account), -1) if type(data) == "table" and #data ~= 0 then n1 = data[1]["Vr1"] n2 = data[1]["Vr2"] return n1, n2 end end EDIT: *Consegui fazer-lo com gettok.*
  8. Sim, eu sei sobre o trigger. Então a melhor opção vai ser por tabelas... Obrigado guys!
  9. Então se eu for fazer um draw por exemplo, a cada frame o cliente buscar uma conexão com o banco de dados pra informar um mesmo valor que seria informado quando ele entrasse? PS: Conexão com um SQLITE hospedado na mesma máquina do servidor, não por MySQL. E se não for, MySQL é mais viável que SQLite? Ahh, e uma dúvida também. Se eu setar um element data do lado cliente, o element data ocupará a memória do cliente, né?
  10. Olá, pessoal. Gostaria de saber se element data atrapalha o desempenho do servidor - não para salvar dados como se fosse um banco de dados, somente alguns dados que são atribuidos e depois esquecidos - e se utilizam muita RAM.
  11. Olá, pessoal. Gostaria de saber se element data atrapalha o desempenho do servidor - não para salvar dados como se fosse um banco de dados, somente alguns dados que são atribuidos e depois esquecidos - e se utilizam muita RAM.
×
×
  • Create New...