MandaBraza

Members
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

1 Neutral

About MandaBraza

  • Rank
    Vic
  • Birthday April 17

Details

  • Location
    Brazil

Recent Profile Visitors

317 profile views
  1. MandaBraza

    Anti-Team kill

    team = createTeam("MINHA TEAM", 255, 165, 0) addEventHandler("onPlayerLogin", root, function() local account = getAccountName(getPlayerAccount(source)) if (isObjectInACLGroup("user." ..account, aclGetGroup("teamName"))) then -- "teamName" é o nome do seu grupo que você criou na acl. setPlayerTeam(source, team) setTeamFriendlyFire(team, false) end end) addEventHandler("onPlayerLogout", root, function() setPlayerTeam(source, nil) end)
  2. MandaBraza

    Obter jogadores

    function getNearestPlayer() local x,y,z = getElementPosition(localPlayer) for i, v in ipairs(getElementsByType("player")) do local distance = getDistanceBetweenPoints3D(x, y, z, getElementPosition(v)) if distance <= 20 then outputChatBox("ta perto") else outputChatBox("ta longe") end end end addCommandHandler("near", getNearestPlayer)
  3. function playersWantedLevel(player, cmd, getTarget) local target = getPlayerFromParticalName(getTarget) if (target) then if (isElement(target)) then local level = getPlayerWantedLevel(player) outputChatBox(getPlayerName(target).. " #ffffffestá com: " ..level.. " estrelas de procurado!", root, 255, 255, 255, true) end else outputChatBox("Não foi encontrando nenhum player com esse nome.", 255, 0, 0) end end addCommandHandler("getlevel", playersWantedLevel) function getPlayerFromParticalName(thePlayerName) local thePlayer = getPlayerFromName(thePlayerName) if thePlayer then return thePlayer end for _,thePlayer in ipairs(getElementsByType("player")) do if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), thePlayerName:lower(), 1, true) then return thePlayer end end return false end Seria isso?
  4. MandaBraza

    Panel opening on Ped Click

    local peds = {} function ped(id, model, x,y,z, rotz) local pedTable = {} pedTable.newPed = createPed(model, x,y,z, rotz) setElementFrozen(pedTable.newPed, true) setElementCollisionsEnabled(pedTable.newPed, false) setElementDimension(pedTable.newPed, getElementDimension(localPlayer)) table.insert(peds, pedTable) end function execute() for i, v in pairs(peds) do if (v.id == "1") then -- do whatever you want end end end bindKey("f", "down", execute) ped("1", 65, 2488.64160, -1664.28223, 13.34375, 90) -- grove street