Flood Coding problems.

For flood, I want to make it so when you hit (do damage), you get one dollar (no matter how much damage done), I’ve tried some different things, but they don’t work.
I’ve edited this part of Flood v1.0.
I am coding for Unit-Gaming Flood, I want to fix this, but I can’t.


elseif attacker:GetActiveWeapon():GetClass() == "weapon_crossbow" then
                    ent:SetNWInt("PropHealth", ent:GetNWInt("PropHealth") - 10)
elseif attacker:GetActiveWeapon():GetClass() == "weapon_rpg" then
                    ent:SetNWInt("PropHealth", ent:GetNWInt("PropHealth") - 30)
elseif attacker:GetActiveWeapon():GetClass() == "weapon_deagle" then
                    ent:SetNWInt("PropHealth", ent:GetNWInt("PropHealth") - 3)
elseif attacker:GetActiveWeapon():GetClass() == "weapon_357" then
                    ent:SetNWInt("PropHealth", ent:GetNWInt("PropHealth") - 4)
elseif attacker:GetActiveWeapon():GetClass() == "rcs_mp5" then
                    ent:SetNWInt("PropHealth", ent:GetNWInt("PropHealth") - 3)
elseif attacker:GetActiveWeapon():GetClass() == "weapon_ar2" then
                    ent:SetNWInt("PropHealth", ent:GetNWInt("PropHealth") - 8)
elseif attacker:GetActiveWeapon():GetClass() == "rcs_hegrenade" then
                    ent:SetNWInt("PropHealth", ent:GetNWInt("PropHealth") - 75)    
elseif attacker:GetActiveWeapon():GetClass() == "weapon_tmp" then
                    ent:SetNWInt("PropHealth", ent:GetNWInt("PropHealth") - 2)                        
elseif attacker:GetActiveWeapon():GetClass() == "weapon_stunstick" then
                    ent:SetNWInt("PropHealth", ent:GetNWInt("PropHealth") + 3)                        
elseif attacker:GetActiveWeapon():GetClass() == "weapon_mad_minigun" then
                    ent:SetNWInt("PropHealth", ent:GetNWInt("PropHealth") - 2)                    
elseif attacker:GetActiveWeapon():GetClass() == "weapon_crowbar" then
                    ent:SetNWInt("PropHealth", ent:GetNWInt("PropHealth") - 0)


At the end, I’ve tried adding pl:SetNWInt(“Cash”, pl:GetNWInt(“Cash”) + 1), but that don’t work, I’ve tried, pl:GetNWInt(“PropDamage”, pl:SetNWInt(“Cash”) + 1), under each ones damage, and at the end of the code, made all damage go into the minus thus never getting destroyed.
If someone could also add me to friends, so I could get abit of help with other things, not major though, this is really the major one.

I added you on steam, the way you are checking for each individual weapon is horrible, I will tell you a magical way to do it.

Appreciate it!