#DaNiLiN Posted July 19, 2018 Posted July 19, 2018 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
Other Languages Moderators Lord Henry Posted July 19, 2018 Other Languages Moderators Posted July 19, 2018 Mantenha o código indentado para ficar legível. E o que esse código deveria fazer?
DaeRoNz Posted July 23, 2018 Posted July 23, 2018 (edited) 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 July 23, 2018 by DaeRoNz update
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now