Results 1 to 4 of 4

Thread: need help with action...

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    8
    Rep Power
    0

    need help with action...

    hello....


    this should be in config

    hunt east = true/false
    hunt west = true/false
    set alarms = true/false

    and what iam looking for is :

    if hunt east = true then play alarms (player on scrn) but only play alarm if alarms are "true" aswell
    else playsound off...

  2. #2
    Normal User draziw's Avatar
    Join Date
    Jun 2013
    Location
    New Zealand
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    20
    Rep Power
    4
    PHP Code:
    if hunteast == true and alarms == true then
       setsettings
    ("Settings\\Alerts\\Player\\OnScreen\\PlaySound","yes")
    else
       
    setsettings("Settings\\Alerts\\Player\\OnScreen\\PlaySound","no")
    end 
    Last edited by draziw; 11-02-2013 at 09:26 PM.

  3. #3
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    Your config should be 1 word (HuntWest) and not having a space.

    PHP Code:
    if HuntEast and Alarms then
       setsettings
    ("Settings\\Alerts\\Player\\OnScreen\\PlaySound","yes")
    else
       
    setsettings("Settings\\Alerts\\Player\\OnScreen\\PlaySound","no")
    end 

  4. #4
    Normal User
    Join Date
    Jun 2012
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    8
    Rep Power
    0
    Quote Originally Posted by BUgWT View Post
    Your config should be 1 word (HuntWest) and not having a space.

    PHP Code:
    if HuntEast and Alarms then
       setsettings
    ("Settings\\Alerts\\Player\\OnScreen\\PlaySound","yes")
    else
       
    setsettings("Settings\\Alerts\\Player\\OnScreen\\PlaySound","no")
    end 

    ye i know , i was just giving example how it looks like in settings.... thanks for actions

Posting Permissions

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