Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function teste(cid)
- if not isCreature(cid) or getCreatureStorageValue(cid, 7123) < 1 then
- return false
- end
- doCreatureSay(cid, "oi")
- addEvent(teste, 250, cid)
- end
- function onUse(cid)
- if getCreatureStorageValue(cid, 7123) < 1 then
- setPlayerStorageValue(cid, 7123, 1)
- teste(cid)
- else
- setPlayerStorageValue(cid, 7123, -1)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment