SHARE
TWEET

Untitled

a guest Jan 20th, 2020 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. login.lua:
  2.  
  3.  
  4. function verificarBota(cid)
  5.    if getPlayerStorageValue(cid, 55554) == 1 then
  6.        velocidade = 750 doChangeSpeed(cid, velocidade)
  7.        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Voce esta usando:[Mewtwo Bota]")
  8.        return true
  9.    end
  10. end
  11.  
  12. function onLogin(cid)  
  13.     if verificarBota(cid) then
  14.     else
  15.     if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then   --alterado v1.8
  16.        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
  17.     else    
  18.        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
  19.       end
  20.     end
  21.  
  22. bota.lua
  23.  
  24. function onUse(cid, item, frompos, item2, topos)-- By LuizMachado
  25. if getPlayerStorageValue(cid,55554) == -1 then
  26.     velocidade = 750 doChangeSpeed(cid, velocidade)
  27.     setPlayerStorageValue(cid, 55554, 1)
  28.     doPlayerSendCancel(cid, "VocĂȘ usou mewtwo bota")
  29. elseif getPlayerStorageValue(cid, 55554) == 1 then
  30.     return doPlayerSendCancel(cid, 'Voce ja usou esse item!')
  31.   end
  32.   return true
  33. end
  34.  
  35.    
  36. action.lua
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top