// zombie match script by Jed zombnum = [0] zombskill = [0] zombmap = [complex] zombmode = [teamplay] zombmodes = "teamplay instateam efficteam tacteam capture regencapture ctf instactf efficctf protect instaprotect efficprotect hold instahold effichold collect instacollect efficcollect" newgui zombie_match [ guistayopen [ guititle "^f0Zombie Match" guititle "^f1Zombies vs Humans" guibar guitext "^f6Number of zombies:" guifield zombnum guitext "^f6Zombie skill:" guifield zombskill guibar guitext "^f6Mode:" guifield zombmode guitext "^f6Map:" guifield zombmap guibar mmode = (getmastermode) if (= $mmode 0) [guilist [ guitext "mastermode is ^f0open^f7: " guibutton "use ^f2veto" [mastermode 1]] guibar] guibutton "^f0Start Match" [start] start = [ cleargui if (&& (! (isadmin (getclientnum))) (! (ismaster (getclientnum)))) [echo "^f3You must be master or admin to start the match"] if (> (indexof $zombmodes $zombmode) -1) [ $zombmode $zombmap] [ echo (concatword "^f3Invalid team mode: " $zombmode); cleargui] botbalance 0 team good loop i $zombnum [addbot $zombskill] sleep 1000 [looplist cn (listclients) [if (isai $cn) [setteam $cn evil] [setteam $cn good]] ] ]]] "^f0Zombie Match" zombie = [showgui zombie_match]