Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onStepIn(cid, item, pos)
- local sta_min = 1 -- Stamina each minutes
- if not isPlayer(cid) then return true end
- if getPlayerStorageValue(cid, 1451) > -1 then return true end
- for i = 1, 15 do
- addEvent(doPlayerAddStamina, 1*60*1000, cid, sta_min, true)
- setPlayerStorageValue(cid, 1451, -1)
- doPlayerSendTextMessage(cid, 27, "Your stamina train is loading, during 15 minutes!")
- end
- return true
- end
- function onStepOut(cid, item, pos)
- if isPlayer(cid) then
- setPlayerStorageValue(cid, 1451, 1)
- doPlayerSendTextMessage(cid, 27, "Your stamina train has been stoped!")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement