Ok, here's the triggers and scripts...I will only show the one for the east dead, just duplicate and change stuff for the west:
1) create a trigger, size 0, 0, 0, repeatadly, activation none. In the text block put EFlaglost, just so you can find it later. In the condition field put:
((not isnull flagowner vlajkaRus) AND (not alive flagOwner vlajkaRus))
and in the on activation put:
[] exec "eflaglost.sqs"
Now, put the below in a file called eflaglost.sqs and place it in your user/mission folder:
; This script is run whenever the person who was carrying the flag is killed.
; Pause for a number of seconds to give people time to get the flag back.
; This pause *must* be shorter than the respawn time defined in 'description.ext'
; otherwise the carrier will respawn *with* the flag.
~120
; This check is made to see if anyone picked up the flag from the corpse of the
; player who was carrying it previously.
? ((not isNull flagOwner vlajkaRus) AND (alive flagOwner vlajkaRus)) : goto "Done"
; If the flag is still lying around after the interval has passed then it
; should be moved back to the flag pole.
FlagTaken = False
vlajkaRus setFlagOwner objNull
FlagBearer = objNull
#Done
exit
I have set the delay at 120 seconds, and even though the author says it must be shorter than respawn, I have NOT seen a problem with extending the time.
This all assumes you are using the flagnames for the US and Russian flags.
Hopefully you can see how to add another trigger and .sqs file to do the same for the West side; another trigger named wflaglost, another script called wflaglost, change the script stuff to US flag, etc. etc.
Hoot out!