Results 1 to 3 of 3

Thread: stop-resume timer - return flag

  1. #1
    Private First Class
    Join Date
    Nov 2015
    Posts
    128
    Thanks
    37
    Thanked 14 Times in 14 Posts

    stop-resume timer - return flag

    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.

    PHP Code:
    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.objectiveself.origin);
        
    objective_team(self.objective"none");

        
    self createFlagWaypoint();
        
    self deleteFlagMissingWaypoint();

    Last edited by feanor; 22nd October 2016 at 18:18.

  2. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    You can destroy, and create new? No?
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

  3. #3
    Private First Class
    Join Date
    Nov 2015
    Posts
    128
    Thanks
    37
    Thanked 14 Times in 14 Posts
    return flag problem is solved.
    yea i know that , just asked is there a way to stop and resume ^^ thx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •