local joinX = 815.41870117188
local joinY = -1103.0462646484
local joinZ = 25.789876937866
local joinSkin = 20 -- skin ao entrar no servidor
local spawnSkin = 20
local joinMoney = 10000 -- Dinheiro ao entrar no servidor
local spawnX = 815.41870117188
local spawnY = -1103.0462646484
local spawnZ = 25.789876937866
-- Functions
-- This function spawns players when they join
function spawnOnJoin()
spawnPlayer(source, joinX, joinY, joinZ, 20 , joinSkin)
fadeCamera(source, true)
setCameraTarget(source, source)
givePlayerMoney(source, joinMoney)
end
function spawnOnDead(killer, bodypart)
setTimer(spawnPlayer, 3000, 1, source, spawnX, spawnY, spawnZ, 0, spawnSkin)
setCameraTarget(source, source)
end
-- Event handlers
addEventHandler("onPlayerJoin", getRootElement(), spawnOnJoin)
addEventHandler("onPlayerWasted", getRootElement(), spawnOnDead)