Post5 PTC COMMANDS!

Posts 1–5 of 5 · Page 1 of 1
5 PTC COMMANDS!
Hey, guys in my CA-EU pub i have over 20 function :O

but here is 5 ptc Commands!


Here ya go *credit to me because some of these easy to code i coded all these!*

No Fog: On/Off

Code:
if(fog == 1){
	ptc("FogEnable 0");}

if(fog == 0){
	ptc("FogEnable 1");}
Full bright: On/Off

Code:
if(fullbright == 1){
	ptc("FullBright 1");}

if(fullbright == 0){
	ptc("FullBright 0");}
Frag your self: On/Off

Code:
if(killself == 1){
	ptc("FragSelf 1");}

if(killself == 0){
	ptc("FragSelf 0");}
White walls: On/off

Code:
if(wwall == 1){
	ptc("DrawFlat 0");}

if(wwall == 0){
	ptc("DrawFlat 1");}
Killcam: On/Off

Code:
if(killcam == 1){
	ptc("KillCam_On 0");}

if(killcam == 0){
	ptc("KillCam_Off 0");}

Credits:

Me/ Wizdom-x, or , Black Kihper

Info:

Game: Combat Arms *EU*
Type: PTC COMMANDS

*for these to work , u need the ptc method *push to consol method!* witch is posted on this hacking site!!*

If got any problems just PM me..
Thanks you my friend
Does someone have a working base for me?
I really need it, the last time ive coded any hack is well about more dan 2 years.
Ive tried a year ago, but the old methods are all patched and stuff,

Does someone knows if this base is still working, its my old one but i cant test it ATM im reinstalling CA.

Code:
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll"    ) != NULL 
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
&& GetModuleHandleA( "CShell.dll"  ) != NULL )
return true;
return false;
}
//ptc method
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t PushToConsole = (RunConsoleCommand_t)0x00485E10;// engine addy

void main()
{
if(*(int*)0x3781886C == 1) { // game pointer

PushToConsole("SkelModelStencil 1");
}
if(*(int*)0x3781886C == 5) { // 5 = Lobby 
// do absolutely nothing
}

}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
Quote Originally Posted by H4ckBlood View Post
Does someone have a working base for me?
I really need it, the last time ive coded any hack is well about more dan 2 years.
Ive tried a year ago, but the old methods are all patched and stuff,

Does someone knows if this base is still working, its my old one but i cant test it ATM im reinstalling CA.

Code:
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll"    ) != NULL 
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
&& GetModuleHandleA( "CShell.dll"  ) != NULL )
return true;
return false;
}
//ptc method
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t PushToConsole = (RunConsoleCommand_t)0x00485E10;// engine addy

void main()
{
if(*(int*)0x3781886C == 1) { // game pointer

PushToConsole("SkelModelStencil 1");
}
if(*(int*)0x3781886C == 5) { // 5 = Lobby 
// do absolutely nothing
}

}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
dont think anyone can help you here , mayby ask NOOB ?
OT ; this thread has been made already ; http://www.mpgh.net/forum/224-combat...-commands.html

close this ?
@AVGN
@Disturbed
@Bombsaway707
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us