Résolu Codage Message Box

Statut
N'est pas ouverte pour d'autres réponses.

MORGΔN

Membre
Inscription
27 Août 2012
Messages
8
Réactions
0
Points
8 844
RGCoins
50
Salut a tous, je poste ce topic pour savoir si quelquin aurai le Codage de " Message Box " :D

GTA 5 1.18 *
 
Dernière édition par un modérateur:
Pour les message GTAV :
public class Buttons
{
public static uint DpadUp = 1048576u;
public static uint DpadDown = 4194304u;
public static uint DpadRight = 2097152u;
public static uint DpadLeft = 8388608u;
public static uint Cross = 64u;
public static uint Circle = 32u;
public static uint Triangle = 16u;
public static uint Square = 128u;
public static uint R3 = 262144u;
public static uint R2 = 2u;
public static uint R1 = 8u;
public static uint L3 = 131072u;
public static uint L2 = 1u;
public static uint L1 = 4u;
public static uint Select = 65536u;
public static uint Start = 524288u;
}

// Note:offsets for BLES 1.18
private uint GTATextOffset = 0x1fcf10c;
private uint GTAFunctionOffset = 0x1fcf81f;
private uint GTAButtonsOffset = 0x1f42410;

string BLUE = "~HUD_COLOUR_BLUE~";
string YELLOW = "~HUD_COLOUR_YELLOW~";
string RED = "~HUD_COLOUR_RED~";
string WHITE = "~HUD_COLOUR_WHITE~";
string PURPLE = "~HUD_COLOUR_PURPLE~";
string GREEN = "~HUD_COLOUR_GREEN~";
private bool IsCurrentMessage(string secondmessage)
{
byte[] AllTextBytes = PS3.GetBytes(GTATextOffset, secondmessage.Length + 1);
byte[] SecondMessageBytes = Encoding.ASCII.GetBytes(secondmessage);
Array.Resize(ref SecondMessageBytes, SecondMessageBytes.Length + 1);
if (AllTextBytes.SequenceEqual(SecondMessageBytes))
{
return true;
}
return false;
}

public bool ButtonPressed(uint Button)
{
bool result;
byte[] array = PS3.GetBytes(GTAButtonsOffset, 4);
Array.Reverse(array);
uint num = BitConverter.ToUInt32(array, 0);
if (num == Button)
{
result = true;
return result;
}
result = false;
return result;
}

private void SendMessageToGTA(string message)
{
byte[] MessageBytes = Encoding.ASCII.GetBytes(message);
Array.Resize(ref MessageBytes, MessageBytes.Length + 1);
PS3.SetMemory(GTATextOffset, MessageBytes);

byte[] StartFunction = new byte[] { 0x04 };
PS3.SetMemory(GTAFunctionOffset, StartFunction);
}

private void RemoveLastMessageFromGTA()
{
byte[] EndFunction = new byte[] { 0x02 };
PS3.SetMemory(GTAFunctionOffset, EndFunction);
}

Pour l'utiliser tu fais :
SendMessageToGTA(PURPLE + "Ton texte");//PURPLE = la couleur
Voilà ;)
 
Pour les message GTAV :
public class Buttons
{
public static uint DpadUp = 1048576u;
public static uint DpadDown = 4194304u;
public static uint DpadRight = 2097152u;
public static uint DpadLeft = 8388608u;
public static uint Cross = 64u;
public static uint Circle = 32u;
public static uint Triangle = 16u;
public static uint Square = 128u;
public static uint R3 = 262144u;
public static uint R2 = 2u;
public static uint R1 = 8u;
public static uint L3 = 131072u;
public static uint L2 = 1u;
public static uint L1 = 4u;
public static uint Select = 65536u;
public static uint Start = 524288u;
}

// Note:Offsets for BLES 1.18
private uint GTATextOffset = 0x1fcf10c;
private uint GTAFunctionOffset = 0x1fcf81f;
private uint GTAButtonsOffset = 0x1f42410;

string BLUE = "~HUD_COLOUR_BLUE~";
string YELLOW = "~HUD_COLOUR_YELLOW~";
string RED = "~HUD_COLOUR_RED~";
string WHITE = "~HUD_COLOUR_WHITE~";
string PURPLE = "~HUD_COLOUR_PURPLE~";
string GREEN = "~HUD_COLOUR_GREEN~";
private bool IsCurrentMessage(string secondmessage)
{
byte[] AllTextBytes = PS3.GetBytes(GTATextOffset, secondmessage.Length + 1);
byte[] SecondMessageBytes = Encoding.ASCII.GetBytes(secondmessage);
Array.Resize(ref SecondMessageBytes, SecondMessageBytes.Length + 1);
if (AllTextBytes.SequenceEqual(SecondMessageBytes))
{
return true;
}
return false;
}

