WarRock EU - Code Snippets

07/24/2011 10:37 Neqqa™#4546
von

[Only registered and activated users can see links. Click Here To Register...]

zu

[Only registered and activated users can see links. Click Here To Register...]
07/24/2011 11:50 Trademark_!#4547
if (CH_NoDelay)
{
if (Playerx!=0)
{
if (GetAsyncKeyState(VK_LBUTTON))
{
ExitProcess;
}
else if (!GetAsyncKeyState(VK_LBUTTON))
{
ExitProcess;
}
}
}
07/24/2011 11:51 _TradEmArk_:)#4548
Quote:
Originally Posted by Trademark_! View Post
if (CH_NoDelay)
{
if (Playerx!=0)
{
if (GetAsyncKeyState(VK_LBUTTON))
{
ExitProcess;
}
else if (!GetAsyncKeyState(VK_LBUTTON))
{
ExitProcess;
}
}
}

Hast nen schönen Exit Process Code gemacht Namefaker
#Reported
07/24/2011 11:53 R3d~F!st#4549
Ist nichtma ExitProcess :P
ExitProcess geht so:

ExitProcess(0);
07/24/2011 13:38 Unknow0119#4550
Es gibt aucht "exit();"
07/24/2011 16:47 R3d~F!st#4551
Little Sprint Source

Code:
if(GETSTATE == RUNS)
{
*(float*)ADR_SPEED += 25;
}
else if(!GETSTATE == RUNS)
{
*(float*)ADR_SPEED = 97;
}
if(GETSTATE == RUNS && sizeof(ADR_SPEED) == 500)
{
*(float*)ADR_SPEED == 500;
}
07/24/2011 17:03 BlackLegend™#4552
Quote:
Originally Posted by _TradEmArk_:) View Post
Hast nen schönen Exit Process Code gemacht Namefaker
#Reported
Das erinnert mich doch an was hmhm

wo war das nochmal achsoo ja:

Quote:
[18:02:00] Marvin | _TradEmArk_˜: if (AS_HardcoreWeapon ==1 )
{
ExitProcess;
}

:facepalm:
07/24/2011 17:43 Raz9r#4553
Quote:
Originally Posted by R3d~F!st View Post
Little Sprint Source

Code:
if(GETSTATE == RUNS)
{
*(float*)ADR_SPEED += 25;
}
else if(!GETSTATE == RUNS)
{
*(float*)ADR_SPEED = 97;
}
if(GETSTATE == RUNS && sizeof(ADR_SPEED) == 500)
{
*(float*)ADR_SPEED == 500;
}

Selten so gelacht.

sizeof gibt einen konstanten Wert zurück, in diesem Fall (Makro / LPVOID) 4, also niemals 500.
07/24/2011 22:15 Dogukan47#4554
ich krieg den fehler das detours.h nicht geöffnet werden kann habe so geschrieben:
Code:
#include <detours.h>
07/24/2011 22:27 Unknow0119#4555
Quote:
#include <detours.h>
Mache einfach vor #include ein //
07/24/2011 22:29 Dogukan47#4556
ok^^ is auch bei deiner base:D

hab ne moonjump addy aber di egeht nicht hat jmd ne bessere?
:
Code:
if (CH_MJump)
{
if(GetAsyncKeyState(VK_CONTROL))
{
DWORD PlP = *(DWORD*)ADR_PlayerPointer;
if(PlP != 0)
{
*(float*)(PlP+ADR_OFS_Z) += 10; // Höhe für Moonjump bzw. Superjump
}
}
}
07/24/2011 22:35 Unknow0119#4557
0x00102E4
07/24/2011 22:38 Dogukan47#4558
eine frage an CyberRazzer :)
könnte ich das hier so in deiner public base einfügen?:
Code:
if (hotkeys==0) DrawMenu(HOT_x,HOT_y,230,135,4,2,BKD,BKD,pDevice);
if (hotkeys==0) TextDraw("HOTKEYS",HOT_x+85,Screeny *.01,0,YELLOW);
if (hotkeys==0) TextDraw("Superjump-: Ctrl + Space",Screenx *.55+10,Screeny *.01+25,0,WHITE);
if (hotkeys==0) TextDraw("Weapons-: F1 & Roll",HOT_x+10,Screeny *.01+40,0,WHITE);
if (hotkeys==0) TextDraw("Force Kick-: Ctrl - k",HOT_x+10,Screeny *.01+55,0,WHITE);
if (hotkeys==0) TextDraw("Tele-: F5 Save F6 Load",HOT_x+10,Screeny *.01+70,0,WHITE);
if (hotkeys==0) TextDraw("Warp-: NumPad Key's",HOT_x+10,Screeny *.01+85,0,WHITE);
if (hotkeys==0) TextDraw("AutoMed-: Ctrl + M",HOT_x+10,Screeny *.01+100,0,WHITE);
if (hotkeys==0) TextDraw("Speed-: Ctrl + W",HOT_x+10,Screeny *.01+115,0,WHITE);
is eine hotkey box
hier mal ein hm warning mit message das funzt:
Code:
if(CH_gmwarn==1)
{
#define COLOR_ADM_WARNING	D3DCOLOR_ARGB(255,255,0,0)
char *gmname=(char *) (ADR_ADMIN_WARNING);	
	if (strlen(gmname)>2) { 
		char gmwarn[333];
		sprintf(gmwarn,  "ADMIN: %s => SPECTATE IN THIS ROOM", ADR_ADMIN_WARNING ); 	
		TextDraw(gmwarn,Screenx/4.2,0,2,COLOR_ADM_WARNING);
}
}
07/24/2011 23:45 Unknow0119#4559
Probier es aus!^^
07/25/2011 00:27 Dogukan47#4560
frage ein cyberrazzers d3d9 base also ich möchte wallcolor machen also nciht nur on und off sondern red green blue... dann hab ich das so versuchte erstmal:
Code:
char *sColors[]= 0,Red,Blue,Yellow,Green,,Orange,Purple,Black,White;
da kommt der erste fehler
Code:
1>.\CMain.cpp(35) : error C2226: Syntaxfehler: Typ 'D3DCOLOR' nicht erwartet
so und zweitens:
Code:
menu.AddMenuItem("WallColor", &CH_WallColor,0,1, GID[1],sColors);
da kommt der nächste fehler:
Code:
:1>.\CMain.cpp(47) : error C2664: 'cMenu::AddMenuItem': Konvertierung des Parameters 6 von 'char *[]' in 'int' nicht möglich
bitte hilft mir :D