[TUTORIAL] Timed ScreenShot auto 5 minutes

Results 1 to 13 of 13
  1. #1
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    idea [TUTORIAL] Timed ScreenShot auto 5 minutes

    This code is simple and only detect ScreenShot's by 5 minutes.

    Free for edit!!!

    Go to
    WarZ_Server.sln (Server)

    // Search
    Code:
    void ServerGameLogic::SendWeaponsInfoToPlayer(DWORD peerId)
    // Add below
    Code:
    void ServerGameLogic::TimedScreenshot()
    {
        //This logic was made so that the server can get a screenshot of all the players!
        for(int i=0; i<curPlayers_; ++i)
        {
                    obj_ServerPlayer* pl = plrList_[i];
                    PKT_S2C_CheatWarning_s sn;
                    sn.cheatId = 255;
                    p2pSendToPeer(pl->peerId_, pl, &sn, sizeof(sn),true);
        }
     
    }
    // Search
    Code:
    if(GetAsyncKeyState(VK_F11) & 0x8000)
    // Add below
    Code:
    static float ScreenShotTime = 0;
            if(curTime > ScreenShotTime)
            {
                    //This logic was made so that the server can get a screenshot of all the players!
                    ScreenShotTime = curTime + 300.0f; // 300 = 5 MINUTES / 120 = 2 MINUTES / google.com time x to y
                    TimedScreenshot();
            }
    // Search
    Code:
    void            DoKillPlayer(GameObject* sourceObj, obj_ServerPlayer* targetPlr, STORE_CATEGORIES weaponCat, bool forced_by_server=false, bool fromPlayerInAir = false, bool targetPlayerInAir = false );
    // Add below
    Code:
    void            TimedScreenshot();
    For input report buuton in PlayerList [TAB] is easy.
    but if you don't know to do this, get your help this post.


    Thank you for me =D
    Bye haters ^_^

    - - - Updated - - -

    Tested in Infestation: Reloaded, Doom MMO and CodeXPO!
    Last edited by LukasCCB; 19-09-16 at 02:58 AM.


  2. #2
    Enthusiast THEX3T4R is offline
    MemberRank
    Aug 2015 Join Date
    TurkeyLocation
    43Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    good works ;)

  3. #3
    Enthusiast zetoris is offline
    MemberRank
    Jul 2015 Join Date
    ThailandLocation
    29Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    can edit to take screenshot when player join map? like WarZTH v2

  4. #4
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    Quote Originally Posted by zetoris View Post
    can edit to take screenshot when player join map? like WarZTH v2
    yes =\

  5. #5
    Valued Member erickstyle is offline
    MemberRank
    Sep 2008 Join Date
    Santo André, BLocation
    104Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    how to input report buton in PlayerList [TAB]?

  6. #6
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    @erickstyle

    For add button from PlayerList in TAB.

    Go to WarZ.sln

    Search
    Code:
    if(gUserProfile.ProfileData.isDevAccount & wiUserProfile::DAA_KICK)
                    cntxCmds[curCntxCmd++] = ContextCommand(HUDDisplay_ContextMenu_AdminKickPlayerID, "$HUD_PlayerAction_Kick");
    After
    Code:
    if(isAdmin)
    Add or modify
    Code:
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
            // [LCCB] -  REPORT BUTTON CONTEXT-MENU TAB PLAYERS
            if(!isAdmin)
            {
                if(!selectedSelf)
                    cntxCmds[curCntxCmd++] = ContextCommand(HUDDisplay_ContextMenu_ReportPlayerID, "REPORT ABUSE");
            }
            else {
                if(!selectedSelf)
                    if(gUserProfile.ProfileData.isDevAccount & wiUserProfile::DAA_DEV_ICON && strcmp(plrNamePtr->Gamertag,CGL.localPlayer_->CurLoadout.Gamertag) != 0)
                        cntxCmds[curCntxCmd++] = ContextCommand(HUDDisplay_ContextMenu_AdminSpecialReportPlayerID, "$HUD_PlayerAction_DevReport");
            }
            /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

  7. #7
    Apprentice sonic2121 is offline
    MemberRank
    May 2010 Join Date
    I love polandLocation
    13Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    Away Disconnect from server T_T

  8. #8
    Survivalsunknown owner fpskiller is offline
    MemberRank
    Oct 2013 Join Date
    englandLocation
    416Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    Quote Originally Posted by sonic2121 View Post
    Away Disconnect from server T_T
    post your r3dlog and we can see if we can see why your getting disconnect

  9. #9
    Novice WarZ World is offline
    MemberRank
    Apr 2016 Join Date
    ColoradoLocation
    4Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    how to fix guys? i am using Vusion source

  10. #10
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    @WarZ World check if exist from
    C:\WarZ\server\src\WO_GameServer\Sources\ServerGameLogic.h

    obj_ServerPlayer* plrList_[MAX_NUM_PLAYERS];

  11. #11
    Novice WarZ World is offline
    MemberRank
    Apr 2016 Join Date
    ColoradoLocation
    4Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    @lukasccb
    now I have this error
    (under me)

  12. #12
    Apprentice AcX is offline
    MemberRank
    Nov 2015 Join Date
    24Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    Learn C++, instead beggin for spoon feeding.

  13. #13
    Enthusiast imodzana is offline
    MemberRank
    Jan 2014 Join Date
    47Posts

    Re: [TUTORIAL] Timed ScreenShot auto 5 minutes

    where image file ?
    don't work



Advertisement