[Código Fonte] Patente Hack
ID de algumas patente do crossfire:
Classe Jogador com seus atributos e um Set.
Instanciamento da classe Jogador ( 'Eu' se torna um objeto do mundo real )
Função
Code:
#define BARRINHA_DE_OURO 27 #define BARRINHA_DE_PRATA 35 #define CAPTAIN_DE_PRATA 43 #define MAJOR_DE_OURO 52 #define MAJOR_DE_PRATA 59 #define CORONEL_DE_PRATA 67 #define UMA_ESTRELA 75 #define DUAS_ESTRELA 81 #define TRES_ESTRELA 87 #define QUATRO_ESTRELA 93 #define MARECHAL 99
Code:
class Jogador
{
public:
CHAR space_0[4];
cObject* Object;
CHAR ClientID;
CHAR Time;
CHAR Nome[12];
CHAR desconhecido[2];
cCharacter *pCharacter;
INT PlayerSlotTeam;
INT space_1;
BOOL TemC4;
BOOL Status;
INT Patente;
INT desconhecido_2;
INT desconhecido_3;
WORD Vida;
SHORT Kills;
void MudarPatente(INT Patente)
{
this->Patente = Patente;
}
};
Code:
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD LTClient = *(DWORD *)(CShell + ADDR_LTCLIENTSHELL);
Jogador *Eu = ObterJogadorPorIndice(LTClient, ObterMeuIndice(LTClient));
Code:
Eu->MudarPatente(MARECHAL);
biba

