Jump to content

Jackdolirol021

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Jackdolirol021

  1. Guys is there any way I can do client testing without needing a player?

    Like let's say I'm selling something, and for the player to buy it, they need to get close to me to open a purchase panel and in that panel there will be a number of items that I'm selling, how would I test this without needing a player?

    Aaa any way to automate this?

  2. - Configurações para quando um jogador entrar
        -- XYZ coodenadas
        local joinX = 2026.2465820313
        local joinY = -1422.3365478516
        local joinZ = 16.9921875
        -- Armas e tiros
        local joinWeapon = 0
        local joinAmmo = 0
        -- Menssagem para o jogador
        local joinMessage = "Seja bem vindo ao servidor!"
        -- Pele do jogador
        local joinSkin = 0

    -- Configurações para quando um jogador morrer
        -- XYZ coördinates
        local spawnX = 2026.2465820313
        local spawnY = -1422.3365478516
        local spawnZ = 16.9921875
        -- Armas e tiros
        local spawnWeapon = 0
        local spawnAmmo = 0
        -- Pele do jogador
        local spawnSkin = 

    -- Definições para as quantidades de dinheiro
        -- Dinheiro por matar um jogador
        local killerMoney = 0
        -- O dinheiro retirado do jogador quando morrem
        local deadPlayerMoney = 0
        -- Dinheiro ganho quando entra no server
        local joinMoney = 9000

    -- Functions
    -- This function spawns players when they join
    function spawnOnJoin()
        spawnPlayer(source, joinX, joinY, joinZ, 0 , joinSkin)
        fadeCamera(source, true)
        setCameraTarget(source, source)
        outputChatBox(joinMessage, source)
        giveWeapon(source, joinWeapon, joinAmmo)
        givePlayerMoney(source, joinMoney)
    end

    -- This function spawns players after they died
    function spawnOnDead(ammo, killer, weapon, bodypart)
        outputChatBox(getPlayerName(source).." died.")
        takePlayerMoney(source, deadPlayerMoney)
        if (killer) and (killer ~= source) then
            givePlayerMoney(killer, killerMoney)
        end
        setTimer(spawnPlayer, 3000, 1, source, spawnX, spawnY, spawnZ, 0, spawnSkin)
        setCameraTarget(source, source)
        setTimer(giveWeapon, 3000, 1, source, spawnWeapon, spawnAmmo)
    end

    -- Event handlers
    addEventHandler("onPlayerJoin", getRootElement(), spawnOnJoin)
    addEventHandler("onPlayerWasted", getRootElement(), spawnOnDead)

×
×
  • Create New...