Jump to content

Estevam2d

Members
  • Posts

    178
  • Joined

  • Last visited

Posts posted by Estevam2d

  1. Gustavo você me parece muito humilde e realmente me impressionei lendo seu texto pois voce escreveu tudo o que penso a respeito do MTA hoje em dia, eu o desejo boa sorte caso esteja com algum server aberto, mas no meu caso eu já meio que desisti, e talvez eu venderei ou colocarem em aberto alguns projetos meu no futuro, por enquanto eu não estou pensando nisso pois meus estudos estão bem intensivos, e estou sem tempo para dar suporte ou algo do tipo, ficarei mais no forum mesmo se possível para ajudar a galera.

  2. Em primeiro lugar não sou ativo muito no forum e pretendo ajudar bastante gente aqui sim, as minhas atividades aqui foi mais para pedir auxilio.

    Galera eu tenho um server RPG e faz muito tempo que tento fazer ele crescer, mas por incrível que pareça ele não evoluiu de forma alguma.

    Quase todos os resource são feitos por mim exceto aqueles que já veio na host ou um resource auxiliar.

    Acho que um server RPG nunca ira crescer no mta igual, eu me foco muito no server CIT para que os players vejam que realmente um BR conseguiu fazer um server RPG com sistemas de leveis para cada trabalho e sempre renovando, eu não estou me referindo a server rpg hoje em dia que se chama rpg mas tem mods abeça e sao resources de outro pessoal que os donos nao tem direito de usar.

    Se alguem tiver disponivel em uma parceria ai, ja tenho mais de 200 resources criado por mim e varios trabalhos, tenho trabalho de fazenda igual ao do server CIT, acho que so eu tenho, espero que não seja exagero isto, mas quero mostrar o meu trabalho a todos.

    Não quero crianças na equipe que so ta em busca de roubar os trabalhos de outras pessoas que levam dias horas para fazer.

    Mas o meu proposito de vir aqui é saber o que acontece com os players brasileiros do mta ? abro um server rpg e parece que eles não gosta de evoluir em um trabalho, não tem paciencia para jogar em server rpg e evoluir ganhar XP.

    Como posso fazer um server RPG crescer sendo que ja tenho tudo ?

    Isso foi um desabafo. Puts . :oops:

  3. Em primeiro lugar não sou ativo muito no forum e pretendo ajudar bastante gente aqui sim, as minhas atividades aqui foi mais para pedir auxilio.

    Galera eu tenho um server RPG e faz muito tempo que tento fazer ele crescer, mas por incrível que pareça ele não evoluiu de forma alguma.

    Quase todos os resource são feitos por mim exceto aqueles que já veio na host ou um resource auxiliar.

    Acho que um server RPG nunca ira crescer no mta igual, eu me foco muito no server CIT para que os players vejam que realmente um BR conseguiu fazer um server RPG com sistemas de leveis para cada trabalho e sempre renovando, eu não estou me referindo a server rpg hoje em dia que se chama rpg mas tem mods abeça e sao resources de outro pessoal que os donos nao tem direito de usar.

    Se alguem tiver disponivel em uma parceria ai, ja tenho mais de 200 resources criado por mim e varios trabalhos, tenho trabalho de fazenda igual ao do server CIT, acho que so eu tenho, espero que não seja exagero isto, mas quero mostrar o meu trabalho a todos.

    Não quero crianças na equipe que so ta em busca de roubar os trabalhos de outras pessoas que levam dias horas para fazer.

    Mas o meu proposito de vir aqui é saber o que acontece com os players brasileiros do mta ? abro um server rpg e parece que eles não gosta de evoluir em um trabalho, não tem paciencia para jogar em server rpg e evoluir ganhar XP.

    Como posso fazer um server RPG crescer sendo que ja tenho tudo ?

    Isso foi um desabafo. Puts . :oops:

  4. have some way the save time ?

    i don't know use mysql and i need very save time.

    i managed this script and now it is working :D

    setTimer( 
        function () 
            for account, data in pairs (VIPs) do 
             if ( VIPs[account].data.time-10000 > 0 ) then 
             VIPs[account].data.time = VIPs[account].data.time-1000 
              else 
                    VIPs[account] = nil 
            end 
        end 
    end,1000,0) 
         
         
      
      
    addCommandHandler("tv", 
        function (player) 
            local accName = getAccountName ( getPlayerAccount(player) ) 
            outputChatBox( VIPs[accName] and ( VIPs[accName].data.time/1000 .. " Segundos") or "Voce não é vip", player) 
        end 
    ) 
      
    addCommandHandler("addvip", 
        function (player, cmd, accName, secs) 
            if ( getAccount(accName) ) then 
                if ( VIPs[accName] ) then 
                    VIPs[accName].data.time = VIPs[accName].data.time + secs*1000 
                else 
                    VIPs[accName] = {} 
                    VIPs[accName].data = {} 
                    VIPs[accName].data.time = {} 
                    VIPs[accName].data.time = secs*1000 
                    outputChatBox( "Voce add "..secs.. " Segundos", player) 
                end 
            end 
        end 
    ) 
      
    

  5. Everything is working, but time does not count

    My vip does not end

    VIPs = {} 
      
    setTimer( 
        function () 
            for account, data in pairs (VIPs) do 
                time = data.time 
                if ( time-10000 > 0 ) then 
                    VIPs[account].data = time-10000 
                else 
                    VIPs[account] = nil 
                end 
            end 
        end,15000,0) 
    

  6. Exemplo:

      
    Tituloquevocedeuaobotao = guiCreateButton(170,74,150,20,"Botão",false) 
    guiSetProperty(Tituloquevocedeuaobotao, "NormalTextColour", "FFFF0000") 
      
    

    Veja se não é o titulo, no guiSetProperty tem que estar idêntico. Olha meu exemplo, nao pode haver espaços no titulo.

    conte tambem o total do pickcolor

    exemplo:

    FFFF0000

    12345678

    nunca pode estar assim FFFF0 tem que ser 8 exatos FFFF0000

    O fundo voce cria uma pasta chamada imagens

    apos coloque isso na meta

    "imagens/fundo.png" /> 
    

    Baixe qualquer imagem png, tem que ser png caso baixe jpeg etc coloca na meta fundo.jpeg

    agora coloca

    guiCreateStaticImage(231, 455, 53, 53, "imagens/fundo.png", false, Nomedasuajanelaexistenteaqui) 
    

    Espero ter ajudado :D

  7. function Caminhao() 
         if (isElement(CargaCar[client])) then  
         exports.BMVmsg:sendClientMessage ( "Você já esta com uma carga, entregue depois volte aqui para pegar outra" ,source, 255, 0, 0,  true, 10  ) 
         else 
    if (isElement(RaceVehicle[client])) then  
            destroyElement(RaceVehicle[client]) 
    end 
    if (isElement(CargaCar[client])) then  
            destroyElement(CargaCar[client]) 
    end 
         triggerClientEvent (source,"Carga8On", source ) 
         setPlayerTeam(source, Camiin) 
         setPlayerNametagColor ( source, 255, 255, 0 ) 
         setElementModel(source, 34) 
         RaceVehicle[client] = createVehicle ( 515, -1048.572, -1246.281, 130.456,0 ,0 , 179 )  
         warpPedIntoVehicle ( source, RaceVehicle[client] ) 
         CargaCar[client] = createVehicle ( 591, -1048.572, -1246.281, 130.456,0 ,0 , 179) 
         ActiveTrailer[client] = setTimer(attachTrailerToVehicle,50,0,   RaceVehicle[client], CargaCar[client] ) 
         setElementCollisionsEnabled(CargaCar[client], false) --this makes the trailer fly 
        end 
    end 
    addEvent("SetMotorista8", true) 
    addEventHandler("SetMotorista8", root, Caminhao) 
    

  8. Demorei para fazer pq eu não sabia

    testa isso aqui...

    mude o final do createRadarArea para que a area nao fique visivel caso voce queira!

      
    VerArea = createRadarArea(-159.143, 980.239,50, 50, 0, 255, 0, 100)  --Esta em LV  
    safearea = createColSphere( -159.143, 980.239, 50, 50 ) 
      
    function SafeZone() 
           for _,v in ipairs (getElementsByType("ped")) do 
            if (isElementWithinColShape(v , safearea )) then 
            killPed(v)   
            end 
            end 
            for _,v in ipairs (getElementsByType("player")) do 
            if (isElementWithinColShape(v , safearea )) then 
            setPedWeaponSlot ( v, 0 ) 
            toggleControl ( v, "next_weapon", true ) 
            toggleControl ( v, "previous_weapon", true ) 
            toggleControl ( v, "fire", false ) 
            toggleControl ( v, "aim_weapon", false ) 
            toggleControl ( v, "vehicle_fire", false ) 
            toggleControl ( v, "vehicle_secondary_fire", false ) 
            else 
            toggleControl ( v, "fire", true ) 
            toggleControl ( v, "aim_weapon", true ) 
            toggleControl ( v, "vehicle_fire", true ) 
            toggleControl ( v, "vehicle_secondary_fire", true )  
           end 
       end 
    end 
    setTimer(SafeZone, 50, 0 ) 
    

  9. é isso que você quer ?

    local spawns  = {    
    {-2142.9504394531,-2356.3515625,37.765151977539}, 
    {-2142.9504394531,-2356.3515625,50.765151977539}, 
    } 
      
    random = math.random(#spawns)  
    x = spawns[random][1]  
    y = spawns[random][2]  
    z = spawns[random][3]  
    function Cord()     
    outputChatBox ( x..','..y..','..z, getRootElement() , 0, 255, 0,  true ) 
    outputChatBox ( "OK SUCESSO", getRootElement() , 0, 255, 0,  true ) 
    end 
    addCommandHandler( "tes", Cord) 
    

  10. Não testei, apenas tente isso !

    Se der certo me avise !

    safearea = createColSphere(  -2337.722, -1666.026733, 483.50674438, 400 ) 
      
    function savezoneenter( thePlayer, matchingDimension ) 
        if(getElementType(thePlayer) == "ped") then 
           if (isElementWithinColShape(thePlayer , safearea )) then 
            killPed( thePlayer ) 
             end 
        end 
        if getElementType( thePlayer ) == "player" then 
            toggleControl ( thePlayer, "fire", false ) 
            toggleControl ( thePlayer, "next_weapon", true ) 
            toggleControl ( thePlayer, "previous_weapon", true ) 
            setPedWeaponSlot ( thePlayer, 0 ) 
            toggleControl ( thePlayer, "aim_weapon", false ) 
            toggleControl ( thePlayer, "vehicle_fire", false ) 
            toggleControl ( thePlayer, "vehicle_secondary_fire", false ) 
            end 
    end 
    addEventHandler ( "onColShapeHit", safearea, savezoneenter ) 
    

  11. Tente isso !

    Eu não testei caso de certo me avise se não de certo me avise também.

    addEventHandler( "onPlayerWasted", getRootElement( ), 
        function() 
             toggleControl ( source, "aim_weapon", true ) 
        end 
    ) 
    

    Lembrando que

    toggleControl ( source, "aim_weapon", false ) 
    

    é para impedir que o jogador consiga mirar arma.

    O único modo que ele volte a mirar sua arma é reativando o toggleControl para

    toggleControl ( source, "aim_weapon", true )  
    

    Espero que eu tenha te ajudado !

  12. I started using the script that AfuSensi sent me.

    but when I use the command to stop the sound, only the marker is destroyed.

    :cry:

    xXMADEXx and AfuSensi can you help me ?

    side client

    local url = "http://www.181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls" 
      
    sound = {} 
    function playTheSound(x, y, z, vehicle) 
        if not isElement(vehicle) then outputChatBox("Vehicle does not exist") return false end -- Checks if vehicle exist, and returns if vehicle does not exist 
        if isElement(sound[vehicle]) then outputChatBox("Sound is already playing") return false end -- Checks if sound exist, and returns if sound does exist 
      
        local theSound = playSound3D(url, x, y, z) 
        if theSound then 
            sound[vehicle] = theSound 
            attachElements(sound[vehicle], vehicle) 
        else 
            outputChatBox("Sound failed to play") 
            return false 
        end 
        
        
    end 
    addEvent("playTheSound", true) 
    addEventHandler("playTheSound", getRootElement(), playTheSound) 
      
    function stopTheSound(vehicle) 
        stopSound(sound[vehicle]) 
    end 
    addEvent("stopTheSound", true) 
    addEventHandler("stopTheSound", getRootElement(), stopTheSound) 
    

    side server

    speakerObject = {} 
      
    function createSpeaker(thePlayer) 
        local x, y, z = getElementPosition(thePlayer) 
        speakerObject[thePlayer]  = createMarker(x, y, z, "corona", 0.1, 255, 0, 0) 
        outputChatBox("You have Succesfully created a speaker!", thePlayer, 0, 250, 0) 
        if (isPedInVehicle(thePlayer)) then 
            local vehicle = getPedOccupiedVehicle(thePlayer) 
            attachElements(speakerObject[thePlayer], vehicle) 
            triggerClientEvent(root,"playTheSound", root, x, y, z, vehicle) 
        else 
            triggerClientEvent(root,"playTheSound", root, x, y, z) 
        end 
    end 
    addCommandHandler("startsound", createSpeaker) 
      
    function deleteSpeaker(thePlayer) 
        if (isElement(speakerObject[thePlayer])) then 
            destroyElement(speakerObject[thePlayer]) 
            outputChatBox("You have Succesfully destroyed the Speaker!", thePlayer, 0, 0, 255) 
                    triggerClientEvent(root,"stopTheSound", root) 
        else 
            outputChatBox("Speaker is not created!", thePlayer, 250, 0, 0) 
        end 
    end 
    addCommandHandler("stopsound", deleteSpeaker) 
    

  13. probarlo antes

    function CargarRopa() 
        removePedClothes  (  source, 0, 0  )   
        removePedClothes  (  source, 1, 0  )   
        removePedClothes  (  source, 2, 0  )   
    end 
    addEvent("Cargar", true ) 
    addEventHandler("Cargar", resourceRoot, CargarRopa) 
    

    --- mi ejemplo

    function clothes() 
              removePedClothes( source, "vest", "vest", 0 ) 
    end 
    addEvent("Cargar", true)  
    addEventHandler("Cargar",root,clothes) 
      
    

    ver si su gatillo esta maneia esto en el lado del cliente

    triggerServerEvent("Cargar",localPlayer) 
    

  14. You did a test to tell Which is full of bugs?

    For me this is the best system and the owner of own sent to decompiled script.

    But I agree with you and already more back to commit this act.

    I'm sorry for anything.

    :oops:

×
×
  • Create New...