PDA

View Full Version : stop-resume timer - return flag



feanor
22nd October 2016, 17:15
hi , i was making ctf-hq mod with half time system(team switching) , but i wanted to make it without maprestart. is there a way to stop and resume timer with a quick code ? and how should i call returnflag() function in half time , bcs players can drop flag in team switching.


returnFlag()
{
self notify("end_autoreturn");

self.origin = self.home_origin;
self.flagmodel.origin = self.home_origin;
self.flagmodel.angles = self.home_angles;
self.flagmodel show();
self.atbase = true;

objective_position(self.objective, self.origin);
objective_team(self.objective, "none");

self createFlagWaypoint();
self deleteFlagMissingWaypoint();
}

maxdamage99
23rd October 2016, 06:29
You can destroy, and create new? No?

feanor
25th October 2016, 12:03
return flag problem is solved.
yea i know that , just asked is there a way to stop and resume ^^ thx