Results 1 to 4 of 4

Thread: Alert if Player on screen for more than 10 seconds??

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

    Alert if Player on screen for more than 10 seconds??

    i need an action that Alert if Player on screen for more than 10 seconds??

  2. #2
    iBot User
    Join Date
    Jun 2012
    Posts
    517
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    132
    Rep Power
    7
    Evry 10 seconds play 4 bips, try this.
    PHP Code:
    local waittime 10000


    if paround(10true) >=1 then
    wait 
    (waittime)
            if 
    paround(10true) >=1 then
                  
    for i=0,do
                     
    playsound('alert.wav')
                     
    wait (700900)
                  
    end 
             end
    end 

  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
    Test this
    PHP Code:
    SECONDS SECONDS or 0

    if (paround(7,false) > 0then
        wait
    (1000)
        
    SECONDS SECONDS 1
        
    if (SECONDS >= 10then
            playsound
    ("alert.wav"wait(500)
        
    end
    elseif (paround(7,false) == 0then
        SECONDS 
    0
    end 

  4. #4
    iBot User
    Join Date
    Jun 2012
    Posts
    517
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    132
    Rep Power
    7
    Never mind .

Tags for this Thread

Posting Permissions

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