Noobonic Plague Mining Script
So from what I'm gathering you want a script that every ten minutes presses E then waits five seconds to press E again that loops forever? Well if that's what you want here you go (untested, it's quite late, so it also might not even work. Please correct it if I messed up.):
---------- Post added at 03:57 PM ---------- Previous post was at 03:56 PM ----------
Yeah you should be using RunConsoleCommand instead of LocalPlayer():ConCommand().
Code:
new code is a couple of posts down.
---------- Post added at 03:57 PM ---------- Previous post was at 03:56 PM ----------
Yeah you should be using RunConsoleCommand instead of LocalPlayer():ConCommand().
New script as request:
Code:
function AutoMine()
timer.Create("HitEveryTenMin", 600, 0, function()
RunConsoleCommand("+use")
RunConsoleCommand("-use")
timer.Simple(5, function()
RunConsoleCommand("+use")
RunConsoleCommand("-use")
end)
end)
end
concommand.Add("auto_mine", AutoMine)
Bind F9 ";+attack"
Bind F10 ";-attack"
Copy and paste those into console and you can use F9 and F10 to toggle +attack, be sure to include the ;
Bind F10 ";-attack"
Copy and paste those into console and you can use F9 and F10 to toggle +attack, be sure to include the ;
Code:
function automine()
if GetConVarNumber("automine") == 1 then
timer.Create("mine", 2.0, 1, function()
LocalPlayer():ConCommand("+attack")
end)
CreateClientConVar("automine", 0, true, false)
There is so many things wrong I can't even tell you..
1. You never call the function
2. When you call the function, you get an error about timer.Create because you used the wrong syntax [timer.Create( Var uniqueID, Float delay, Integer reps, Function func )] (Did you mean timer.Simple() ?)
3. You never call the timer to be turned off when you turn it on, so you have to relog
4. Deprecated function Player:ConCommand(String command); use RunConsoleCommand(String command)
5. You call +attack two seconds after you create the timer, and it only happens once (Even though you are only supposed to call it once, I know you are trying to call it multiple times)
6. You do timer.Create ... end [correct] and function()..) [Doesn't match; should use function()..end]
1. You never call the function
2. When you call the function, you get an error about timer.Create because you used the wrong syntax [timer.Create( Var uniqueID, Float delay, Integer reps, Function func )] (Did you mean timer.Simple() ?)
3. You never call the timer to be turned off when you turn it on, so you have to relog
4. Deprecated function Player:ConCommand(String command); use RunConsoleCommand(String command)
5. You call +attack two seconds after you create the timer, and it only happens once (Even though you are only supposed to call it once, I know you are trying to call it multiple times)
6. You do timer.Create ... end [correct] and function()..) [Doesn't match; should use function()..end]
This thread is closed for replies.
Similar Threads
Garry's Mod Discussions & Help❓ Noobonic Plague mining scriptIW 1 WarRock - International HacksHW Man's anti-vehicle mines
1 General Game HackingHabbohotel Scripts
8 WarRock - International HacksNEW BYPASS this is my friends bypass and mine he showed me it so yeah
65 ProgrammingOMG I SO STUCK!!!(Java Script "n" html problem
11
