Numos59 / darkrp

Automatically exported from code.google.com/p/darkrp
0 stars 2 forks source link

$0 bills + drop money on death #392

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If a player has $0 money and they die with drop money on death on, it drops a 
$0 on the floor.

Original issue reported on code.google.com by ch...@watersideway.plus.com on 27 Jul 2010 at 1:56

GoogleCodeExporter commented 8 years ago
hehe, maybe Eusion can fix this 

Original comment by fpeijnen...@gmail.com on 28 Jul 2010 at 9:55

GoogleCodeExporter commented 8 years ago
In trunk/gamemode/sv_gamemode_functions.lua

Line 207 - if tobool(CfgVars["dropmoneyondeath"]) and 
tonumber(CfgVars["deathfee"]) then

Change To - if tobool(CfgVars["dropmoneyondeath"]) and 
tonumber(CfgVars["deathfee"] and ply:GetNWInt("Money") >= 1) then

That should fix it.
Warning: Untested

Original comment by Enjia2000@gmail.com on 3 Aug 2010 at 5:09

GoogleCodeExporter commented 8 years ago
Eusion fixed this. Thanks Eusion!

Original comment by fpeijnen...@gmail.com on 6 Aug 2010 at 3:15