NPC health

hook.Add(“PlayerSpawnedNPC”, “SetNPCHealth”, function(ply, npc)
if npc:GetClass() == “npc_MYNPC” then --if it has the right class name
npc:SetHealth(100)

Yes ive made it an lua file and ive put it in my server folder inside my autorun folder. I’ve put the right npc name in. But the class of the npc im using is npc_citizen. I’m wondering if this code only makes the class stronger (( But there is no custom class for my npc )). But i dont want every npc to be as strong as what i want to make other NPC’s. Tell me what im doing wrong?

[editline]03:33PM[/editline]

Sorry i was ment to put in newbies questions. Not requests, Please move the thread

You’re missing an “end” and a " ) ".

Note: Its not an SNPC.

Could someone write out the correct code i’d need… Heres my npc script:
local Category = “Timesplitters Friendly”
local NPC = {
Name = “Harry Tipper”,
Class = “npc_citizen”,
KeyValues = { citizentype = 4 },
Model = “models/Timesplitters/pimpmasterharry.mdl”,
Health = “200”,
Category = Category
}

list.Set( “NPC”, “npc_Harrytipper”, NPC )