Results 1 to 8 of 8

Thread: Target Off/Target ON

  1. #1
    Normal User
    Join Date
    May 2012
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0

    Target Off/Target ON

    Hello.

    I need action:
    If players name: Player1, Player2, ...
    then setsettings TARGETING = NO else setsettings TARGETING = YES

  2. #2
    Normal User
    Join Date
    Jun 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

  3. #3
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    local PLAYERS = {"Player1","Player2"}

    if (
    paround(7falseunpack(PLAYERS)) > 0then
        settargeting
    ("no")
    else
        
    settargeting("yes")
    end 
    Last edited by soder; 12-08-2012 at 06:33 AM.

  4. #4
    Normal User
    Join Date
    May 2012
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    Does not work for 300 players :\

  5. #5
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Try it now, I misspelled targeting.

  6. #6
    Normal User
    Join Date
    May 2012
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    Quote Originally Posted by soder View Post
    Try it now, I misspelled targeting.
    Yes, I fix it but does not work after this. If I put 10 names then all is ok, but when I add one guild with 200+ ppl the this action does not work.

    @Edit

    Maybe better if u change "if any player on screen then set targeting off else on" ?
    Last edited by Xedrox; 12-08-2012 at 07:52 AM.

  7. #7
    Normal User
    Join Date
    May 2012
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    refresh

  8. #8
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    Quote Originally Posted by Xedrox View Post
    Yes, I fix it but does not work after this. If I put 10 names then all is ok, but when I add one guild with 200+ ppl the this action does not work.

    @Edit

    Maybe better if u change "if any player on screen then set targeting off else on" ?
    PHP Code:
    if (paround(7false) >= 1then
           settargeting
    ("no")
    else
           
    settargeting("yes")
    end 

    This will turn off targeting if theres any player on the screen and will turn it on if there are no players. Btw, soder's action is correct and it works properly, you must have set up something wrong.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •