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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] Sniper Only and VIP/Privileged users

[Support] Sniper Only and VIP/Privileged users

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
20 Posts 9 Posters 901 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.
  • Niferundefined Offline
    Niferundefined Offline
    Nifer
    wrote on last edited by Mr. Android
    #1

    Hello, I've been working on a trickshot server for my friends and I.
    So far I have everything I need except for sniper only damage, and VIP users.
    I saw on the forums that Enki posted snipers only but everytime I load it into my server, I become immune to death barriers.
    I can't seem to figure it out.

    Also for VIP users, I have a save/load position function that I only want VIP users to be able to use.

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

      Nifer Find a menu base that allows names in the gsc. a simple google search will probably find you this. You put your friends name, they get the menu, and then you edit the menu to your liking with the features.

      Niferundefined 1 Reply Last reply
      0
      • Niferundefined Offline
        Niferundefined Offline
        Nifer
        replied to frosty on last edited by
        #3

        frosty Wait but then couldn't anyone change their name to my friend's name and also get VIP?

        Radonundefined 1 Reply Last reply
        0
        • Radonundefined Offline
          Radonundefined Offline
          Radon
          replied to Nifer on last edited by
          #4

          Nifer Yes, use XUID instead of name

          Niferundefined 2 Replies Last reply
          0
          • Niferundefined Offline
            Niferundefined Offline
            Nifer
            replied to Radon on last edited by
            #5

            Radon I get a syntax error. Idk what I'm doing wrong

            1 Reply Last reply
            0
            • Niferundefined Offline
              Niferundefined Offline
              Nifer
              replied to Radon on last edited by
              #6

              Radon
              isVip ()
              {
              myXuid = self getXuid()

              switch ( myXuid )
              {
              	case "hghgh322": //vip player 1
              	case "qqq223qq": //vip player 2
              	case "jjsdk2k3jk": //vip player 3
              	case "sdkk23jk2": //vip player 4
              		return true;
              	default : 
              		return false;
              }
              

              }

              I'm using this and calling the function elsewhere in the script. I found this in the forums somewhere

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

                Nifer Also pretty soon they are going to be using forum names for in game names like Rekt does im pretty sure, so in that case you can just put their name in assuming they cant change it

                Mr. Androidundefined 1 Reply Last reply
                0
                • Mr. Androidundefined Offline
                  Mr. Androidundefined Offline
                  Mr. Android Plutonium Admin
                  replied to frosty on last edited by
                  #8

                  frosty Still best to use xuid, more reliable i believe.

                  frostyundefined 1 Reply Last reply
                  0
                  • frostyundefined Offline
                    frostyundefined Offline
                    frosty
                    replied to Mr. Android on last edited by
                    #9

                    Mr. Android Any estimate on the release of that update btw?

                    H3X1Cundefined 1 Reply Last reply
                    0
                    • Niferundefined Offline
                      Niferundefined Offline
                      Nifer
                      wrote on last edited by
                      #10

                      I figured out snipers only damage.

                      However, I'm still stuck on this ;(
                      Its a simple syntax error and i can't figure it out
                      Screenshot_6.png

                      Jaxundefined 1 Reply Last reply
                      0
                      • Jaxundefined Offline
                        Jaxundefined Offline
                        Jax Contributor
                        replied to Nifer on last edited by
                        #11

                        Nifer said in Sniper Only and VIP/Privileged users:

                        I figured out snipers only damage.

                        However, I'm still stuck on this ;(
                        Its a simple syntax error and i can't figure it out
                        Screenshot_6.png

                        add a semicolon after getXuid() e.g: myXuid = self getXuid();

                        Niferundefined 1 Reply Last reply
                        0
                        • Niferundefined Offline
                          Niferundefined Offline
                          Nifer
                          replied to Jax on last edited by
                          #12

                          Jax Thank you, however I've added the semicolon and I still have the syntax error

                          1 Reply Last reply
                          0
                          • Jaxundefined Offline
                            Jaxundefined Offline
                            Jax Contributor
                            wrote on last edited by Emosewaj
                            #13
                            isVip()
                            {
                            
                                myXuid = self getXuid();
                            
                                switch(myxuid)
                                {
                                    case "12345678": //vip player 1
                                    case "12345678": //vip player 2
                                    case "12345678": //vip player 3
                                    case "12345678": //vip player 4
                                        return true;
                                    default:
                                        return false;
                                }
                            }
                            

                            Note: make sure the XUIDs your are inputting are 8 characters long

                            1 Reply Last reply
                            0
                            • grixundefined Offline
                              grixundefined Offline
                              grix
                              wrote on last edited by
                              #14

                              How do i add/make this work for my menu? do i put it in the menu folder in gametypes or?

                              kuxqiundefined 1 Reply Last reply
                              0
                              • kuxqiundefined Offline
                                kuxqiundefined Offline
                                kuxqi
                                replied to grix on last edited by
                                #15

                                grix are you able to help make me a menu

                                Radonundefined 1 Reply Last reply
                                0
                                • Radonundefined Offline
                                  Radonundefined Offline
                                  Radon
                                  replied to kuxqi on last edited by
                                  #16

                                  kuxqi Add me on discord Radon#7616

                                  1 Reply Last reply
                                  0
                                  • kuxqiundefined Offline
                                    kuxqiundefined Offline
                                    kuxqi
                                    wrote on last edited by
                                    #17

                                    Radon ae ya ????C?dffggdfg

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

                                      kuxqi said in Sniper Only and VIP/Privileged users:

                                      Radon ae ya ????C?dffggdfg

                                      nice english

                                      1 Reply Last reply
                                      0
                                      • kuxqiundefined Offline
                                        kuxqiundefined Offline
                                        kuxqi
                                        wrote on last edited by
                                        #19

                                        luigistyle its because 25 letter thing

                                        1 Reply Last reply
                                        0
                                        • H3X1Cundefined Offline
                                          H3X1Cundefined Offline
                                          H3X1C Plutonium Staff
                                          replied to frosty on last edited by
                                          #20

                                          frosty said in Sniper Only and VIP/Privileged users:

                                          Mr. Android Any estimate on the release of that update btw?

                                          Soon TM. You should know we don't give out dates. Software development even in a controlled business environment only provide rough estimates, so a project the Devs do in their spare time makes it near impossible to put a date range on.

                                          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