--Zaton B52
function actor_has_nimble_weapon(first_speaker, second_speaker)
return db.actor
bject("wpn_groza_nimble") ~= nil or
db.actor
bject("wpn_vintorez_nimble") ~= nil or
db.actor
bject("wpn_desert_eagle_nimble") ~= nil or
db.actor
bject("wpn_fn2000_nimble") ~= nil or
db.actor
bject("wpn_g36_nimble") ~= nil or
db.actor
bject("wpn_protecta_nimble") ~= nil or
db.actor
bject("wpn_mp5_nimble") ~= nil or
db.actor
bject("wpn_sig220_nimble") ~= nil or
db.actor
bject("wpn_spas12_nimble") ~= nil or
db.actor
bject("wpn_usp_nimble") ~= nil or
db.actor
bject("wpn_svu_nimble") ~= nil or
db.actor
bject("wpn_sv98") ~= nil
end
function zat_b51_robbery(first_speaker, second_speaker)
local amount = math.floor(db.actor:money()*math.random(35,50)/100)
if amount > db.actor:money() then
amount = db.actor:money()
end
local need_item = {}
need_item["wpn_usp"] = true
need_item["wpn_desert_eagle"] = true
need_item["wpn_protecta"] = true
need_item["wpn_sig550"] = true
need_item["wpn_fn2000"] = true
need_item["wpn_g36"] = true
need_item["wpn_val"] = true
need_item["wpn_vintorez"] = true
need_item["wpn_groza"] = true
need_item["wpn_svd"] = true
need_item["wpn_svu"] = true
need_item["wpn_pkm"] = true
need_item["wpn_sig550_luckygun"] = true
need_item["wpn_pkm_zulus"] = true
need_item["wpn_wincheaster1300_trapper"] = true
need_item["wpn_gauss"] = true
need_item["wpn_groza_nimble"] = true
need_item["wpn_desert_eagle_nimble"] = true
need_item["wpn_fn2000_nimble"] = true
need_item["wpn_g36_nimble"] = true
need_item["wpn_protecta_nimble"] = true
need_item["wpn_mp5_nimble"] = true
need_item["wpn_sig220_nimble"] = true
need_item["wpn_spas12_nimble"] = true
need_item["wpn_usp_nimble"] = true
need_item["wpn_vintorez_nimble"] = true
need_item["wpn_svu_nimble"] = true
need_item["wpn_sv98"] = true
for k,v in pairs(need_item) do
if db.actor
bject(k) ~= nil then
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, k, "all")
end
end
dialogs.relocate_money_from_actor(first_speaker, second_speaker, amount)
end
function zat_b51_rob_nimble_weapon(first_speaker, second_speaker)
local need_item = {}
local actor_has_item = {}
need_item["wpn_groza_nimble"] = true
need_item["wpn_desert_eagle_nimble"] = true
need_item["wpn_fn2000_nimble"] = true
need_item["wpn_g36_nimble"] = true
need_item["wpn_protecta_nimble"] = true
need_item["wpn_mp5_nimble"] = true
need_item["wpn_sig220_nimble"] = true
need_item["wpn_spas12_nimble"] = true
need_item["wpn_usp_nimble"] = true
need_item["wpn_vintorez_nimble"] = true
need_item["wpn_svu_nimble"] = true
need_item["wpn_sv98"] = true