User Tag List

Results 1 to 3 of 3

Thread: Pylacewing - Check for existing client

  1. #1
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Posts
    402
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Pylacewing - Check for existing client

    Hi,

    I'm having a bit of trouble on a server I'm working on; I want to check whether a particular client exists on the server, given a name. So, for example, there is a user on the server with the name "dave", how can I check whether he exists or not?

    Also, once I've found whether he exists, how do I pick that client out by his name, and use 'connection.sendMessage()' to send the client a message?

    Thanks guys,

    Any help much appreciated.

    x

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module
    Fusion 2.5 (Steam)
    Mathias's Avatar
    Join Date
    Jun 2006
    Location
    Copenhagen, Denmark
    Posts
    1,083
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Pylacewing - Check for existing client

    You can do
    Code:
    if 'dave' in factory.connections:
        factory.connections['dave'][0].sendMessage('Hey!', 0)
    If I recall correctly

  3. #3
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Posts
    402
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Pylacewing - Check for existing client

    Quote Originally Posted by Mathias
    You can do
    Code:
    if 'dave' in factory.connections:
        factory.connections['dave'][0].sendMessage('Hey!', 0)
    If I recall correctly


    Thank you Mathias!

Similar Threads

  1. pylacewing and encryption
    By Gryphon in forum Lacewing
    Replies: 2
    Last Post: 17th December 2013, 01:40 AM
  2. Pylacewing Error
    By izac in forum Lacewing
    Replies: 6
    Last Post: 28th April 2011, 03:46 PM
  3. Three Questions about Pylacewing
    By izac in forum Lacewing
    Replies: 3
    Last Post: 10th December 2009, 04:07 PM
  4. Pylacewing error
    By izac in forum Lacewing
    Replies: 6
    Last Post: 23rd November 2009, 01:00 PM
  5. Pylacewing
    By izac in forum Lacewing
    Replies: 2
    Last Post: 19th November 2009, 04:21 PM

Posting Permissions

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