Jump to content

foxy1519

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by foxy1519

  1. boa tarde queria tirar uma duvida sobre vendas de mapas mta
    vou começar a fazer mapas de mta para vender minha duvida e se precisar de alguma coisa para vender mapas e outros mods de mta
    ou simplesmente e fazer e sair vendendo?

    se alguém puder me  informar fico grato

  2. boa noite queria saber como faz para trocar id do player sou novato na programação queria saber se tem como fazer algum comando ou algo assim para trocar o id 

    scrip

     

    function Start_Id ( _, acc )
        if eventName == "onPlayerLogin" then
            setElementData ( source, "ID", getAccountID(acc) or "N/A" )
            outputChatBox ( "#00ff00✘ #ffffffLOGIN #00ff00✘➺ #ffffffNick: #00ff00 ( ".. getPlayerName(source) .." #00ff00) #ffffffID: #00ff00( "..(getAccountID(acc) or "N/A") .." )", root, 255,255,255,true)
        elseif eventName == "onPlayerLogout" then
            removeElementData( source, "ID" )
            outputChatBox ( "#00ff00✘ #ffffffLOGIN #00ff00✘➺ #ffffffNick: #00ff00 ( ".. getPlayerName(source) .." #00ff00) #ffffffDeslogou.", root, 255,255,255,true)
        elseif eventName == "onResourceStart" then
            for _, player in pairs(getElementsByType("player")) do
                local acc = getPlayerAccount(player)
                if not isGuestAccount(acc) then
                    setElementData( source, "ID", getAccountID(acc) or "N/A" )
                end
            end
        end
    end
    addEventHandler("onResourceStart", resourceRoot, Start_Id)
    addEventHandler("onPlayerLogout", root, Start_Id)
    addEventHandler("onPlayerLogin", root, Start_Id)

    function getPlayerID(id)
        v = false
        for i, player in ipairs (getElementsByType("player")) do
            if getElementData(player, "ID") == id then
                v = player
                break
            end
        end
        return v
    end

    function getnick(player, command, id, ...)
        if(id) then
            local playerID = tonumber(id)
            if(playerID) then
                local Player2 = getPlayerID(playerID)
                if(Player2) then    
                    outputChatBox ( "#00ff00✘ #ffffffINFO #00ff00✘➺ #ffffff Nome do Jogador #00ff00" .. getPlayerName(Player2) .."", player, 255,255,255,true)
                else
                    outputChatBox ( "#00ff00✘ #ffffffERRO #00ff00✘➺ #ffffff O Jogador(a) de ID: #00ff00( " .. id .. " ) #ffffffNão Foi Encontrado!", player, 255,255,255,true)
                end 
            else
                outputChatBox ( "#00ff00✘ #ffffffERRO #00ff00✘➺ #ffffff ID: #00ff00( " .. id .. " ) #ffffffInválido!", player, 255,255,255,true)
            end
        else
            outputChatBox ( "#00ff00✘ #ffffffERRO #00ff00✘➺ #ffffffUse /id #00ff00[#ffffffID#00ff00]", player, 255,255,255,true)
        end
    end
    addCommandHandler("id", getnick)

     

  3. foi banido por serial recentemente em um servidor de mta  fiz de todo para poder entra novamente ate aformarei o pc e não funcionou vi vários tutoriais e metados da net mais nem um funciona quero muito voltar a jogar nesse server vim pedir ajuda aqui se alguém pode me ajuda fico muito grato

    • Sad 1
×
×
  • Create New...