Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

KXYZ3646undefined

KXYZ3646

@KXYZ3646
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
1
Following
1

Posts

Recent Best Controversial

  • How to set the score in bo2 zombies?
    KXYZ3646undefined KXYZ3646

    It is a mod for a solo game

    BO2 Modding Support & Discussion

  • How to set the score in bo2 zombies?
    KXYZ3646undefined KXYZ3646

    Hello, I have been working on a mod which sets the round and score. Round works but I am having problems with the score. Can someone please provide me support with this?

    (Placed in scripts -> zm)

    main()
    {
        if (isDefined(level.onPlayerConnect))
        {
            level.onPlayerConnect = ::onPlayerConnect;
        }
        else
        {
            onPlayerConnect();
        }
    }
    
    onPlayerConnect()
    {
        self endon("disconnect");
        self thread setRound(25); // Set the desired round here (e.g., round 10)
        self thread setMoney(5000); // Set the desired money here (e.g., 5000 points)
    }
    
    setRound(round)
    {
    
        while(level.round_number < round)
        {
            level.round_number = level.round_number + 1;
            wait 0.05; // Small delay to prevent crashing
        }
        level notify("round_set");
    }
    
    setMoney(amount)
    {
      self.score = 1000; //DOESNT WORK
      //HELP
    }
    
    
    
    BO2 Modding Support & Discussion
  • 1 / 1
  • Login

  • Don't have an account? Register

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