[Tutorial] System Screen report for src V2

Results 1 to 12 of 12
  1. #1
    Valued Member obamabf2 is offline
    MemberRank
    Jan 2014 Join Date
    Parnamirim (RioLocation
    123Posts

    [Tutorial] System Screen report for src V2

    Take a picture of the reported player screen.
    Does not work in SRCs V1 and TH.


    In warz_server.sln
    Search For:
    Code:
    int          Cmd_GiveItem(obj_ServerPlayer* plr, const char* cmd);
    Add Below:
    Code:
    int       Cmd_Report(obj_ServerPlayer* plr, const char* cmd); // System send ScreenShot By Jailson Mendes
    Search for:
    Code:
    int ServerGameLogic::Cmd_GiveItem(obj_ServerPlayer* plr, const char* cmd)
    Add above:
    Code:
    int ServerGameLogic::Cmd_Report(obj_ServerPlayer *plr, const char *cmd) // System send ScreenShot By Jailson Mendes
    {
       
        for(int i=0; i<curPlayers_; ++i)
            {
            obj_ServerPlayer* pl = plrList_[i];
            plr->security_screenshotRequestSentAt = r3dGetTime();
    
    
            PKT_S2C_CheatWarning_s sn;
            sn.cheatId = 255;
            p2pSendToPeer(pl->peerId_, pl, &sn, sizeof(sn),true);
                break;
            }
         //r3dAddReport("%s: %s \n", plr->userName, cmd);
        return 0;
    }
    Search for:
    Code:
    int ServerGameLogic::ProcessChatCommand(obj_ServerPlayer* plr, const char* cmd)
    Add Below:
    Code:
    if(strncmp(cmd, "/report", 7) == 0) // System send ScreenShot By Jailson Mendes
            return Cmd_Report(plr, cmd);

    HardcorePVP JAILSON MENDES


  2. #2
    Account Upgraded | Title Enabled! Adnan DatLife is offline
    MemberRank
    Aug 2015 Join Date
    main.cppLocation
    207Posts

    Re: [Tutorial] System Screen report for src V2

    Good Work Jailson!:)

  3. #3
    Harro Syxn is offline
    MemberRank
    Mar 2013 Join Date
    767Posts

    Re: [Tutorial] System Screen report for src V2

    I didn't look but isn't this just codex's version?

  4. #4
    Apprentice takaida is offline
    MemberRank
    Jun 2006 Join Date
    17Posts

    Re: [Tutorial] System Screen report for src V2

    Auto Take a picture Player in game ?

  5. #5
    Member arnoza085 is offline
    MemberRank
    Dec 2014 Join Date
    Thailand <3Location
    57Posts

    Re: [Tutorial] System Screen report for src V2

    Quote Originally Posted by takaida View Post
    Auto Take a picture Player in game ?
    nope, it screenshot when other player report him.

  6. #6
    Apprentice mrlonely095 is offline
    MemberRank
    May 2015 Join Date
    20Posts

    Re: [Tutorial] System Screen report for src V2

    i'm build and got this error . how to fix it . thanks ! i used iss clear scoure
    Attached Thumbnails Attached Thumbnails untitl3232ed.png  

  7. #7
    Enthusiast Unrealgaming is offline
    MemberRank
    Sep 2014 Join Date
    35Posts

    Re: [Tutorial] System Screen report for src V2

    screenshot save to folder ?

  8. #8
    Member arnoza085 is offline
    MemberRank
    Dec 2014 Join Date
    Thailand <3Location
    57Posts

    Re: [Tutorial] System Screen report for src V2

    Quote Originally Posted by mrlonely095 View Post
    i'm build and got this error . how to fix it . thanks ! i used iss clear scoure
    It not complete yet.

  9. #9
    Enthusiast Unrealgaming is offline
    MemberRank
    Sep 2014 Join Date
    35Posts

    Re: [Tutorial] System Screen report for src V2

    Quote Originally Posted by mrlonely095 View Post
    i'm build and got this error . how to fix it . thanks ! i used iss clear scoure
    you add code offense.

    code "int ServerGameLogic::Cmd_GiveItem(obj_ServerPlayer* plr, const char* cmd)"

    is not end you see line

    return 1;
    }

    and re add "nt ServerGameLogic::Cmd_Report(obj_ServerPlayer *plr, const char *cmd)"

    - - - Updated - - -

    or you find
    Code:
    int ServerGameLogic::Cmd_SetVitals(obj_ServerPlayer* plr, const char* cmd)
    and add code upper this
    Code:
    int ServerGameLogic::Cmd_Report(obj_ServerPlayer *plr, const char *cmd) // System send ScreenShot By Jailson Mendes
    {
       
        for(int i=0; i<curPlayers_; ++i)
            {
            obj_ServerPlayer* pl = plrList_[i];
            plr->security_screenshotRequestSentAt = r3dGetTime();
    
    
            PKT_S2C_CheatWarning_s sn;
            sn.cheatId = 255;
            p2pSendToPeer(pl->peerId_, pl, &sn, sizeof(sn),true);
                break;
            }
         //r3dAddReport("%s: %s \n", plr->userName, cmd);
        return 0;
    }

  10. #10
    Harro Syxn is offline
    MemberRank
    Mar 2013 Join Date
    767Posts

    Re: [Tutorial] System Screen report for src V2

    Does take picture no?

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

    Re: [Tutorial] System Screen report for src V2

    In
    Code:
    int ServerGameLogic::Cmd_Report(obj_ServerPlayer *plr, const char *cmd)
    
    show for all you made a screenshot.
    add RED lines

    Code:
        char plrName[64]={0};
    
    
        for(int i=0; i<curPlayers_; ++i)
        {
            char message[64] = {0};
            sprintf(message, "%s made a ScreenShot", plr->userName);
            PKT_C2C_ChatMessage_s n2;
            n2.userFlag = 1;
            n2.msgChannel = 1;
            r3dscpy(n2.msg, message);
            r3dscpy(n2.gamertag, "<REPORTED>");
            gServerLogic.p2pBroadcastToAll(&n2, sizeof(n2), true); // show all server
    
    
            obj_ServerPlayer* pl = plrList_[i];
            plr->security_screenshotRequestSentAt = r3dGetTime();
    
    
            PKT_S2C_CheatWarning_s sn;
            sn.cheatId = 255;
            p2pSendToPeer(pl->peerId_, pl, &sn, sizeof(sn),true);
                break;
        }

  12. #12
    Novice Japza2009 is offline
    MemberRank
    Oct 2015 Join Date
    2Posts

    Re: [Tutorial] System Screen report for src V2

    Screen save the folder?



Advertisement