Results 1 to 3 of 3

Thread: If X player log in play alarm

  1. #1
    Normal User
    Join Date
    Mar 2014
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    13
    Rep Power
    3

    If X player log in play alarm

    id appreciate if anyone could share it with me and community.
    i did search and found a couple that did not work. i havent tried the notify at login but i dont like it ,rather have an alarm that sets if player is online constantly.
    thanks

  2. #2
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    by Walukasz:
    Lua Code:
    local enemies = {"Name1", "Name2", "Name3", "Name4"}
     
    local function vipsonline(...) 
        local VIPs = {...} 
        local amount = 0 
     
        for _, v in ipairs(VIPs) do 
            if isviponline(v) then 
                amount = amount + 1 
            end 
        end 
     
        return amount 
    end 
     
    if maround(8) == 0 and vipsonline(unpack(enemies)) >= 1 then 
        playsound("alert.wav") 
    end
    Last edited by RafiXWPT; 04-01-2014 at 06:10 AM.

  3. #3
    Normal User
    Join Date
    Mar 2014
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    13
    Rep Power
    3
    Quote Originally Posted by RafiXWPT View Post
    by Walukasz:
    Lua Code:
    local enemies = {"Name1", "Name2", "Name3", "Name4"}
     
    local function vipsonline(...) 
        local VIPs = {...} 
        local amount = 0 
     
        for _, v in ipairs(VIPs) do 
            if isviponline(v) then 
                amount = amount + 1 
            end 
        end 
     
        return amount 
    end 
     
    if maround(8) == 0 and vipsonline(unpack(enemies)) >= 1 then 
        playsound("alert.wav") 
    end


    works perfectly
    thanks

Posting Permissions

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