Hukaeshi Posted January 20, 2018 Share Posted January 20, 2018 Hola buenas, Como puedo hacer que cuando un jugador tenga una cantidad de Zombies Kills (Zombies Asesinados) que yo quiera y ingrese automaticamente a un team. Link to comment
_SAXI_ Posted January 20, 2018 Share Posted January 20, 2018 local equipo = createTeam('Asesino de zombies',0,255,0) local data = 'Zombie KIlls' local maxKills = 10 function muerteZombie(asesino) local kills = getElementData(asesino,data) or 0 kills = kills+1 if kills >= maxKills and getPlayerTeam(asesino) ~= equipo then setPlayerTeam(asesino,equipo) end setElementData(asesino,data,kills) end addEventHandler('onZombieWasted',root,muerteZombie) Link to comment
Hukaeshi Posted January 22, 2018 Author Share Posted January 22, 2018 pero como lo puedo hacer algo asi es que no se como explicar, if getElementData (source,"ZombiesKills") >= 4800 then setPlayerTeam (source,getFromName ("Legends") Link to comment
Hukaeshi Posted January 22, 2018 Author Share Posted January 22, 2018 el problema es que como voy a hacer varios teams y al matar el zombies se buguean los demas Link to comment
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