MaXwEllDeN

Untitled

Jun 10th, 2013
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. function teste(cid)
  2.     if not isCreature(cid) or getCreatureStorageValue(cid, 7123) < 1 then
  3.         return false
  4.     end
  5.    
  6.     doCreatureSay(cid, "oi")
  7.     addEvent(teste, 250, cid)
  8. end
  9.  
  10. function onUse(cid)
  11.     if getCreatureStorageValue(cid, 7123) < 1 then
  12.         setPlayerStorageValue(cid, 7123, 1)
  13.         teste(cid)
  14.     else
  15.         setPlayerStorageValue(cid, 7123, -1)
  16.     end
  17.    
  18.     return true
  19. end
Advertisement
Add Comment
Please, Sign In to add comment