Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
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 157 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
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
    • Cahzundefined Offline
      Cahzundefined Offline
      Cahz VIP
      replied to alejandrodarz 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
      • alejandrodarzundefined Offline
        alejandrodarzundefined Offline
        alejandrodarz
        replied to Cahz 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
        • alejandrodarzundefined Offline
          alejandrodarzundefined Offline
          alejandrodarz
          replied to Cahz 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
          • alejandrodarzundefined Offline
            alejandrodarzundefined Offline
            alejandrodarz
            replied to Cahz 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
            • alejandrodarzundefined Offline
              alejandrodarzundefined Offline
              alejandrodarz
              replied to Cahz 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
              • alejandrodarzundefined Offline
                alejandrodarzundefined Offline
                alejandrodarz
                replied to Cahz 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

                • Login

                • Don't have an account? Register

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