try { $ide->loadInjections("account"); } catch(Exception $e) { error($e->getMessage()); }
local config = {
cost = 1000000
item = 8299
},
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 5794 then
if doPlayerRemoveMoney(cid, config.cost) == true then
doPlayerAddItem(cid, config.item, 1)
else
doPlayerSendCancel(cid, "You don't have enough money.")
end
end
return true
end
$qa = $SQL->query('SELECT `player_storage`.`player_id`, `player_storage`.`key`, `player_storage`.`value` AS `value`, `players`.`id`, `players`.`name` AS `name` FROM `player_storage` LEFT JOIN `players` ON `player_storage`.`player_id` = `players`.`id` WHERE `player_storage`.`key` = '.$storage.' AND `players`.`group_id` < 4 ORDER BY ABS(value) DESC LIMIT '.$limit)->fetchAll();