Jump to content

gwjasonbr

Members
  • Posts

    8
  • Joined

  • Last visited

gwjasonbr's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Queria Remover O ID De Cima Da Cabeça E Não Para Saber Arrumar Se Poder Arrumar E Manda Pra Eu Copiar E Cola No Lugar Desse Ai É '' server_S.lua '' function toggleInvisibility(thePlayer) if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ("Staff01")) then local enabled = getElementData(thePlayer, "invisible") if (enabled == true) then setElementAlpha(thePlayer, 255) setElementData(thePlayer, "reconx", false) outputChatBox (" -> Você desativou a invisibilidade", thePlayer) setElementData(thePlayer, "invisible", false) elseif (enabled == false or enabled == nil) then setElementAlpha(thePlayer, 0) setElementData(thePlayer, "reconx", true) outputChatBox (" -> Você ativou a invisibilidade", thePlayer) setElementData(thePlayer, "invisible", true) else end else outputChatBox ("Acesso negado", thePlayer) end end addCommandHandler("invisivel", toggleInvisibility) addCommandHandler("inv", toggleInvisibility) .
  2. function toggleInvisibility(thePlayer) if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ("Staff01")) then local enabled = getElementData(thePlayer, "invisible") if (enabled == true) then setElementAlpha(thePlayer, 255) setElementData(thePlayer, "reconx", false) outputChatBox (" -> Você desativou a invisibilidade", thePlayer) setElementData(thePlayer, "invisible", false) elseif (enabled == false or enabled == nil) then setElementAlpha(thePlayer, 0) setElementData(thePlayer, "reconx", true) outputChatBox (" -> Você ativou a invisibilidade", thePlayer) getElementAlpha(thePlayer, "invisible", true) else end else outputChatBox ("Acesso negado", thePlayer) end end addCommandHandler("invisivel", toggleInvisibility) addCommandHandler("inv", toggleInvisibility) Assim ?
  3. qual que ta certo? local drawDistance = 7 g_StreamedInPlayers = {} function toggleInvisibility(thePlayer) if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ("Staff01")) then local enabled = getElementData(thePlayer, "invisible") if (enabled == true) then setElementAlpha(thePlayer, 0) setElementData(thePlayer, "reconx", false) outputChatBox (" -> Você desativou a invisibilidade", thePlayer) setElementData(thePlayer, "invisible", false) elseif (enabled == false or enabled == nil) then setElementAlpha(thePlayer, 0) setElementData(thePlayer, "reconx", true) outputChatBox (" -> Você ativou a invisibilidade", thePlayer) setElementData(thePlayer, "invisible", true) else end outputChatBox ("Acesso negado", thePlayer) else end end addCommandHandler("invi", toggleInvisibility) 2- function onClientRender() local cx, cy, cz, lx, ly, lz = getCameraMatrix() for k, player in pairs(g_StreamedInPlayers) do if isElement(player) and isElementStreamedIn(player) then local vx, vy, vz = getPedBonePosition(player, 4) local dist = getDistanceBetweenPoints3D(cx, cy, cz, vx, vy, vz) if dist < drawDistance and isLineOfSightClear(cx, cy, cz, vx, vy, vz, true, false, false) then local x, y = getScreenFromWorldPosition(vx, vy, vz + 0.3) if x and y then if getElementAlpha(player) > 0 then local ID = getElementData(player, "ID") or "N/A" local w = dxGetTextWidth(ID, 0.1, "default-bold") local h = dxGetFontHeight(1, "default-bold") dxDrawText(""..ID.."", x - 1 - w / 1, y - 1 - h - 12, w, h, CorTag, 1.20, "default-bold", "left", "top", false, false, false, false, false) CorTag = tocolor(255, 255, 255) if getElementData(player, "Cor", true) then CorTag = tocolor(0, 255, 0) end end end end end table.remove(g_StreamedInPlayers, k) end end addEventHandler("onClientRender", root, onClientRender) addCommandHandler("invv", toggleInvisibility) addCommandHandler("inv", toggleInvisibility)
  4. Tenho um servidor de '' ROLEPLAY '' e estava jogando em um servidor que os staff ficava invisivel igual o gta v que o id não aparece e queria saber como faz esse script como eu não sei fazer só pago a host e só Administro... se poder ajuda.
  5. eu to dois anos parado e não lembro como eu deleto uma conta e o id dele, não sei se é pelo filezilla ou pelo tcadmin. queria saber mais meus '' amigos '' que pensei que era '' amigos '' que tem servidor não fala pra mim
×
×
  • Create New...