| CODE |
| #cheat Hit Down to Car Hop! if(press & CTRL_DOWN) { setfloat(pcar + 0x00000148, +0.2); } |
| CODE |
| CTRL_SELECT CTRL_LTRIGGER CTRL_HOME CTRL_START CTRL_RTRIGGER CTRL_VOLUP CTRL_UP CTRL_TRIANGLE CTRL_VOLDOWN CTRL_RIGHT CTRL_CIRCLE CTRL_SCREEN CTRL_DOWN CTRL_CROSS CTRL_NOTE CTRL_LEFT CTRL_SQUARE |
| QUOTE (xFinch713x @ Nov 4 2006, 05:47 PM) |
| sweet tut, just what u wanted, but..., what if i wanted to have multiple buttons pressed, such as... hold L, then press or tap UP to make money go up? how would i do that? |
| QUOTE (xFinch713x @ Nov 4 2006, 08:17 PM) |
| well, in car, down is honk, and sometimes you need to honk in a mission, get my point? |
| CODE |
#cheat Bouncy! BounceAmount = 0.8; rot = getfloat(0x09fc73f0); setfloat(pplayer + 0x4E4, 150.0);//health if(getshort(pplayer+0x1C8)!=0x1020) { setfloat(pplayer+0x148,BounceAmount); setshort(pplayer+0x1c8, 0x1020); if(ystick < -0.5) { setfloat(pplayer+0x140,getfloat(pplayer+0x10)); setfloat(pplayer+0x144,getfloat(pplayer+0x14)); } } if(xstick < -0.5) rot += 2; if(xstick > 0.5) rot -= 2; setfloat(pplayer, cos(rot)); setfloat(pplayer+0x4, sin(rot)); setfloat(pplayer+0x10, -sin(rot)); setfloat(pplayer+0x14, cos(rot)); setfloat(0x09fc73f0, rot); |
| CODE |
| #cheat Black Lamborghini if(getshort(pcar+0x58)==270) { setfloat(pcar+0x450, 0, -1.2566371, 0); setfloat(pcar+0x480, 0, -1.2566371, 0); setfloat(pcar+0x4b0, 0, -1.2566371, 0); setfloat(pcar+0x4e0, 0, -1.2566371, 0); { setshort(pcar+0x3b6, 0, 0); { static money; static wasin; if(!money) money = getint(0x08bde560); if (pcar) { wasin = true; speed = (sqrt(getfloat(pcar + 0x140) * getfloat(pcar + 0x140) + getfloat(pcar + 0x144) * getfloat(pcar + 0x144)))*100; setint(0x08bde55c, speed, speed); setchar(0x8BAEDB8, '%', 'd', 0); setchar(0x8BAEDC0, '%', 'd', 0); } else { if(wasin) { setchar(0x8BAEDB8, '%', '0', '8', 'd', '$', 0); setchar(0x8BAEDC0, '$', '%', '0', '8', 'd', 0); setint(0x08bde55c, money, money); wasin = false; } money = getint(0x08bde560); { setchar(pcar+0x00000224, 0x00, 0x00, 0x00); setchar(pcar+0x00000228, 0x00, 0x00, 0x00); } #cheat Orange Lamborghini if(getshort(pcar+0x58)==270) { setfloat(pcar+0x450, 0, -1.2566371, 0); setfloat(pcar+0x480, 0, -1.2566371, 0); setfloat(pcar+0x4b0, 0, -1.2566371, 0); setfloat(pcar+0x4e0, 0, -1.2566371, 0); { setshort(pcar+0x3b6, 0, 0); { static money; static wasin; if(!money) money = getint(0x08bde560); if (pcar) { wasin = true; speed = (sqrt(getfloat(pcar + 0x140) * getfloat(pcar + 0x140) + getfloat(pcar + 0x144) * getfloat(pcar + 0x144)))*100; setint(0x08bde55c, speed, speed); setchar(0x8BAEDB8, '%', 'd', 0); setchar(0x8BAEDC0, '%', 'd', 0); } else { if(wasin) { setchar(0x8BAEDB8, '%', '0', '8', 'd', '$', 0); setchar(0x8BAEDC0, '$', '%', '0', '8', 'd', 0); setint(0x08bde55c, money, money); wasin = false; } money = getint(0x08bde560); { setchar(pcar+0x00000224, 0xff, 0x66, 0x00); setchar(pcar+0x00000228, 0xff, 0x66, 0x00); } #cheat Sentinel XTREME if(getshort(pcar+0x58)==274) { setfloat(pcar+0x450, 0, -1.2566371, 0); setfloat(pcar+0x480, 0, -1.2566371, 0); setfloat(pcar+0x4b0, 0, -1.2566371, 0); setfloat(pcar+0x4e0, 0, -1.2566371, 0); { setshort(pcar+0x3b6, 0, 0); { static rotation; if (rotation == 0) { rotation = 360; } spin = tan(rotation); setfloat(pcar + 0x644, spin, spin, spin, spin); rotation = rotation - 1; if (rotation == 1) {rotation = 360;} if (buttons & CTRL_CIRCLE && !(buttons & CTRL_LTRIGGER)) { //calculate speed speed = sqrt(getfloat(pcar + 0x140) * getfloat(pcar + 0x140) + getfloat(pcar + 0x144) * getfloat(pcar + 0x144)); //if speed is lower than max speed for NOS accelerate if(speed<1.8) { setfloat(pcar+0x140, getfloat(pcar+0x140)-getfloat(pcar+0x4)*0.005); setfloat(pcar+0x144, getfloat(pcar+0x144)+getfloat(pcar)*0.005); } } //Power Brake if vehicle is on ground if(buttons & CTRL_SQUARE && getshort(pcar+0x1c8)==0) setfloat(pcar+0x140, 0, 0); { setchar(pcar+0x00000224, 0x00, 0x00, 0x00); setchar(pcar+0x00000228, 0x00, 0x00, 0x00); { static money; static wasin; if(!money) money = getint(0x08bde560); if (pcar) { wasin = true; speed = (sqrt(getfloat(pcar + 0x140) * getfloat(pcar + 0x140) + getfloat(pcar + 0x144) * getfloat(pcar + 0x144)))*100; setint(0x08bde55c, speed, speed); setchar(0x8BAEDB8, '%', 'd', 0); setchar(0x8BAEDC0, '%', 'd', 0); } else { if(wasin) { setchar(0x8BAEDB8, '%', '0', '8', 'd', '$', 0); setchar(0x8BAEDC0, '$', '%', '0', '8', 'd', 0); setint(0x08bde55c, money, money); wasin = false; } money = getint(0x08bde560); } |


| QUOTE (Waterbottle @ Nov 15 2006, 10:21 PM) |
| if(getshort(pcar+0x58)==180) { //something } would mkae somehitng happen only if you are in a bobcat |
| QUOTE (Guest @ Feb 19 2007, 01:23 AM) | ||
does the numbers 180 represent the car number?... |