English First infection Lua

11 replies
Goto Page
To the start Previous 1 Next To the start
06.09.21 07:57:03 pm
Up
kewixasd
User
Offline Off
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
edited 1×, last 07.09.21 06:29:10 pm
N@
06.09.21 08:25:42 pm
Up
Mami Tomoe
User
Offline Off
fish
07.09.21 12:14:59 pm
Up
kewixasd
User
Offline Off
@user Mami Tomoe:

I don't need that way. All I need is what I wrote, simple, classic
N@
07.09.21 02:57:33 pm
Up
Mami Tomoe
User
Offline Off
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.
fish
07.09.21 04:54:39 pm
Up
Xirot
User
Offline Off
@user Mami Tomoe: Just paste the code or do not reply dude. "make it yourself" does NOT help.
@user kewixasd: just copy/paste the specific code you need until someone helps you out.
#Discord CS2D Rework - https://discord.gg/pbhdVdj
07.09.21 05:38:52 pm
Up
Bowlinghead
User
Offline Off
If someone like user 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.
Quote:
First infection lua script would need.
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
07.09.21 06:32:43 pm
Up
ohaz
User
Offline Off
Code:
1
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
edited 1×, last 07.09.21 07:38:05 pm
https://ohaz.engineer - Software Engineering
07.09.21 07:13:50 pm
Up
Mami Tomoe
User
Offline Off
user Xirot has written:
Just paste the code or do not reply dude.

Oh, you're a moderator now?

@user 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.

Also, you can't use
-=
in Lua.
fish
07.09.21 07:39:11 pm
Up
ohaz
User
Offline Off
user Mami Tomoe has written:
@user 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.
They haven't asked for that though. I have implemented exactly what they asked for.

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
08.09.21 06:08:31 am
Up
kewixasd
User
Offline Off
yes, that's all I've asked for. @Mami Tomoe
N@
09.09.21 04:32:32 pm
Up
Xirot
User
Offline Off
@user kewixasd: Don't mind his replies he does not even live in his own house/country.
#Discord CS2D Rework - https://discord.gg/pbhdVdj
09.09.21 05:40:09 pm
Up
The Dark Shadow
User
Offline Off
That guy has been asking for the same zombie script for almost 4 years, I really got no words...
To the start Previous 1 Next To the start