Advertisement
Guest User

VIP_stone.lua

a guest
Jul 1st, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. local timer = 1
  2. local itemid = ACCT["SERVER"].Vip_stone
  3.  
  4. local function RemoveVIPstone(event, _, _, player)
  5. SetVip(player, ACCT[player:GetAccountId()].Vip+1)
  6. player:RemoveItem(ACCT["SERVER"].Vip_stone, 1)
  7. end
  8.  
  9. function VIPstone(event, player, spellID, effindex, item)
  10.  
  11. if(ACCT[player:GetAccountId()].Vip<=(ACCT["SERVER"].Vip_max-1))then
  12. player:RegisterEvent(RemoveVIPstone, timer, 1, player)
  13.  
  14. else
  15. player:SendBroadcastMessage("you are Max VIP "..ACCT[player:GetAccountId()].Vip..".")
  16. return
  17. end
  18. end
  19.  
  20. RegisterItemEvent(itemid, 2, VIPstone)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement