i made this ctf script but it wont work please can sum 1 fix it for me please, i would really appreciate if you could tell me whats wrong with mine rather than post a completely new one so i can see where im going wrong.
thanks here it is
westscore = 0
eastscore = 0
westdead = false
eastdead = false
#start
westtake = false
easttake = false
westflagowner = flagowner flagW
eastflagowner = flagowner flagE
?(side westflagowner == east): goto "easthavewest"
?(side eastflagowner == west): goto "westhaveeast"
goto "start"
#easthavewest
westflagowner = flagowner flagW
eastflagowner = flagowner flagE
?(eastflagowner == flagE): titleText [format["The East flag is back"]; goto "start"
easttake = true
?!(alive westflagowner)&&(eastdead == false): eastdead == true, [] exec "eastcount.sqs"
?!(alive westflagowner)&&(eastcount == 15): titleText [format["The West flag is back"]; "PLAIN DOWN"]; easttake = false; goto "westreturn"
?(westflagowner distance flagE < 3): goto "eastcapturewest"
?(side eastflagowner == west): easttake = true; goto "bothhave"
goto "easthavewest"
#westhaveeast
westflagowner = flagowner flagW
eastflagowner = flagowner flagE
?(westflagowner == flagW): titleText [format["The West flag is back"]; goto "start"
westtake = true
?!(alive eastflagowner)&&(westdead == false): westdead == true; [] exec "westcount.sqs"
?!(alive eastflagowner)&&(westcount == 15): titleText [format["The East flag is back"]; "PLAIN DOWN"]; westtake = false; goto "eastreturn"
?(westflagowner distance flagW < 3): goto "westcaptureeast"
?(side westflagowner == east): westtake = true; goto "bothhave"
goto "westhaveeast"
#eastcapturewest
titleText [format["%1 (East) captures the West flag", name westflagowner], "PLAIN DOWN"]
eastscore = eastscore + parram1
goto "eastreturn"
#westcaptureeast
titleText [format["%1 (West) captures the East flag", name eastflagowner], "PLAIN DOWN"]
westscore = westscore + parram1
goto "eastreturn"
#westreturn
easttake = false
flagW setflagowner flagW
flagW side west
goto "start"
#eastreturn
westtake = flase
flagE setflagowner flagE
flagE side east
goto "start"
#bothhave
westflagowner = flagowner flagW
eastflagowner = flagowner flagE
?(westflagowner == flagW): titleText [format["The West flag is back"]; goto "start"
?(eastflagowner == flagE): titleText [format["The East flag is back"]; goto "start"
?!(alive eastflagowner)&&(westdead == false): westdead == true; [] exec "westcount.sqs"
?!(alive westflagowner)&&(eastdead == false): eastdead == true, [] exec "eastcount.sqs"
?!(alive westflagowner)&&(eastcount == 15): titleText [format["The West flag is back"]; "PLAIN DOWN"]; easttake = false; goto "westreturn"
?!(alive eastflagowner)&&(westcount == 15): titleText [format["The East flag is back"]; "PLAIN DOWN"]; westtake = false; goto "eastreturn"
?(westflagowner distance flagE < 3): goto "eastcapturewest"
?(westflagowner distance flagW < 3): goto "westcaptureeast"
goto "bothhave"
..............................
I have scripts for when the flag carrier dies to give time before the flag is returned, to be honest if you can integrate them into the ctf script this would be good :D here 1 is the other is the same but for the other team
eastcount = 0
#start
~0.5
eastcount = eastcount + 0.5
?(eastcount == false): goto "end"
goto "start"
#end
exit