public bool ButtonPressed(uint Button)
{
bool result;
byte[] array = PS3.GetBytes(GTAButtonsOffset, 4);
Array.Reverse(array);
uint num = BitConverter.ToUInt32(array, 0);
if (num == Button)
{
result = true;
return result;
}
result = false;
return result;
}

private void SendMessageToGTA(string message)
{
byte[] MessageBytes = Encoding.ASCII.GetBytes(message);
Array.Resize(ref MessageBytes, MessageBytes.Length + 1);
PS3.SetMemory(GTATextOffset, MessageBytes);

byte[] StartFunction = new byte[] { 0x04 };
PS3.SetMemory(GTAFunctionOffset, StartFunction);
}

private void RemoveLastMessageFromGTA()
{
byte[] EndFunction = new byte[] { 0x02 };
PS3.SetMemory(GTAFunctionOffset, EndFunction);
}

Pour l'utiliser tu fais :
SendMessageToGTA(PURPLE + "Ton texte");//PURPLE = la couleur
Voilà ;)
Merci ^^
 
Pour les message GTAV :
public class Buttons
{
public static uint DpadUp = 1048576u;
public static uint DpadDown = 4194304u;
public static uint DpadRight = 2097152u;
public static uint DpadLeft = 8388608u;
public static uint Cross = 64u;
public static uint Circle = 32u;
public static uint Triangle = 16u;
public static uint Square = 128u;
public static uint R3 = 262144u;
public static uint R2 = 2u;
public static uint R1 = 8u;
public static uint L3 = 131072u;
public static uint L2 = 1u;
public static uint L1 = 4u;
public static uint Select = 65536u;
public static uint Start = 524288u;
}

// Note:Offsets for BLES 1.18
private uint GTATextOffset = 0x1fcf10c;
private uint GTAFunctionOffset = 0x1fcf81f;
private uint GTAButtonsOffset = 0x1f42410;

string BLUE = "~HUD_COLOUR_BLUE~";
string YELLOW = "~HUD_COLOUR_YELLOW~";
string RED = "~HUD_COLOUR_RED~";
string WHITE = "~HUD_COLOUR_WHITE~";
string PURPLE = "~HUD_COLOUR_PURPLE~";
string GREEN = "~HUD_COLOUR_GREEN~";
private bool IsCurrentMessage(string secondmessage)
{
byte[] AllTextBytes = PS3.GetBytes(GTATextOffset, secondmessage.Length + 1);
byte[] SecondMessageBytes = Encoding.ASCII.GetBytes(secondmessage);
Array.Resize(ref SecondMessageBytes, SecondMessageBytes.Length + 1);
if (AllTextBytes.SequenceEqual(SecondMessageBytes))
{
return true;
}
return false;
}

public bool ButtonPressed(uint Button)
{
bool result;
byte[] array = PS3.GetBytes(GTAButtonsOffset, 4);
Array.Reverse(array);
uint num = BitConverter.ToUInt32(array, 0);
if (num == Button)
{
result = true;
return result;
}
result = false;
return result;
}

private void SendMessageToGTA(string message)
{
byte[] MessageBytes = Encoding.ASCII.GetBytes(message);
Array.Resize(ref MessageBytes, MessageBytes.Length + 1);
PS3.SetMemory(GTATextOffset, MessageBytes);

byte[] StartFunction = new byte[] { 0x04 };
PS3.SetMemory(GTAFunctionOffset, StartFunction);
}

private void RemoveLastMessageFromGTA()
{
byte[] EndFunction = new byte[] { 0x02 };
PS3.SetMemory(GTAFunctionOffset, EndFunction);
}

Pour l'utiliser tu fais :
SendMessageToGTA(PURPLE + "Ton texte");//PURPLE = la couleur
Voilà ;)
toujour le meme Skype ;) il et toujour fonctionnel son tool avec le menu a Youssef ? je freeeze a chaque fois
 
Statut
N'est pas ouverte pour d'autres réponses.
Retour
Haut