Hello Im russian man and i need help
i have server in beta test
the problem is that I do not know where and how to insert the hook correctly (give money for killing) - pointshop
on the server is a point-master
Goal: Put a properly designed hook for work
https://steamcommunity.com/sharedfiles/filedetails/?id=635501783
GM/PlayerDeath
Points | PointShop Documentation for Garry's Mod
And next time post here.
There is no HOOKs that i need
i neeed:
but i dont know how and where insert the hook correctly
hook.Add("PlayerDeath", "", function( victim, inflictor, attacker )ifnot IsValid(attacker) ornot attacker:IsPlayer() thenreturnendif attacker == victim thenreturnend
attacker:PS_GivePoints(5)
end)
Hook identifier must not be an empty string, call it "Example" or something, not ""
https://files.facepunch.com/forum/upload/262857/5b038797-bbb3-4f05-9715-6837f45aea8e/image.png
not working