Achievments

Hi everyone, i am learning lua and want to make achievment with this module: http://www.garrysmod.org/downloads/?a=view&id=65862
That when i kill 100 zombies, i get “zombie slayer” achievment, it will be very grateful if someone write the code.
Thank you.


(User was banned for this post ("Wrong section" - mahalis))

Good luck.


(User was banned for this post ("This isn't helpful" - mahalis))


local ACH = {}
ACH.Type = ACHIEVEMENT_PROGRESS
ACH.Description = "Kill 100 Zombies"
ACH.Image = "gui/silkicons/bomb"
ACH.Target = 100
function ACH:OnKilledNPC( ply, npc )
	if npc:Classify() == CLASS_ZOMBIE then
		self:AwardPoint( ply )
	end
end
achievements.Register( "AI Killing", "Zombie Slayer", ACH )

Untested.

Works great, thank you!