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

Topic created · 7 Posts · 45 Views
  • 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

  • @alejandrodarz Here ya go. Simple if statement for ya.

    if ( getDvar("mapname") == "mp_hijacked" )
    {
        //put scripts here
    }
    
  • @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

  • @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

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

  • @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

  • @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"]

Log in to reply