@name Auto Weapon Stripper on Spawn
@inputs On
@inputs T1:entity T2:entity T3:entity T4:entity
@inputs T5:entity T6:entity T7:entity T8:entity
@outputs N1:string N2:string T1N:string T2N:string Run P1 P2 Con:string
@persist Run T1H T2H T3H T4H T5H T6H T7H T8H
interval(1000)
if (On) {
T1H = T1:health()
T2H = T2:health()
T3H = T3:health()
T4H = T4:health()
T5H = T5:health()
T6H = T6:health()
T7H = T7:health()
T8H = T8:health()

T1N = T1:name()
T2N = T2:name()
T3N = T3:name()
T4N = T4:name()
T5N = T5:name()
T6N = T6:name()
T7N = T7:name()
T8N = T8:name()
Strip = "say_team !strip "


if ($T1H==100 & T1H==100) {P1 = 1} else {P1 = 0}
if ($T2H==100 & T2H==100) {P2 = 1} else {P2 = 0}
if ($T3H==100 & T3H==100) {P3 = 1} else {P3 = 0}
if ($T4H==100 & T4H==100) {P4 = 1} else {P4 = 0}
if ($T5H==100 & T5H==100) {P5 = 1} else {P5 = 0}
if ($T6H==100 & T6H==100) {P6 = 1} else {P6 = 0}
if ($T7H==100 & T7H==100) {P7 = 1} else {P7 = 0}
if ($T8H==100 & T8H==100) {P8 = 1} else {P8 = 0}


if (P1|P2|P3|P4|P5|P6|P7|P8) {Run = 1} else {Run = 0}
if (Run & P1) {N1 = T1N} else {N1 = ""}
if (Run & P2) {N2 = T2N} else {N2 = ""}
if (Run & P3) {N3 = T3N} else {N3 = ""}
if (Run & P4) {N4 = T4N} else {N4 = ""}
if (Run & P5) {N5 = T5N} else {N5 = ""}
if (Run & P6) {N6 = T6N} else {N6 = ""}
if (Run & P7) {N7 = T7N} else {N7 = ""}
if (Run & P8) {N8 = T8N} else {N8 = ""}
if (Run) {Con = Strip + N1 + N2 + N3 + N4 + N5 + N6 + N7 + N8} else {Con = ""}
if (Run) {concmd(Con)}


}
