sorry not see your reply...... here is the code
(module_mission_templates.py)
(try_begin), #give 2000 denar to flag catcher, and 2000 to team members.
(multiplayer_is_server),
(neg|agent_is_non_player, ":cur_agent"),
(agent_get_player_id, ":cur_agent_player_id", ":cur_agent"),
(player_get_gold, ":cur_agent_player_gold", ":cur_agent_player_id"),
(val_add, ":cur_agent_player_gold", "$g_multiplayer_gold_gained_from_capturing_flag"),
(player_set_gold, ":cur_agent_player_id", ":cur_agent_player_gold"),
(player_get_team_no,":winner_team",":cur_agent_player_id"),
(try_for_range, ":player_x", 1, ":num_players"),
(player_is_active, ":player_x"),
(player_get_team_no, ":player_teamx", ":player_x"),
(try_begin),
(eq, ":player_teamx", ":winner_team"),
(player_get_gold, ":player_gold", ":player_x"),
(val_add, ":player_gold", "$g_multiplayer_gold_gained_from_capturing_flag"),
(player_set_gold, ":player_x", ":player_gold", multi_max_gold_that_can_be_stored),
(try_end),
(try_end),
(try_end),