Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • 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 196 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.
  • SimplyCodyundefined Offline
    SimplyCodyundefined 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

    Resxtundefined 1 Reply Last reply
    0
    • Resxtundefined Offline
      Resxtundefined Offline
      Resxt Plutonium Staff
      replied to SimplyCody 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
      Kalitosundefined SimplyCodyundefined 2 Replies Last reply
      0
      • Kalitosundefined Offline
        Kalitosundefined Offline
        Kalitos
        replied to Resxt on last edited by
        #3

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

        SimplyCodyundefined 1 Reply Last reply
        0
        • SimplyCodyundefined Offline
          SimplyCodyundefined Offline
          SimplyCody Contributor
          replied to Resxt on last edited by
          #4

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

          1 Reply Last reply
          0
          • SimplyCodyundefined Offline
            SimplyCodyundefined Offline
            SimplyCody Contributor
            replied to Kalitos on last edited by
            #5

            Kalitos I have tried

            Kalitosundefined 1 Reply Last reply
            0
            • Kalitosundefined Offline
              Kalitosundefined Offline
              Kalitos
              replied to SimplyCody on last edited by
              #6

              avatar kora And the problem was solved?

              SimplyCodyundefined 1 Reply Last reply
              0
              • SimplyCodyundefined Offline
                SimplyCodyundefined Offline
                SimplyCody Contributor
                replied to Kalitos on last edited by
                #7

                Kalitos No

                Kalitosundefined 1 Reply Last reply
                0
                • Kalitosundefined Offline
                  Kalitosundefined Offline
                  Kalitos
                  replied to SimplyCody 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

                  • Login

                  • Don't have an account? Register

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