Post: How do a add codes?
02-03-2014, 09:04 PM #1
EliteXLV
NextGenUpdate Elite
(adsbygoogle = window.adsbygoogle || []).push({}); I always see ppl posting codes for example the kem strike as support code. how do I use and apply that code?
(adsbygoogle = window.adsbygoogle || []).push({});
02-04-2014, 08:11 AM #2
twism
Haxor!
Originally posted by EliteXLV View Post
I always see ppl posting codes for example the kem strike as support code. how do I use and apply that code?


You have to use PS3Lib.

Lets say for example you have a cex console. You need to add PS3Lib as a reference in visual studio. Project -> Add Reference.

Now in your code, at the top, you need to tell your form to use it. Type "Using PS3Lib;"
Then insert this: "private CCAPI PS3 = new CCAPI();" - remove the ""
Save your form and copy CCAPI.DLL to your bin/debug/ and/or bin/release folder.
PS3lib needs it when you start your form.

Now you need to initialize contact between your form and your PS3.

Just make a simple textbox and a button.
Double click the button and add this code to connect:

PS3.ConnectTarget(textBox1.Text); // Grabs IP from your textbox
PS3.AttachProcess(); // Attach the current process on your ps3.

Now run your form and input your IP address and press the button. It should be connected.
Just to be sure, add this code:

if(PS3.SUCCESS(PS3.AttachProcess())
{
PS3.Notify(CCAPI.NotifyIcon.INFO, "Connected");
}
else
{
MessageBox.Show("Error");
}

If you are connected now, the PS3 show's a message. If not, there will be an error thrown on your pc display.

If you are connected, you can write to memory using offsets.

For example:

If you want to turn redboxes on, you can make two buttons. 1 for on and 1 for off.

Double click button for on and enter this code:

byte[] buffer = new byte[] { 0x60, 0x00, 0x00, 0x00 };
PS3.SetMemory(0x0014492C, buffer);

And for the off button:

byte[] buffer = new byte[] { 0x41, 0x82, 0x00, 0x0c };
PS3.SetMemory(0x0014492C, buffer);

Ofc, it's better to use checkboxes.

Checkboxes have three checkoptions, 2 are default.

You will need to double click the checkbox and use this code:

private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (!checkBox1.Checked)
{
//off
byte[] buffer = new byte[] { 0x41, 0x82, 0x00, 0x0c };
PS3.SetMemory(0x0014492C, buffer);
}

else

{
//on
byte[] buffer = new byte[] { 0x60, 0x00, 0x00, 0x00 };
PS3.SetMemory(0x0014492C, buffer);
}
}

This tells your form which action to use if a user check's the checkbox.

Lets say you want to set a killstreak, just use one button. Add this code:

byte[] buffer = new byte[] { 0x12 };
PS3.SetMemory(0x01769288, buffer);

As you see, the memory address has changed. This is the memory address of: Killstreak1 Soldier 1 Class 1.

Now when you are connected and press the button, it should send that code and change your killstreak(dont forget to go back to lobby to seeit change)

Hope it helps Smile!

The following user thanked twism for this useful post:

EliteXLV

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo