elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Sigue las noticias más importantes de seguridad informática en el Twitter! de elhacker.NET


  Mostrar Mensajes
Páginas: [1]
1  Programación / Scripting / Re: [AYUDA] LUA Scripting en: 28 Junio 2017, 18:19 pm
Entonces deberías empezar por leer y estudiar los fundamentos...


Saludos.
Duda resuelta. ;D
Muchas gracias por la info.
2  Programación / Scripting / [AYUDA] LUA Scripting en: 28 Junio 2017, 05:51 am
Hola, tengo una duda con un script que estoy haciendo, se trata de un anti-afk para Garrys mod.
No tengo ni idea como usar los timers.
mi pregunta es Como puedo parar y luego reanudar el timer? intente creando una Var pero no funciona


Código:
local ply = LocalPlayer()
   
   CreateClientConVar( "afk_enabled", "0", true, false, "Enables/disables Anti-Afk" )
 
 timer.Create("AFK", 5, 0, function()
  LocalPlayer():SetEyeAngles(LocalPlayer():EyeAngles() + Angle(math.Rand(-20,20),math.Rand(-180,180),0))
end )
  if GetConVar("afk_enabled"):GetInt() == 0 then
  return
  end
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines