First infection Lua
11 replies



06.09.21 07:57:03 pm
Hello.
im going to come to you for help.
First infection lua script would need.
Which counts back to 30 seconds until the first infection.
id be grateful for your help.xxd

im going to come to you for help.
First infection lua script would need.
Which counts back to 30 seconds until the first infection.
id be grateful for your help.xxd
edited 1×, last 07.09.21 06:29:10 pm
N@
Then if it's simple, you can make it yourself.
Or... Just use the script above (or similar scripts) and strip out the parts that you do not need.
Or... Just use the script above (or similar scripts) and strip out the parts that you do not need.
Look at me standing, here on my own again
@
Mami Tomoe: Just paste the code or do not reply dude. "make it yourself" does NOT help.
@
kewixasd: just copy/paste the specific code you need until someone helps you out.

@

#Discord CS2D Rework - https://discord.gg/pbhdVdj
If someone like
kewixasd would form an understandable sentence with exact criteria what he wants and what the script shall be able to do... Maybe some people would be engaged to help him.
All I understand is a script that writes "first infection" after 30secs.
Either way, it takes time to help you, wether it is the script itself or pasting some code or giving references - whatever. So YOU should take time to write those posts TOO - that is part of being thankful, atleast in my opinion.

Quote:
First infection lua script would need.
Which counts back to 30 seconds until the first infection.
Which counts back to 30 seconds until the first infection.
All I understand is a script that writes "first infection" after 30secs.
Either way, it takes time to help you, wether it is the script itself or pasting some code or giving references - whatever. So YOU should take time to write those posts TOO - that is part of being thankful, atleast in my opinion.
Share time limited free games here

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
addhook("startround", "start_countdown")
addhook("second", "countdown_count")
countdown_running = false
countdown_remaining = 30
function start_countdown(mode)
countdown_remaining = 30
countdown_running = true
end
function countdown_count()
if (countdown_running) then
countdown_remaining = countdown_remaining - 1
msg("Time remaining " .. countdown_remaining)
if (countdown_remaining <= 0) then
countdown_running = false
msg("Infection")
end
end
end
addhook("second", "countdown_count")
countdown_running = false
countdown_remaining = 30
function start_countdown(mode)
countdown_remaining = 30
countdown_running = true
end
function countdown_count()
if (countdown_running) then
countdown_remaining = countdown_remaining - 1
msg("Time remaining " .. countdown_remaining)
if (countdown_remaining <= 0) then
countdown_running = false
msg("Infection")
end
end
end
edited 1×, last 07.09.21 07:38:05 pm
https://ohaz.engineer - Software Engineering

Just paste the code or do not reply dude.
Oh, you're a moderator now?
@

I'm fairly certain he wants a random survivor to transform into a zombie.
Which means the following:
All players should become survivors on round start.
A random survivor should become a zombie after the countdown ends.
Also, you can't use
-=
in Lua. Look at me standing, here on my own again

@
ohaz:
I'm fairly certain he wants a random survivor to transform into a zombie.
Which means the following:
All players should become survivors on round start.
A random survivor should become a zombie after the countdown ends.

I'm fairly certain he wants a random survivor to transform into a zombie.
Which means the following:
All players should become survivors on round start.
A random survivor should become a zombie after the countdown ends.
Quote:
Also, you can't use
-=
in Lua.Thanks for the hint with the -=, I haven't coded in Lua in ages.
https://ohaz.engineer - Software Engineering
@
kewixasd: Don't mind his replies he does not even live in his own house/country.

#Discord CS2D Rework - https://discord.gg/pbhdVdj



