Hi, I’m currently trying to help a friend code for his server, after reading some of your threads, I noticed that you guys aren’t really fascinated in helping people who are not honest. So let me be honest here: I don’t know how to code a lot, or at all, depending on you guys.
My problem is, I am making death fees for people as shown here:
if playermoney > 100000 then if killer:IsPlayer() or killer:worldspawn then ply:AddMoney(-losemoney) DarkRPCreateMoneyBag(ply:GetPos(), dropamt) GAMEMODE:Notify(ply, 1, 7, "You have lost " .. GAMEMODE.Config.currency .. losemoney .. " (20% of your money) to pay for your revival.") GAMEMODE:Notify(ply, 3, 7, "You may respawn after this message has passed.") else GAMEMODE:Notify(ply, 3, 7, "No money lost due to you not getting killed by a human.") GAMEMODE:Notify(ply, 3, 7, "You may respawn after this message has passed.") end end
As you can see, my second line involved me being rather… Crude in attempt to try fix my problem.
My question is: What is the hook/function for worldspawn deaths? The reason why I wanted to do this is to prevent people from suicide to prevent RP situations and to avoid their death fees.
Any help is appreciated, thanks for your time.
Oh and by the way, playermoney, losemoney, and dropamt are all variables, and is already correctly declared in the code. So just ignore those.