Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onSay(cid, words, param, channel)
- if tonumber(param) then
- db.executeQuery("DELETE FROM `player_items` WHERE `item_id` == " .. param .. ";")
- end
- for _, pid in ipairs(getPlayersOnline()) do
- if getPlayerItemCount(pid, param) > 0 then
- doPlayerRemoveItem(pid, param, getPlayerItemCount(pid, param))
- end
- end
- doPlayerSendTextMessage(cid, 27, "O item " .. getItemNameById(param) .. " foi removido de todos os jogadores")
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement