Pointshop problem

I have something wrong with this code or how I put it in my autorun file here is the plugin it is for: https://github.com/adamdburton/pointshop
Can anyone help me with the code/tell me what to put in my autorun files thanks!


if SERVER then
	function GM:PlayerDeath(victim, inflictor, attacker)
		if victim == attacker then
			PrintMessage( HUD_PRINTTALK, victim:Name() .. " committed suicide." )
		else
			PrintMessage( HUD_PRINTTALK, victim:Name() .. " was killed by " .. attacker:Name() .. "." )
			attacker:PS_GivePoints(75)
			attacker:PS_Notify("You have earned 75 points for killing " .. victim:Name())
		end
	end
end

Do NOT override default hooks. Use hook.Add instead