Você não está conectado. Conecte-se ou registre-se

[NPD/RMXP] Retirar f12

Ir para baixo  Mensagem [Página 1 de 1]

1[NPD/RMXP] Retirar f12 Empty [NPD/RMXP] Retirar f12 Sex Mar 23, 2018 6:34 pm

Poseidon

Poseidon
Administrador

Tutorial


Abra o editor de script e adicione 2 novos script acima do main, para adicionar um novo basta apertar insert.



Script F12:


CÓDIGO:
Código:
#============================================================================
# *  Stop F12 from Resetting
#============================================================================
# by Zeriab
#============================================================================
 
 
#=============================================================================
# ** Reset class (because it won't be defined until F12 is pressed otherwise)
#=============================================================================
class Reset < Exception
 
end
#=============================================================================
# ** Module Graphics
#=============================================================================
module Graphics
  class << self
    #-------------------------------------------------------------------------
    # * Aliases Graphics.update and Graphics.transition
    #-------------------------------------------------------------------------
    unless self.method_defined?(:zeriab_f12_removal_update)
      alias_method(:zeriab_f12_removal_update, :update)
      alias_method(:zeriab_f12_removal_transition, :transition)
    end
    def update(*args)
      done = false
      # Keep trying to do the update
      while !done
        begin
          zeriab_f12_removal_update(*args)
          done = true
        rescue Reset
          # Do nothing
        end
      end
    end
    def transition(*args)
      done = false
      # Keep trying to do the transition
      while !done
        begin
          zeriab_f12_removal_transition(*args)
          done = true
        rescue Reset
          # Do nothing
        end
      end
    end
  end
end

https://tavern4maker.forumeiros.com

Ir para o topo  Mensagem [Página 1 de 1]

Permissões neste sub-fórum
Não podes responder a tópicos