Pointshop problem

Hey I wrote a code for my server I know it works however I it isn’t running the script on a players death.
How would I go about adding it to a server
Here’s the plugin its for: https://github.com/adamdburton/pointshop


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



hook.Add("PlayerDeath", "pointshoppointsonkill", function(victim, inflictor, attacker)
    if SERVER then
                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)


I presume you are overwriting default hooks on your gamemode, so this should work!

If you are not making your own gamemode, use hook.Add.