Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- login.lua:
- function verificarBota(cid)
- if getPlayerStorageValue(cid, 55554) == 1 then
- velocidade = 750 doChangeSpeed(cid, velocidade)
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Voce esta usando:[Mewtwo Bota]")
- return true
- end
- end
- function onLogin(cid)
- if verificarBota(cid) then
- else
- if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then --alterado v1.8
- doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
- else
- doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
- end
- end
- bota.lua
- function onUse(cid, item, frompos, item2, topos)-- By LuizMachado
- if getPlayerStorageValue(cid,55554) == -1 then
- velocidade = 750 doChangeSpeed(cid, velocidade)
- setPlayerStorageValue(cid, 55554, 1)
- doPlayerSendCancel(cid, "Você usou mewtwo bota")
- elseif getPlayerStorageValue(cid, 55554) == 1 then
- return doPlayerSendCancel(cid, 'Voce ja usou esse item!')
- end
- return true
- end
- action.lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement