Take a look :
Forum
CS2D Scripts Detecting the max amount in variable each secondDetecting the max amount in variable each second
2 replies 1
Take a look :
1. Counter (
redFlagCount) starts at 0, and stays at 0 because
0 + 0 = 0
2. Counter starts incrementing by 1 (
redFlagAdd) per second once red flag is taken, never stops even if new round begins
3. Once the counter is equal to the value of
redFlagMax(which is 6 in this instance), execute your setpos code (which does not work anyway because the second hook has no parameters) and your msg code
4. And because you did not reset the counter, that few lines of code will never execute again until you restart the script
edited 5×, last 23.07.18 04:30:49 pm
If you want to teleport all players to 0,0 then you must do it with player tableliving
1