Results 1 to 3 of 3

Thread: Alarm when player ....

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

    Alarm when player ....

    i need alarm + flash client ... when player " xxx " in VIP are online... its possible ?

  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
    It's not possible but you can use this:
    This will alert when a player LOGIN. (You need to set "Notify at Login" in on the players in VIP)
    PHP Code:
    -- Created by sirmate
    local PLAYER_NAMES 
    = {"PLAYER1""PLAYER NAME"}

    local CHANNEL_MESSAGES getnewmessages("Server Log")
    local CHANNEL_MESSAGES_COUNT CHANNEL_MESSAGES.count 1

    for INDEX 0CHANNEL_MESSAGES_COUNT do
        if (
    CHANNEL_MESSAGES[CHANNEL_MESSAGES_COUNT INDEX].type == 18then
            
    if (table.find(PLAYER_NAMESstring.match(string.sub(CHANNEL_MESSAGES[CHANNEL_MESSAGES_COUNT INDEX].text7), "(.+) has logged in."))) then
                
    for 1do
                    
    playsound("alert.wav"wait(10001500)
                
    end
            end
        end 
    end 

  3. #3
    Normal User Tswift's Avatar
    Join Date
    Aug 2012
    Location
    USA
    Posts
    114
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    ^ wizard

    It's not possible for it to monitor your VIP.

    But you can edit the character in your VIP so it's set to "Notify at Login". Then this will work when you change Player to the player's name.

    Code:
    local serverlog_lines = getnewmessages("Server Log") 
    local serverlog_q = serverlog_lines.count - 1 
    
    for i = 0, serverlog_q do 
        if (serverlog_lines[serverlog_q - i].text:find("Player has logged in.")) then 
            playsound("alert.wav")
            wait(800)
            flashclient()
            wait(800)
            playsound("alert.wav")
            wait(800)
            flashclient()
            wait(800)
            playsound("alert.wav")
            wait(800)
        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
  •