ok this is what i need to know.. i got a script(part of economymod) that drops an amount of money when i say /drop ... (it creates a model on the orgin and someone can pick it up)
now i want also when someone dies, his cash drops to. i tried a few things but nothing seems to work.
i tought it would something like

?
Code:
public death() user_drop_money(id,amount)
this is where i must get the amount (wallet)
Code:
format(query,255,"SELECT wallet FROM money WHERE steamid='%s'",authid)
dbi_query(dbc,query)
a part of the /drop code
Code:
if(equali(buffer1,"/drop"))
{
user_drop_money(id,str_to_num(buffer2))
return PLUGIN_HANDLED
}
can someone please help me