You are making multiplayer I am assuming. I map SP so I dont know tons.
Here is a good site for different multiplayer objective scripting
http://gronnevik.se/rjukan
Here is an example script for a flak88 where the allies have to blow it up and the germans have to protect it.
main:
level waittill prespawn
exec global/DMprecache.scr //this loads up all of the stuff for multiplayer
level.script = maps/obj/objtest.scr //name of the level script
exec global/ambient.scr m4l1 //ambient sound in this case the sound from m4|1
exec global/door_locked.scr::lock //this is if you want some doors to be locked. (controlled by the player, he decides which doors)
setcvar "g_obj_alliedtext1" "Capture the gun"// <---These are the lines they will see! Like what they are suposed to do!
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "- Prevent Allies from" //little game message when the map loads
setcvar "g_obj_axistext2" "destroying the Flak88's"
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
level waittill spawn
level.bomb_damage = 200
level.bomb_explosion_radius = 640
level.defusing_team = "axis" //sets all the needed variables
level.planting_team = "allies"
level.targets_to_destroy = 1 //on flak88 to destroy
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw
level waittill roundstart //waits until the round starts
$flak88_explosive1 thread global/obj_dm.scr::bomb_thinker
$flak88_explosive1 thread axis_win_timer
thread allies_win_bomb
end
//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------
axis_win_timer: //if the time runs out the axis wins
level waittill axiswin
end
//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------
allies_win_bomb: //if the allies plant a bomb before the time runs out then they win
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end