Results 1 to 4 of 4

Thread: Need action if any player with skull on screen then alert !

  1. #1
    iBot User
    Join Date
    Jul 2012
    Posts
    132
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    12 Post(s)
    Reputation
    22
    Rep Power
    5

    Need action if any player with skull on screen then alert !

    Need action if any player with skull on screen then alert !
    Need action if any player with skull on screen then alert !
    Need action if any player with skull on screen then alert !

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    If getcreatures("p").skull > 0 then
    playsound("alert.wav")
    end


    I didnt test it.

  3. #3
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Code:
    if (getcreatures("ps").skull ~= 0) then
    playsound("alert.wav")
    end

  4. #4
    iBot User
    Join Date
    Jul 2012
    Posts
    132
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    12 Post(s)
    Reputation
    22
    Rep Power
    5
    Up , don't work .
    My actions work \/\/\/

    Code:
    local c = getcreatures("ps")
    
    for i = 0, c.count - 1 do
        local k = c[i]
    
        if k.skull > 0 then
          playsound("alert.wav") 
       end
    end

Posting Permissions

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