Results 1 to 3 of 3

Thread: Alarm - Player with skull

  1. #1
    Normal User
    Join Date
    Aug 2013
    Location
    HouseMafia
    Posts
    10
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4

    Alarm - Player with skull

    Hello need action alarm when some1 with "pz" white skull or red skull help me please

  2. #2
    Normal User Y4rR0's Avatar
    Join Date
    May 2012
    Location
    Warsaw, Poland
    Posts
    596
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    87
    Rep Power
    6
    Should work, alarm if ANY white or red skull on screen
    Lua Code:
    local c = getcreatures("ps")
    for i = 0, c.count-1 do
        if (c[i].skull == 3) or (c[i].skull == 4) then
            playsound("alert.wav")
        end
    end

  3. #3
    Normal User
    Join Date
    Aug 2013
    Location
    HouseMafia
    Posts
    10
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    thx

Posting Permissions

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