-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmd_clanwar.cfg
More file actions
38 lines (31 loc) · 903 Bytes
/
cmd_clanwar.cfg
File metadata and controls
38 lines (31 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// clanwar script - by star
countdown_time = 5 // time in seconds
countdown = [
say ( format "^f1Game will start in ^f6%1 ^f1seconds, prepare yourself! Good luck and have fun!" $countdown_time)
asleep (* $countdown_time 1000) [
pause 0
say ( format "^f0GO!" )
chk_cw = 0
]
loop i ( - $countdown_time 1) [
asleep (* (+ $i 1) 1000 ) [ say ( format "^f1Starting in ^f6%1 ^f1seconds..." ( - @countdown_time (+ @i 1) ) )]
]
]
chk_cw = 0
chk_spell = 0
startclanwar = [
pigvar = 0 // disable pigmode if enabled!
if ( = $chk_cw 0) [
if ( = (strstr $MODENAMES $arg2) -1) [
say (format "^f3wrong argument: ^f7%1" $arg2)
][
chk_cw = 1
mapmode $arg3 (indexof $MODENAMES $arg2)
pause 1
countdown
]
] [
say ( format "^f1A clanwar has already been initiated!")
]
]
registercommand "cw" startclanwar 2 "ww" "cw <mode> <map> - Start clanwar with countdown."