Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = {
- item = 1234,
- mounts = {1,2,3,4,5,6,7,8,9,10}
- }
- function onUse(cid, item, position, fromPosition)
- if isPlayer(cid) then
- if getPlayerItemCount(cid, config.item) == 0 then
- doCreatureSay(cid, "You don't have the required item!", TALKTYPE_ORANGE_1)
- else
- doPlayerAddMount(cid, mounts[math.random(1, #mounts)])
- doPlayerRemoveItem(cid,config.item,1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement