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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. GSC Scripts

GSC Scripts

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
7 Posts 5 Posters 1.4k 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.
  • itsMoonyundefined Offline
    itsMoonyundefined Offline
    itsMoony
    wrote on last edited by
    #1

    I have a couple different scripts written out from post found here and the discord. I've looked through the forums of loading custom gsc scripts and asked but nothing has helped. I want to add these different scripts to my server but they dont work through _clientids.gsc. So I'm confused from here where to put these scripts and where to find where to put them. Thanks for the help.

    1 Reply Last reply
    0
    • Ayresiaundefined Offline
      Ayresiaundefined Offline
      Ayresia
      wrote on last edited by
      #2

      What kind of scripts? You have methods, and you gotta call them simple!

      itsMoonyundefined 1 Reply Last reply
      0
      • itsMoonyundefined Offline
        itsMoonyundefined Offline
        itsMoony
        replied to Ayresia on last edited by
        #3

        Ayresia https://forum.plutonium.pw/topic/23/trickshot-server-gsc-scripts/2

        All the scripts that I have were found here. I'm not a big coding person but I wanna be able to set up my server with scripts like these.

        Ayresiaundefined frostyundefined Jimoundefined 3 Replies Last reply
        0
        • Ayresiaundefined Offline
          Ayresiaundefined Offline
          Ayresia
          replied to itsMoony on last edited by
          #4

          itsMoony Those are call methods, so pretty much all you have to do is call them thru onPlayerSpawned or onPlayerConnect etc.

          There is different ways to call the methods:

          player thread Method();
          self thread Method();
          Method()
          thread Method();
          

          I suggest you to look at some GSC tutorials.

          1 Reply Last reply
          0
          • frostyundefined Offline
            frostyundefined Offline
            frosty
            replied to itsMoony on last edited by
            #5

            itsMoony I made that post, and exactly like Aryesia said. For example, if you were trying to get the "save and load" script to work, these would be the steps

            1. place this in your "onplayerspawned()"

            	self thread saveandload();
            

            2. place this anywhere in your document

            saveandload()
            
            {
            
                if (self.snl == 0)
            
                {
            
                    self iprintln("^5Save and Load Enabled");
            
                    self iprintln("Crouch and Press [{+actionslot 2}] To Save");
            
                    self iprintln("Crouch and Press [{+actionslot 1}] To Load");
            
                    self thread dosaveandload();
            
                    self.snl = 1;
            
                }
            
                else
            
                {
            
                    self iprintln("^1Save and Load Disabled");
            
                    self.snl = 0;
            
                    self notify("SaveandLoad");
            
                }
            
            }
            
            dosaveandload()
            
            {
            
                self endon("disconnect");
            
                self endon("SaveandLoad");
            
                load = 0;
            
                for(;;)
            
                {
            
                if (self actionslottwobuttonpressed() && self GetStance() == "crouch" && self.snl == 1)
            
                {
            
                    self.o = self.origin;
            
                    self.a = self.angles;
            
                    load = 1;
            
                    self iprintln("^5Position Saved");
            
                    wait 2;
            
                }
            
                if (self actionslotonebuttonpressed() && self GetStance() == "crouch" && load == 1 && self.snl == 1)
            
                {
            
                    self setplayerangles(self.a);
            
                    self setorigin(self.o);
            
                }
            
                wait 0.05;
            
            }
            
            }
            

            and then compile it, start your server, and the save and load feature will now work.

            1 Reply Last reply
            0
            • Jimoundefined Offline
              Jimoundefined Offline
              Jimo
              replied to itsMoony on last edited by
              #6

              itsMoony when i click that it shows this fa0b9e61-5f97-444d-9a1d-14d663630ee3-image.png

              luigistyleundefined 1 Reply Last reply
              0
              • luigistyleundefined Offline
                luigistyleundefined Offline
                luigistyle Plutonium Staff
                replied to Jimo on last edited by
                #7

                Jimo said in GSC Scripts:

                itsMoony when i click that it shows this fa0b9e61-5f97-444d-9a1d-14d663630ee3-image.png

                Same, looks like the page was deleted or something

                1 Reply Last reply
                1

                • Login

                • Don't have an account? Register

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