Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void Give(Int32 Client, Byte[] Streak)
- {
- Byte[] On = new Byte[] { 1 };
- //1 - Enable Streak
- //0 - Take it off
- UInt32 G_ClientSize = 0x5808;
- UInt32 Index = (UInt32)Client * G_ClientSize;
- //Give the streak to whatever Killstreak you want
- //1,2 or 3
- //Then Enable it, so it wont be blank, in case the client didnt choosed scorestreaks
- //So:
- PS3.SetMemory(Enable_1 + Index, On);//Enable Streak
- //Give Streak:
- PS3.SetMemory(Killstreak_1 + Index, Streak);
- PS3.SetMemory(Change_1 + Index, Streak);
- //We will change 2 Offsets, otherwise it will not work.
- //And then, just give the scorestreak:
- PS3.SetMemory(Scorestreak_1 + Index, On);
- }
- public static void Test()
- {
- //Server Details Function: http://pastebin.com/ptrKussv
- if (getMapName() == "Nuketown 2025")
- {
- Give(0, Streaks.Nuketown.RCXD);
- }
- else
- {
- Give(0, Streaks.OtherMaps.RCXD);
- }
- }
- //1.18 G_Client = 0x1780F28 (Thanks to Sharks)
- private static UInt32 G_Client = 0x1780F28;
- private static UInt32 Change_1 = G_Client + 0x283;
- private static UInt32 Change_2 = G_Client + 0x29F;
- private static UInt32 Change_3 = G_Client + 0x267;
- private static UInt32 Scorestreak_1 = G_Client + 0x433;
- private static UInt32 Scorestreak_2 = G_Client + 0x437;
- private static UInt32 Scorestreak_3 = G_Client + 0x42F;
- private static UInt32 Enable_1 = G_Client + 0x55F;
- private static UInt32 Enable_2 = G_Client + 0x557;
- private static UInt32 Enable_3 = G_Client + 0x553;
- private static UInt32 Killstreak_1 = G_Client + 0x56F;
- private static UInt32 Killstreak_2 = G_Client + 0x567;
- private static UInt32 Killstreak_3 = G_Client + 0x563;
- //Streaks:
- public class Streaks
- {
- public static class Nuketown
- {
- public static Byte[]
- UAV = new Byte[] { 0x80 },
- RCXD = new Byte[] { 0x94 },
- HunterKiller = new Byte[] { 0x8F },
- CarePackage = new Byte[] { 0x7A },
- CounterUAV = new Byte[] { 0x81 },
- Guardian = new Byte[] { 0xA4 },
- HellstormMissile = new Byte[] { 0x97 },
- LightningStrike = new Byte[] { 0x92 },
- SentryGun = new Byte[] { 0xA2 },
- DeathMachine = new Byte[] { 0x58 },
- WarMachine = new Byte[] { 0x53 },
- DragonFire = new Byte[] { 0x9B },
- AGR = new Byte[] { 0x7F },
- StealthChopper = new Byte[] { 0x87 },
- OrbitalVSAT = new Byte[] { 0x82 },
- EscortDrone = new Byte[] { 0x88 },
- EMPSystems = new Byte[] { 0x83 },
- Warthog = new Byte[] { 0x9E },
- Loadstar = new Byte[] { 0x99 },
- VTOLWarship = new Byte[] { 0x89 },
- K9Unit = new Byte[] { 0x6F },
- Swarm = new Byte[] { 0x91 };
- }
- public static class OtherMaps
- {
- //On other maps its -0x1 from the bytes on nuketown2025
- public static Byte[]
- UAV = new Byte[] { 0x80 -0x1},
- RCXD = new Byte[] { 0x94 -0x1},
- HunterKiller = new Byte[] { 0x8F -0x1},
- CarePackage = new Byte[] { 0x7A -0x1},
- CounterUAV = new Byte[] { 0x81 -0x1},
- Guardian = new Byte[] { 0xA4 -0x1},
- HellstormMissile = new Byte[] { 0x97 -0x1},
- LightningStrike = new Byte[] { 0x92 -0x1},
- SentryGun = new Byte[] { 0xA2 -0x1},
- DeathMachine = new Byte[] { 0x58 -0x1},
- WarMachine = new Byte[] { 0x53 -0x1},
- DragonFire = new Byte[] { 0x9B -0x1},
- AGR = new Byte[] { 0x7F -0x1},
- StealthChopper = new Byte[] { 0x87 -0x1},
- OrbitalVSAT = new Byte[] { 0x82 -0x1},
- EscortDrone = new Byte[] { 0x88 -0x1},
- EMPSystems = new Byte[] { 0x83 -0x1},
- Warthog = new Byte[] { 0x9E -0x1},
- Loadstar = new Byte[] { 0x99 -0x1},
- VTOLWarship = new Byte[] { 0x89 -0x1},
- K9Unit = new Byte[] { 0x6F -0x1},
- Swarm = new Byte[] { 0x91 -0x1};
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement