Hey people!
I made a Capture and Hold the flag map it means:
West and East have to capture flags and Hold them as long as they can...but okay. now the problem
Everytime East or West wanna take a Flag the command "TAKE FLAG" wil be showed.
But when East wanna take the Flag West captures no Command shows up
So when East captured a flag or West then the opposite Team cant take it back so the game can never be won
HERE IS HOW MY CaptureFlag.sqs script looks like:
_flag = _this select 0
_player = flagOwner _flag
?(_flag == Flag1): _msg = "Flag 1"
?(_flag == Flag2): _msg = "Flag 2"
_player addscore 5
goto format ["%1", side _player]
goto "end"
#West
WestFlag = WestFlag + [_flag]
EastFlag = EastFlag - [_flag]
PublicVariable "WestFlag"
PublicVariable "EastFlag"
~0.5
(flagOwner _flag) setflagowner _flag
_flag setflagowner _flag
~0.5
_flag setflagtexture "usa_vlajka.pac"
_flag setflagside West
?(_flag == Flag1): "mFlag1" setMarkerColor "ColorBLUE"
?(_flag == Flag2): "mFlag2" setMarkerColor "ColorBLUE"
titletext [format["NATO forces capture %1", _msg], "PLAIN DOWN"]
goto "end"
#East
EastFlag = EastFlag + [_flag]
WestFlag = WestFlag - [_flag]
PublicVariable "WestFlag"
PublicVariable "EastFlag"
~0.5
(flagOwner _flag) setflagowner _flag
_flag setflagowner _flag
~0.5
_flag setflagtexture "rus_vlajka.pac"
_flag setflagside East
?(_flag == Flag1): "mFlag1" setMarkerColor "ColorRED"
?(_flag == Flag2): "mFlag2" setMarkerColor "ColorRED"
titletext [format["Russian forces capture %1", _msg], "PLAIN DOWN"]
goto "end"
#end
[_flag, side _player] exec "control.sqs"
Exit
Can someone Tell me if there's a problem with it?
THNX for the person who can help me MANY THANX! ;D
Greetz DarkCell