Signup Now
Results 1 to 3 of 3
  1. #1
    Free User chytrusek's Avatar
    Join Date
    Jan 2014
    Posts
    65
    Reputation
    12
    Rep Power
    21

    Player on screen alarm + safe list

    Hello,
    I have script for player on screen alarm:
    auto(100)
    if getuseroption("PlayerOnAlarm") and $wptsection == "West" and paround(10) >= 1 then
    playsound('playeronscreen.wav')
    flashclient()
    wait(1000,2000)
    end
    I want add here safelist, how do it?

  2. #2
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    Try this
    -- config
    init start
    local SAFELIST = {"Imba"}
    init end

    -- code
    table.lower(SAFELIST)
    local count = 0

    auto(100)
    if getuseroption("PlayerOnAlarm") and ($wptsection == "West") then
    foreach creature p 'psx' do
    if (not table.find(SAFELIST, p.name:lower())) then
    count = count + 1
    end
    end
    if count > 0 then
    playsound('playeronscreen.wav')
    flashclient()
    wait(1000,2000)
    end
    end

  3. #3
    Free User chytrusek's Avatar
    Join Date
    Jan 2014
    Posts
    65
    Reputation
    12
    Rep Power
    21
    Thanks you!

 

 

Posting Permissions

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