Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Server Hosting Support
  3. I need help for my script, I need a wait function ie waittil (""); for when a specific map falls, perform the action, something like waittil ("mp_hijacked"); this is an invention that I just wrote but it is so that you have a notion of what I mean

I need help for my script, I need a wait function ie waittil (""); for when a specific map falls, perform the action, something like waittil ("mp_hijacked"); this is an invention that I just wrote but it is so that you have a notion of what I mean

Scheduled Pinned Locked Moved BO2 Server Hosting Support
7 Posts 2 Posters 636 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • alejandrodarzundefined Offline
    alejandrodarzundefined Offline
    alejandrodarz
    wrote on last edited by
    #1

    As I said above:
    I need help for my script, I need a wait function ie waittil (""); for when a specific map falls, perform the action, something like waittil ("mp_hijacked"); this is an invention that I just wrote but it is so that you have a notion of what I mean

    I explain what I am thinking of doing, I would need something like that, for once that map falls in the server rotation, some functions are executed, for example, I would like a specific script to be loaded on that map, it is loaded, it is say I want that when I load the map mp_hijacked it loads an example script the infected script similar to mw3, or when I load another map it loads another script that is the game mode only to sniper. In other words, a switch for when you load a specific map, load the script

    Cahzundefined 1 Reply Last reply
    0
    • alejandrodarzundefined alejandrodarz

      As I said above:
      I need help for my script, I need a wait function ie waittil (""); for when a specific map falls, perform the action, something like waittil ("mp_hijacked"); this is an invention that I just wrote but it is so that you have a notion of what I mean

      I explain what I am thinking of doing, I would need something like that, for once that map falls in the server rotation, some functions are executed, for example, I would like a specific script to be loaded on that map, it is loaded, it is say I want that when I load the map mp_hijacked it loads an example script the infected script similar to mw3, or when I load another map it loads another script that is the game mode only to sniper. In other words, a switch for when you load a specific map, load the script

      Cahzundefined Offline
      Cahzundefined Offline
      Cahz
      VIP
      wrote on last edited by
      #2

      alejandrodarz Here ya go. Simple if statement for ya.

      if ( getDvar("mapname") == "mp_hijacked" )
      {
          //put scripts here
      }
      
      alejandrodarzundefined 5 Replies Last reply
      1
      • Cahzundefined Cahz

        alejandrodarz Here ya go. Simple if statement for ya.

        if ( getDvar("mapname") == "mp_hijacked" )
        {
            //put scripts here
        }
        
        alejandrodarzundefined Offline
        alejandrodarzundefined Offline
        alejandrodarz
        wrote on last edited by
        #3

        Cahz
        Right now I am going to try it, thank you very much, I am a noob in this, if I have spent 7 days learning to make scripts and others

        1 Reply Last reply
        0
        • Cahzundefined Cahz

          alejandrodarz Here ya go. Simple if statement for ya.

          if ( getDvar("mapname") == "mp_hijacked" )
          {
              //put scripts here
          }
          
          alejandrodarzundefined Offline
          alejandrodarzundefined Offline
          alejandrodarz
          wrote on last edited by
          #4

          Cahz
          it worked thank you very much, another question, if you can answer it I will thank you a lot, how can I put what you just told me but instead of the map just add the mode, that is to say so that when you load mp_hijacked in TDM mode

          1 Reply Last reply
          0
          • Cahzundefined Cahz

            alejandrodarz Here ya go. Simple if statement for ya.

            if ( getDvar("mapname") == "mp_hijacked" )
            {
                //put scripts here
            }
            
            alejandrodarzundefined Offline
            alejandrodarzundefined Offline
            alejandrodarz
            wrote on last edited by
            #5

            Cahz
            I already made it, I guided yours and gave me something like this if (getDvar ("g_gametype") == "tdm")

            1 Reply Last reply
            1
            • Cahzundefined Cahz

              alejandrodarz Here ya go. Simple if statement for ya.

              if ( getDvar("mapname") == "mp_hijacked" )
              {
                  //put scripts here
              }
              
              alejandrodarzundefined Offline
              alejandrodarzundefined Offline
              alejandrodarz
              wrote on last edited by
              #6

              Cahz I need another help, I need a script or the code, for once a player has reached 2 kills or more is an example, without dying get a killstreak

              1 Reply Last reply
              0
              • Cahzundefined Cahz

                alejandrodarz Here ya go. Simple if statement for ya.

                if ( getDvar("mapname") == "mp_hijacked" )
                {
                    //put scripts here
                }
                
                alejandrodarzundefined Offline
                alejandrodarzundefined Offline
                alejandrodarz
                wrote on last edited by
                #7

                Cahz I already have the code to give the killstreak to the players and they cannot die, but I have not come across the code as a wait, that is, this is an example self waittill kill = 2 or with if self.kills = 2. Now putting this I remembered a code that I don't know if it works is this if self.pers ["kills"]

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Unread 0
                • Recent
                • Tags
                • Popular
                • Users
                • Groups