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

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. Giveperk me

Giveperk me

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
4 Posts 2 Posters 454 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Black-maksundefined Offline
    Black-maksundefined Offline
    Black-maks
    wrote on last edited by
    #1

    Сan someone tell me if there is a gsc script for issuing perks to oneself?
    I know that you can use this code, but it gives out perks to everyone, and I would like only me to have perks. It would be very convenient to get them in the same way as weapons or killstreaks via !giveperk me as in the gsc script examples.

    OnPlayerSpawned()
    {
    self endon("disconnect");
    for(;;)
    {
    self waittill("changed_kit");
    GivePerks();
    }
    }
    GivePerks()
    {
    self setperk( "specialty_quickdraw", true, false);
    }

    1 Reply Last reply
    0
    • Resxtundefined Offline
      Resxtundefined Offline
      Resxt
      Plutonium Staff
      wrote on last edited by
      #2

      You're pretty vague but I deduce that you're playing with bots and you want perks for yourself only?
      Also I deduce that you're talking about my chat commands? Giving perks could easily be implemented with a bit of coding knowledge or when I take the time to do it.

      Also pasting half of the code instead of linking it is pretty bad, it makes it hard/impossible to help.
      I deduced again that you're talking about my script here
      https://raw.githubusercontent.com/Resxt/Plutonium-IW5-Scripts/main/small_scripts/give_perks_on_spawn.gsc

      Replace the OnPlayerConnect function with this

      OnPlayerConnect()
      {
          for(;;)
          {
              level waittill("connected", player);
      
              if (player.name == "Resxt")
              {
                     player thread OnPlayerSpawned();
              }
          }
      }
      
      1 Reply Last reply
      0
      • Black-maksundefined Offline
        Black-maksundefined Offline
        Black-maks
        wrote on last edited by
        #3

        yes thank you very much it worked. But do you know if it is possible to implement getting a perk through the give command directly in the game?

        Resxtundefined 1 Reply Last reply
        0
        • Black-maksundefined Black-maks

          yes thank you very much it worked. But do you know if it is possible to implement getting a perk through the give command directly in the game?

          Resxtundefined Offline
          Resxtundefined Offline
          Resxt
          Plutonium Staff
          wrote on last edited by
          #4

          Black-maks I answered that

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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