Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. function onLogin(cid)
  2.     local addons = {
  3.         --[storage] = {outfit_male, outfit_female},
  4.         [28416] = {134, 142},
  5.     }
  6.     for storage, addon in pairs(addons) do
  7.         if getPlayerStorageValue(cid, storage) > -1 then
  8.             doSendMagicEffect(getThingPos(cid), CONST_ME_GIFT_WRAPS)
  9.             doPlayerAddOutfit(cid, addon[1], 3)
  10.             doPlayerAddOutfit(cid, addon[2], 3)
  11.             doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu Addon full foi adicionado!")
  12.             setPlayerStorageValue(cid, storage, -1)
  13.         end
  14.     end
  15.     return true
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement