Jump to content

Hellp (Team Spawn)


Recommended Posts

TUE = createTeam ( "[TUE]Torcida Uniformizada Esquadrão", 139, 134, 130 )

local spawnXTUE1, spawnYTUE1, spawnZTUE1 = -2024.08130, 66.94630, 28.44916
addEvent("TUE1",true)
addEventHandler("TUE1",root,
function(skin)
setPlayerTeam (source, getTeamFromName("[TUE]Torcida Uniformizada Esquadrão"))
spawnPlayer(source, spawnXTUE1, spawnYTUE1, spawnZTUE1)
setElementRotation ( source, 0 ,0 ,90 )  
fadeCamera(source, true)
setCameraTarget ( source, source )
setElementModel ( source, 0 )
giveWeapon ( source, 1, 1)
giveWeapon ( source, 5, 1 )
giveWeapon ( source, 18, 5 )
setPlayerNametagColor ( source, 139, 134, 130 )
setTeamFriendlyFire ( TUE, true )
outputChatBox("Bem Vindo - [TUE] ", source, 139, 134, 130 )
end)

estou com uma dúvida e não consegui entender na wiki no caso "Wasted"  só que tentei de algumas formas adicionar ai só que não deu certo, Ajudem PFV

Link to comment

O evento "onPlayerWasted" ou seja quando algum jogador morre . Irá executar a função   skin.

 

TUE = createTeam ( "[TUE]Torcida Uniformizada Esquadrão", 139, 134, 130 )

local spawnXTUE1, spawnYTUE1, spawnZTUE1 = -2024.08130, 66.94630, 28.44916


function(skin)
    setPlayerTeam (source, getTeamFromName("[TUE]Torcida Uniformizada Esquadrão"))
    spawnPlayer(source, spawnXTUE1, spawnYTUE1, spawnZTUE1)
    setElementRotation ( source, 0 ,0 ,90 )  
    fadeCamera(source, true)
    setCameraTarget ( source, source )
    setElementModel ( source, 0 )
    giveWeapon ( source, 1, 1)
    giveWeapon ( source, 5, 1 )
    giveWeapon ( source, 18, 5 )
    setPlayerNametagColor ( source, 139, 134, 130 )
    setTeamFriendlyFire ( TUE, true )
    outputChatBox("Bem Vindo - [TUE] ", source, 139, 134, 130 )
end

addEvent("TUE1",true)
addEventHandler("TUE1",root, skin)
addEventHandler ( "onPlayerWasted", getRootElement(), skin )

 

Edited by DaeRoNz
update
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...