[Request] Kill/Death System Code

Results 1 to 13 of 13
  1. #1
    Enthusiast 3v0luti0n is offline
    MemberRank
    Oct 2013 Join Date
    38Posts

    [Request] Kill/Death System Code

    i want kill/death system code to hud.
    dude thx.


  2. #2
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: [Request] Kill/Death System Code

    you just need to uncomment this line and modify your flash

    Code:
    /*char kdrS[32];
    sprintf(kdrS, "%.2f", getRatio(float(slot.Stats.KilledSurvivors + slot.Stats.KilledBandits), float(slot.Stats.Deaths)));
    var[23].SetString(kdrS); // kdr
    char hsrS[32];
    sprintf(hsrS, "%.2f", getRatio(float(slot.Stats.ShotsHeadshots), float(slot.Stats.ShotsFired)));
    var[24].SetString(hsrS); // hsr
    var[25].SetInt(int(getRatio((float)slot.Stats.ShotsHits, (float)slot.Stats.ShotsFired)*100.0f)); // accuracy
    var[26].SetInt(slot.Stats.Deaths); // died*/

  3. #3
    Enthusiast 3v0luti0n is offline
    MemberRank
    Oct 2013 Join Date
    38Posts

    Re: [Request] Kill/Death System Code

    Yuri-BR Thx

  4. #4
    Proficient Member Gabirieu is offline
    MemberRank
    Oct 2013 Join Date
    .localhost/hue/Location
    155Posts

    Re: [Request] Kill/Death System Code

    and skin system in market?? at tab8, you have any idea how to do this?

  5. #5
    Account Upgraded | Title Enabled! AlexRedd is offline
    MemberRank
    Jan 2014 Join Date
    310Posts

    Re: [Request] Kill/Death System Code

    Quote Originally Posted by Yuri-BR View Post
    you just need to uncomment this line and modify your flash

    Code:
    /*char kdrS[32];
    sprintf(kdrS, "%.2f", getRatio(float(slot.Stats.KilledSurvivors + slot.Stats.KilledBandits), float(slot.Stats.Deaths)));
    var[23].SetString(kdrS); // kdr
    char hsrS[32];
    sprintf(hsrS, "%.2f", getRatio(float(slot.Stats.ShotsHeadshots), float(slot.Stats.ShotsFired)));
    var[24].SetString(hsrS); // hsr
    var[25].SetInt(int(getRatio((float)slot.Stats.ShotsHits, (float)slot.Stats.ShotsFired)*100.0f)); // accuracy
    var[26].SetInt(slot.Stats.Deaths); // died*/
    Thanks Yuri! Works perfect!


  6. #6
    Valued Member erickstyle is online now
    MemberRank
    Sep 2008 Join Date
    Santo André, BLocation
    104Posts

    Re: [Request] Kill/Death System Code

    Quote Originally Posted by Gabirieu View Post
    and skin system in market?? at tab8, you have any idea how to do this?
    tab8
    gfxMovie.SetVariable("_root.api.Main.Marketplace.Marketplace.Tab8.visible", true);

  7. #7
    Valued Member Doky is offline
    MemberRank
    Oct 2014 Join Date
    BrazilLocation
    127Posts

    Re: [Request] Kill/Death System Code

    Quote Originally Posted by AlexRedd View Post
    Thanks Yuri! Works perfect!

    where paste this?
    SurvivorsScreen.as

    where?
    why /* */ tags?

  8. #8
    Account Upgraded | Title Enabled! GetRektBambi is offline
    MemberRank
    Oct 2015 Join Date
    268Posts

    Re: [Request] Kill/Death System Code

    Quote Originally Posted by Doky View Post
    where paste this?
    SurvivorsScreen.as

    where?
    why /* */ tags?
    The code you are refering to is in the client source. You will need to modify your flash to accommodate the text to appear in the stats section.

  9. #9
    Valued Member AimZMMo is offline
    MemberRank
    Feb 2016 Join Date
    FranceLocation
    102Posts

    Re: [Request] Kill/Death System Code

    This is pretty cool but I dont really learn how use Flash pro cc. What I have to write on the properties to join source and swf.
    Cause I tryed ShotsHitsTiitle for the accuracy text and ShotsHits for the number. And it is wrong :D

  10. #10
    Valued Member Doky is offline
    MemberRank
    Oct 2014 Join Date
    BrazilLocation
    127Posts

    Re: [Request] Kill/Death System Code

    Quote Originally Posted by GetRektBambi View Post
    The code you are refering to is in the client source. You will need to modify your flash to accommodate the text to appear in the stats section.
    Oh, Thank you.
    you know the names I need give from flash?

  11. #11
    Account Upgraded | Title Enabled! GetRektBambi is offline
    MemberRank
    Oct 2015 Join Date
    268Posts

    Re: [Request] Kill/Death System Code

    That's completely up to you. If you understand that code Yuri posted all you need to do is un comment, and go to flash amend the function which is being called to take the values and then you put them in a text box you provide the name for.

    I don't understand myself why people on this forum are so idiotic. Its common sense and if you don't have any you shouldn't even be touching the source. You know every problem I face I find out the answer myself, I rarely would even consider posting on here for help. Its shameful that you do.

    The funny thing this code I believe is for the Main menu not the HUD. As main thread did state "i want kill/death system code to hud." Funny how this hasn't been answered yet.

    ​Goodluck

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

    Re: [Request] Kill/Death System Code

    this was my maximum, thanks Yuri-BR :D



    for some reason, showing '0', the more it should be database.
    but the latter did not give account to do, tried everything and nothing.
    but anyway, thank you, it was useful.
    Last edited by LukasCCB; 19-03-16 at 06:57 AM.

  13. #13
    Novice Bruno Mestre is offline
    MemberRank
    Mar 2014 Join Date
    1Posts

    Re: [Request] Kill/Death System Code

    someone would have a totorial to put the function in FrontEnd



    I want to append to do this to avoid having to get going behind things done by others



Advertisement