1-button spawntelling script

I made a spawntelling script (the kind of script used to say "enemy spawns at 15 / 45" etc) that takes only 1 button from your keyboard: press z, scroll up/down with the mousewheel until you reach the number you wanted, then release z to communicate it to teammates. Press z without moving the wheel when you want to tell the time again, or you can use the wheel to adjust it.


set binds1 "bind mwheelup XXXXXXXX; bind mwheeldown YYYYYYYYY; vstr saytime" //replace XXXXXXXX and YYYYYYYYY with what you have bound to mwheelup/down, like weaponnext/prev if you are noob
set binds2 "bind mwheelup vstr up_time; bind mwheeldown vstr down_time"

bind Z "+vstr binds2 binds1" // replace Z with the button you want to use for the script


set time1 "echo 1; set saytime say_team spawn a 1; set up_time vstr time30; set down_time vstr time2"
set time2 "echo 2; set saytime say_team spawn a 2; set up_time vstr time1; set down_time vstr time3"
set time3 "echo 3; set saytime say_team spawn a 3; set up_time vstr time2; set down_time vstr time4"
set time4 "echo 4; set saytime say_team spawn a 4; set up_time vstr time3; set down_time vstr time5"
set time5 "echo 5; set saytime say_team spawn a 5; set up_time vstr time4; set down_time vstr time6"
set time6 "echo 6; set saytime say_team spawn a 6; set up_time vstr time5; set down_time vstr time7"
set time7 "echo 7; set saytime say_team spawn a 7; set up_time vstr time6; set down_time vstr time8"
set time8 "echo 8; set saytime say_team spawn a 8; set up_time vstr time7; set down_time vstr time9"
set time9 "echo 9; set saytime say_team spawn a 9; set up_time vstr time8; set down_time vstr time10"
set time10 "echo 10; set saytime say_team spawn a 10; set up_time vstr time9; set down_time vstr time11"
set time11 "echo 11; set saytime say_team spawn a 11; set up_time vstr time10; set down_time vstr time12"
set time12 "echo 12; set saytime say_team spawn a 12; set up_time vstr time11; set down_time vstr time13"
set time13 "echo 13; set saytime say_team spawn a 13; set up_time vstr time12; set down_time vstr time14"
set time14 "echo 14; set saytime say_team spawn a 14; set up_time vstr time13; set down_time vstr time15"
set time15 "echo 15; set saytime say_team spawn a 15; set up_time vstr time14; set down_time vstr time16"
set time16 "echo 16; set saytime say_team spawn a 16; set up_time vstr time15; set down_time vstr time17"
set time17 "echo 17; set saytime say_team spawn a 17; set up_time vstr time16; set down_time vstr time18"
set time18 "echo 18; set saytime say_team spawn a 18; set up_time vstr time17; set down_time vstr time19"
set time19 "echo 19; set saytime say_team spawn a 19; set up_time vstr time18; set down_time vstr time20"
set time20 "echo 20; set saytime say_team spawn a 20; set up_time vstr time19; set down_time vstr time21"
set time21 "echo 21; set saytime say_team spawn a 21; set up_time vstr time20; set down_time vstr time22"
set time22 "echo 22; set saytime say_team spawn a 22; set up_time vstr time21; set down_time vstr time23"
set time23 "echo 23; set saytime say_team spawn a 23; set up_time vstr time22; set down_time vstr time24"
set time24 "echo 24; set saytime say_team spawn a 24; set up_time vstr time23; set down_time vstr time25"
set time25 "echo 25; set saytime say_team spawn a 25; set up_time vstr time24; set down_time vstr time26"
set time26 "echo 26; set saytime say_team spawn a 26; set up_time vstr time25; set down_time vstr time27"
set time27 "echo 27; set saytime say_team spawn a 27; set up_time vstr time26; set down_time vstr time28"
set time28 "echo 28; set saytime say_team spawn a 28; set up_time vstr time27; set down_time vstr time29"
set time29 "echo 29; set saytime say_team spawn a 29; set up_time vstr time28; set down_time vstr time30"
set time30 "echo 30; set saytime say_team spawn a 30; set up_time vstr time29; set down_time vstr time1"
vstr time10

You can replace the dumb "spawn a n" line with something you like more such as "spawn at n / n+30", of course you'd need a separate version for 20-seconsd spawns :P
Comments
0
Back to top