Use vce,
make a brick with following events,
On activate >> client >> ifvalue coin == costofitem
on variable true >> player >> add item
and if it's something you get money from killing bots
Onbotkilled >> client >> (value or something, not if) >> coin >> add >> number here
it's something like that.