loop weapons

Posts 1–15 of 19 · Page 1 of 2
loop weapons
Hey guys

1-how to loop all weapons except snipers ?

2-How to make no knock back ?

my source code :
Code:
if(knockback)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<560; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL && (Mutant))
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0x2788) = 0.0;
		}
	    }
	}
3- how to make basic fast plant i already i made it but Visual

Code:
*(float*)(Playerpointer+ 0x7C) = 1.5f;
Last thing how to make Msg pop up after closing crosfire


Solved : 0
Unsolved : 4


Thanks in advance
umm just find all snipers and do 560 - snipers = only weapons
Quote Originally Posted by DaRk View Post
umm just find all snipers and do 560 - snipers = only weapons
so if i need to make all except AWM

Should be something like this :
Code:
for(int i=0; i<560-15; i++)
sorry i am not in home to try

Quote Originally Posted by Swag View Post
Code:
if( knockback )
{
if(pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL && (Mutant))
*(float*)( Wep + (0x2788 + (4*y))) = (float)0;
}
}
}
Try this for knockback..
So u mean to make two loop or what ?

cuz u say in loop i

and in
Code:
( Wep + (0x2788 + (4*y)))
DWORD Wep = *(DWORD*)(*(DWORD*)(CShell+0xA68F90)+ (4*i); so 4*i = first loop I think and in the code 4*y = second loop

so u need two loop is am right ?
[QUOTE=Dragon(H)ell;5562086]so if i need to make all except AWM

Should be something like this :
Code:
for(int i=0; i<560-15; i++)
sorry i am not in home to try
__________________________________________________ __________________________________________________ ____________

no i mean like find all weapon ids expect AWM
Quote Originally Posted by DaRk View Post
no i mean like find all weapon ids expect AWM
didn't get it yet sorry
can u make example please
Code:
if( knockback )
{
if(pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL && (Mutant))
*(float*)( Wep + (0x2788 + (4*y))) = (float)0;
}
}
}
Try this for knockback..

Fast plant is always visual
Fast defuce is working.
Im not to sure but i think it might work:

1) Find how many snipers there are.

2) Then from the weapon loop 560 - the amount of snipers you found.

(For example: Awm. So that is 1 weapon gone. So make the loop 559;
Code:
for(int i=0; i<559; i++)
Im not to sure if this dont work then do what errol said
But im not to sure because then the hack will work on 559 weapons and might include the snipers and decrease 1 weapon..
nice but undefine
I Shared Fast plant and defuse Source code u can use it but u forced to give me Credit
Lol, you guys are so lol. Especially the guy who's like (i<559-12) hahaha. This is why us coders advise all of you to learn c++. It's not to be mean, it's for a reason. If you knew simple c++ you would know that you can just define Snipers like: #define Snipers (i ==bla) || (i==bla). Then in your loop just put and (!Snipers). It's that simple.
Quote Originally Posted by 258456 View Post
Lol, you guys are so lol. Especially the guy who's like (i<559-12) hahaha. This is why us coders advise all of you to learn c++. It's not to be mean, it's for a reason. If you knew simple c++ you would know that you can just define Snipers like: #define Snipers (i ==bla) || (i==bla). Then in your loop just put and (!Snipers). It's that simple.
#define Snipers (i ==bla) || (i==bla).
(!Snipers)

to loop snipers Only!!!

but i need to loop all except snipers
Quote Originally Posted by Dragon(H)ell View Post
#define Snipers (i ==bla) || (i==bla).
(!Snipers)

to loop snipers Only!!!

but i need to loop all except snipers

Bro, i gave u a hint. I am not gonna give u code. If u can't figure it out, then it aint my problem. Go learn some programming before you try to leech code.
Btw,

#define Snipers (i ==bla) || (i==bla).

Is not correct. It is valid.. But there wil heapen somting you don't want.

Edit:
@ every one.. eksept 258456.
Shame on you! Go back and learn how to code good!
Quote Originally Posted by Brimir View Post
Btw,

#define Snipers (i ==bla) || (i==bla).

Is not correct. It is valid.. But there wil heapen somting you don't want.

Edit:
@ every one.. eksept 258456.
Shame on you! Go back and learn how to code good!
Quoted for the truth. LOL.
@Dragon(H)ell
just define weapons ID except for sniper
and you dont need to change the loop <560
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us