Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onStepIn(cid, item, pos, frompos)
- local config = {
- vocation = 4, -- Needed vocation
- storage = 13820 -- No change!
- }
- if getPlayerVocation(cid) == config.vocation then
- if getPlayerStorageValue(cid, config.storage) <= -1 then
- doPlayerSendTextMessage(cid, 22, "You are not Knight, if you pass here again lose 10k!")
- doTeleportThing(cid, frompos, true)
- setPlayerStorageValue(cid, config.storage , 1)
- end
- end
- if getPlayerStorageValue(cid, config.storage) >= 1 then
- if doPlayerRemoveMoney(cid, 10000) == TRUE then
- doPlayerSendTextMessage(cid,22,"You lose 10k!")
- setPlayerStorageValue(cid, config.storage, -1)
- return true
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment