Results 1 to 7 of 7

Thread: Screenshot if ANY player on screen

  1. #1

    Join Date
    Aug 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Screenshot if ANY player on screen

    Well, I need an action to screenshot if any player on screen and not a specific one as I've already found in many posts. Thanks.

  2. #2
    Normal User salomao0104's Avatar
    Join Date
    Jan 2013
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    PedroIvoSantos, here is a script that searches for players on screen and, if there is any, takes an screenshot.
    This is not very recomended because this screenshot will be stored in your HD and if there is a player following you, there will be screenshots of all searches.

    PHP Code:
    if (paround(7) > 0then
        screenshot
    ()
        
    wait(2000,2500)
    end 
    If I helped you, please rep+

  3. #3

    Join Date
    Aug 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    and take infinity screenshots?

  4. #4
    Normal User Y4rR0's Avatar
    Join Date
    May 2012
    Location
    Warsaw, Poland
    Posts
    596
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    87
    Rep Power
    6
    PHP Code:
    local blabla true
    while (paround() > 0) do
        if (
    blablathen
            screenshot
    ()
            
    blabla false
        end
    end 

    edit. sorry lol was testing with print and forgot to change for screenshot(), changed
    Last edited by Y4rR0; 04-17-2013 at 11:34 AM.

  5. #5
    Normal User salomao0104's Avatar
    Join Date
    Jan 2013
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    the idea of Y4rR0 works, but use some delay inside the while to not overload, like:

    PHP Code:
    local playercheck true
    while (paround() > 0) do
        if (
    playercheckthen
            screenshot
    ()
            
    playercheckfalse
        end
        wait
    (1000,1300)
    end 
    This will prevent you of taking more than one SS by appearance but it WILL take 2 screenshoots of the same player if he leaves the screen and comes back.

  6. #6
    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
    Quote Originally Posted by salomao0104 View Post
    the idea of Y4rR0 works, but use some delay inside the while to not overload, like:

    PHP Code:
    local playercheck true
    while (paround() > 0) do
        if (
    playercheckthen
            screenshot
    ()
            
    playercheckfalse
        end
        wait
    (1000,1300)
    end 
    This will prevent you of taking more than one SS by appearance but it WILL take 2 screenshoots of the same player if he leaves the screen and comes back.
    playercheck = playercheck or true
    while (paround() > 0) do
    if (playercheck) then
    screenshot()
    playercheck = false
    end
    wait(1000,1300)
    end

  7. #7
    Normal User salomao0104's Avatar
    Join Date
    Jan 2013
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    I don't know the intentions of the resquest, so I just gave my heads up about the double screenshot.

    If he doesn't want double print, i'd use a text file to register the players.
    IF I HELPED YOU,

    PHP Code:
    REPME 

Posting Permissions

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