Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/11/21 in all areas

  1. I wrote with the help of getDistanceBetweenPoints3D, thank you; )
    1 point
  2. 1 point
  3. Thanks for the report and screenshot. Please try registration again now.
    1 point
  4. The Looking for staff section is the most appropriate place to offer server development services. For more on this, see the guidelines for this section.
    1 point
  5. Código melhorado e devidamente indentado..... addCommandHandler ("versujo", function (player, cmd, target) if (isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Policial"))) then local targetplayer = getPlayerFromName (target) if (targetplayer) then local pX, pY, pZ = getElementPosition (player) -- posição do policial local bX, bY, bZ = getElementPosition (targetplayer) -- posição do abordado local dist = getDistanceBetweenPoints3D (pX, pY, pZ, bX, bY, bZ) -- calcula a distancia da duas posições if dist < 3 then -- se a distancia for menor que 3 então: local Dinheiro_Sujo = getElementData (targetplayer, "moneysujo") outputChatBox ("✘#ffffffINFO#0037FF✘➺ #ffffffO Jogador Tem: #FF0000R$"..Dinheiro_Sujo.."#ffffff Na Carteira !", player, 0, 22, 100, true) else --se não for então: outputChatBox ("✘#ffffffINFO#0037FF✘➺ #ffffffVocê esta muito longe!", player, 0, 22, 100, true) end else outputChatBox ("Nenhum jogador encontrado com esse nick!", player, 255, 0, 0) end else outputChatBox ("Você não tem acesso a esse comando!", player, 255, 0, 0) end end)
    1 point
×
×
  • Create New...