[Snippet] Coupons Effects

Results 1 to 5 of 5
  1. #1
    Apprentice ArkGames is offline
    MemberRank
    Nov 2015 Join Date
    16Posts

    [Snippet] Coupons Effects

    Code:
    Enum CouponEfect
           {
           KETUPAT = 2,  
            BULLET_PROOF_VEST_METAL = 4,
            HOLLOW_POINT_AMMO_PLUS = 8,
            BULLET_PROOF_VEST_PLUS = 16,
            MEGA_HP5 = 32,
            JACKETED_HELLOW_POINT_AMMO = 64,
            INCREASE_GRENADE_SLOT = 128,
            C4_SPEED_KIT = 256,
            HOLLOW_POINT_AMMO = 512,
            FULLMETALJACKETAMMO = 1024,
            BULLET_PROOF_VEST = 2048,
            INCREASE_INVINCIBLE_TIME = 4096,
            MEGA_HP10 = 8192,
            QUICK_CHANGE_MAGAZINE = 16384,
            QUICK_CHANGE_WEAPON = 32768,
            RESPAWN_30 = 1048576,
            RESPAWN_50 = 2097152,
    }
    To use them you will need to modify or update SM_ROOM_SLOTINFO
    I'll leave her Structure below:
    Code:
    WriteC(8); // Slot.State
    WriteC(0); // Player.Rank
    WriteD(0); // ClanId
    WriteD(0); // ClanRole
    WriteC(0); // Clan.Rank
    WriteD(-1); // Clan.Mark
    WriteC(0); // Player.Premium
    WriteC(0); // Player.TournamentRank
    WriteD(0); // Coupons
    WriteS("", Clan.NAME_LENGTH);
    WriteD(0); // ?
    WriteC(0); // ClanNameColor
    If you have any questions on the subject, ask questions on the topic itself, I will help without hesitation
    Yours sincerely,
    SmoLL
    computer engineering
    Last edited by Taiga; 16-11-16 at 10:11 AM. Reason: Added code tags


  2. #2
    Member kesz24 is offline
    MemberRank
    May 2014 Join Date
    londonLocation
    53Posts

    Re: [Snippet] Coupons Effects

    Quote Originally Posted by ArkGames View Post
    Code:
    Enum CouponEfect
           {
           KETUPAT = 2,  
            BULLET_PROOF_VEST_METAL = 4,
            HOLLOW_POINT_AMMO_PLUS = 8,
            BULLET_PROOF_VEST_PLUS = 16,
            MEGA_HP5 = 32,
            JACKETED_HELLOW_POINT_AMMO = 64,
            INCREASE_GRENADE_SLOT = 128,
            C4_SPEED_KIT = 256,
            HOLLOW_POINT_AMMO = 512,
            FULLMETALJACKETAMMO = 1024,
            BULLET_PROOF_VEST = 2048,
            INCREASE_INVINCIBLE_TIME = 4096,
            MEGA_HP10 = 8192,
            QUICK_CHANGE_MAGAZINE = 16384,
            QUICK_CHANGE_WEAPON = 32768,
            RESPAWN_30 = 1048576,
            RESPAWN_50 = 2097152,
    }
    To use them you will need to modify or update SM_ROOM_SLOTINFO
    I'll leave her Structure below:
    Code:
    WriteC(8); // Slot.State
    WriteC(0); // Player.Rank
    WriteD(0); // ClanId
    WriteD(0); // ClanRole
    WriteC(0); // Clan.Rank
    WriteD(-1); // Clan.Mark
    WriteC(0); // Player.Premium
    WriteC(0); // Player.TournamentRank
    WriteD(0); // Coupons
    WriteS("", Clan.NAME_LENGTH);
    WriteD(0); // ?
    WriteC(0); // ClanNameColor
    If you have any questions on the subject, ask questions on the topic itself, I will help without hesitation
    Yours sincerely,
    SmoLL
    computer engineering
    What about +1 smoke / flashbang coupon ?

  3. #3
    Novice SmoLLL4Z is offline
    MemberRank
    Aug 2013 Join Date
    1Posts

    Re: [Snippet] Coupons Effects

    These values ​​are multiple of themselves , for example 1*1 = 2 KETUPAT and 2*2 = 4 BULLET_PROOF_VEST_METAL,
    +1 smoke and flashbang Can be 1 or 2097152 * 2097152= 4194304.

  4. #4
    Member kesz24 is offline
    MemberRank
    May 2014 Join Date
    londonLocation
    53Posts

    Re: [Snippet] Coupons Effects

    Quote Originally Posted by SmoLLL4Z View Post
    These values ​​are multiple of themselves , for example 1*1 = 2 KETUPAT and 2*2 = 4 BULLET_PROOF_VEST_METAL,
    +1 smoke and flashbang Can be 1 or 2097152 * 2097152= 4194304.
    ok i see
    but how we know the name string ?
    BULLET_PROOF_VEST_METAL << where you can find this string ?

  5. #5
    Would You Kindly? Bola is offline
    DeveloperRank
    Dec 2011 Join Date
    BrazilLocation
    1,762Posts

    Re: [Snippet] Coupons Effects

    Quote Originally Posted by SmoLLL4Z View Post
    These values ​​are multiple of themselves , for example 1*1 = 2 KETUPAT and 2*2 = 4 BULLET_PROOF_VEST_METAL,
    +1 smoke and flashbang Can be 1 or 2097152 * 2097152= 4194304.
    is a mask, it shoud works like

    int coupon = Coupon.BULLET_PROOF_VEST | Coupon.FAST_CHANGE;



Advertisement