Forum

> > CS2D > Scripts > I do not understand the scripts and ask for your
Forums overviewCS2D overview Scripts overviewLog in to reply

English I do not understand the scripts and ask for your

1 reply
To the start Previous 1 Next To the start

old I do not understand the scripts and ask for your

kewixasd
User Off Offline

Quote
Hi! us

I do not understand the scripts and ask for your help

I'd like to ask you for help

how to make a simple zombie infection mode

Thank you very much for your help

that should be:
-Countdown
-3 infections at a time
-Teleporting to the starting point for the first 3 infections
 
sorry for my bad english
 

old Noone uses titles

Bowlinghead
User Off Offline

Quote
First, when you want to ask for a script then be clear with your request: what means infected? How long is the countdown? Does it trigger on roundstart? What happens while the countdown is ticking (Do you have godmode?; do dead people respawn?)?
Also if you script for yourself: You need to know these answers as well.

Therefore I just gave you an example of how it could work: You gotta add msgs to inform the people; restart the round properly; reset variables on round start etc.

First you have to know every little detail of what you want to do. Like: Infecteds are Ts.
That means you have to put everyone on the CT team on the roundstart. cs2d cmd makect
You have to make switching teams illegal.
Then its basicly looking up in the FAQ and see what hook/variable can help you.
Like: cs2d lua hook team detects wheter a player wants to switch team and you can deny it with return 1.

Spoiler >


Good luck tho - dont stop asking but form clear questions like: I want to choose a random player out of all players - how to create a random number based on player amount? Here is what I tried:
A
B
C
D
Didnt work because E, F, G and H.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview