Results 1 to 2 of 2

Thread: alarm if online x player is onl.

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

    alarm if online x player is onl.

    anyone can help me with this action?

  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
    Not possible but:

    Code:
    local PLAYER_NAMES = {"PLAYER_NAME1", "PLAYER NAME2"}
    
    local CHANNEL_MESSAGES = getnewmessages("Server Log")
    local CHANNEL_MESSAGES_COUNT = CHANNEL_MESSAGES.count - 1
    
    for INDEX = 0, CHANNEL_MESSAGES_COUNT do
        if (CHANNEL_MESSAGES[CHANNEL_MESSAGES_COUNT - INDEX].type == 18) then
            if (table.find(PLAYER_NAMES, string.match(string.sub(CHANNEL_MESSAGES[CHANNEL_MESSAGES_COUNT - INDEX].text, 7), "(.+) has logged in."))) then
                for _ = 1, 4 do
                    playsound("alert.wav") wait(1000, 1500)
                end
            end
        end 
    end
    This will alert when a player on your vip login (you must set "Notify at login" on the player)

    Credits to Sirmate.

Posting Permissions

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