Jump to content

Teams y Zombies


Hukaeshi

Recommended Posts

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

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...