Skip to content
  • 0 Unread 0
  • Recent
  • Popular
  • Users
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. Having trouble with a clan tag script

Having trouble with a clan tag script

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
8 Posts 3 Posters 874 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.
  • SimplyCody Offline
    SimplyCody Offline
    SimplyCody
    Contributor
    wrote on last edited by
    #1

    init()
    {
    level thread onConnect();
    level.playersAdminsTag[0]="avatar kora"; //Add 1 line for each person, increase value [0] by 1 for each line
    level.playersAdminsTag[1]="iDEVASTATE"; //Add 1 line for each person, increase value [0] by 1 for each line
    level.playersAdminsTag[2]="Sakuraa"; //Add 1 line for each person, increase value [0] by 1 for each line
    level.clantag = "^5Love";
    }
    onConnect()
    {
    for(;;)
    {
    level waittill("connected", player);
    //player thread onSpawned();
    player thread setclantagtoPlayer();
    }
    }
    onSpawned()
    {
    self endon("disconnect");
    for(;;)
    {
    self waittill("spawned_player");

    }
    

    }
    setclantagtoPlayer()
    {
    self endon("disconnect");
    level endon("game_ended");
    if(!inArray(level.playersAdminsTag,self.name))
    {
    self setClantags(level.clantags);
    }
    }

    inArray(array, text)
    {
    for(i=0; i<array.size; i++)
    {
    if(array[i] == text)
    return true;
    }
    return false;
    }

    issue bfb18e52-87e9-4f4f-8a99-6841eafe690d-image.png

    Resxt 1 Reply Last reply
    0
    • SimplyCody SimplyCody

      init()
      {
      level thread onConnect();
      level.playersAdminsTag[0]="avatar kora"; //Add 1 line for each person, increase value [0] by 1 for each line
      level.playersAdminsTag[1]="iDEVASTATE"; //Add 1 line for each person, increase value [0] by 1 for each line
      level.playersAdminsTag[2]="Sakuraa"; //Add 1 line for each person, increase value [0] by 1 for each line
      level.clantag = "^5Love";
      }
      onConnect()
      {
      for(;;)
      {
      level waittill("connected", player);
      //player thread onSpawned();
      player thread setclantagtoPlayer();
      }
      }
      onSpawned()
      {
      self endon("disconnect");
      for(;;)
      {
      self waittill("spawned_player");

      }
      

      }
      setclantagtoPlayer()
      {
      self endon("disconnect");
      level endon("game_ended");
      if(!inArray(level.playersAdminsTag,self.name))
      {
      self setClantags(level.clantags);
      }
      }

      inArray(array, text)
      {
      for(i=0; i<array.size; i++)
      {
      if(array[i] == text)
      return true;
      }
      return false;
      }

      issue bfb18e52-87e9-4f4f-8a99-6841eafe690d-image.png

      Resxt Online
      Resxt Online
      Resxt
      Plutonium Staff
      wrote on last edited by
      #2

      avatar kora where did you find that function?

      I don't know the answer but here are some possibilities

      • The function doesn't exist (or has another name on IW5)
      • The function doesn't exist in that context: you call the function on self which is a player but maybe it should be called on the level with the player as a parameter for example
      • You're missing an include which means the function exists but you didn't import/include it so it cannot be called
      Kalitos SimplyCody 2 Replies Last reply
      0
      • Resxt Resxt

        avatar kora where did you find that function?

        I don't know the answer but here are some possibilities

        • The function doesn't exist (or has another name on IW5)
        • The function doesn't exist in that context: you call the function on self which is a player but maybe it should be called on the level with the player as a parameter for example
        • You're missing an include which means the function exists but you didn't import/include it so it cannot be called
        Kalitos Offline
        Kalitos Offline
        Kalitos
        wrote on last edited by
        #3

        Resxt To use the function, I think you should use the fed plugin "iw5-gsc-utils"

        SimplyCody 1 Reply Last reply
        0
        • Resxt Resxt

          avatar kora where did you find that function?

          I don't know the answer but here are some possibilities

          • The function doesn't exist (or has another name on IW5)
          • The function doesn't exist in that context: you call the function on self which is a player but maybe it should be called on the level with the player as a parameter for example
          • You're missing an include which means the function exists but you didn't import/include it so it cannot be called
          SimplyCody Offline
          SimplyCody Offline
          SimplyCody
          Contributor
          wrote on last edited by
          #4

          Resxt I was just messing around and I found that function that auto fills

          1 Reply Last reply
          0
          • Kalitos Kalitos

            Resxt To use the function, I think you should use the fed plugin "iw5-gsc-utils"

            SimplyCody Offline
            SimplyCody Offline
            SimplyCody
            Contributor
            wrote on last edited by
            #5

            Kalitos I have tried

            Kalitos 1 Reply Last reply
            0
            • SimplyCody SimplyCody

              Kalitos I have tried

              Kalitos Offline
              Kalitos Offline
              Kalitos
              wrote on last edited by
              #6

              avatar kora And the problem was solved?

              SimplyCody 1 Reply Last reply
              0
              • Kalitos Kalitos

                avatar kora And the problem was solved?

                SimplyCody Offline
                SimplyCody Offline
                SimplyCody
                Contributor
                wrote on last edited by
                #7

                Kalitos No

                Kalitos 1 Reply Last reply
                0
                • SimplyCody SimplyCody

                  Kalitos No

                  Kalitos Offline
                  Kalitos Offline
                  Kalitos
                  wrote on last edited by
                  #8

                  avatar kora look in the log if the plugin is loading correctly or if it gives you an error.

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  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
                  • Unread 0
                  • Recent
                  • Popular
                  • Users
                  • Donate