Results 1 to 3 of 3

Thread: Alarm if "name" on screen. Help me please

  1. #1
    Normal User dgkdgk's Avatar
    Join Date
    Jun 2012
    Location
    Norway
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5

    Alarm if "name" on screen. Help me please

    so i am trying to get this action working:

    PHP Code:
    if paround(0,true,""Playername") > 0 then
    playsound("
    alert.wav")
    flashclient()
    wait(400,500)
    end 
    but i am getting an error.
    can anyone please help me fix this?

  2. #2
    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
    PHP Code:
    local PLAYERS = {"Player1","player2"}

    if 
    paround(7,true,unpack(PLAYERS)) > 0 then 
        playsound
    ("alert.wav"
        
    flashclient() 
        
    wait(400,500
    end 

  3. #3
    Normal User dgkdgk's Avatar
    Join Date
    Jun 2012
    Location
    Norway
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    Perfect

    Thanks alot Soder

Posting Permissions

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