Unlimited Ammo MEM Function

Posts 1–14 of 14 · Page 1 of 1
Unlimited Ammo MEM Function
I know that the value to enable it is 0, but couldn't find the off value. So i listened to what larta said and I tried to make it a variable or whatever, heres my function. Once it's on, i try to turn it off and it just crashes, how do I fix this ?

My Source


// Unlimited ammo Mem
// Unlimited ammo / OFF //
{
int ammoOFF = *(int*)(MEM_UNLAMMO);
{
switch(CH_unlammo)
{
case 0:*(int*)(MEM_UNLAMMO) = ammoOFF;break;
case 1:*(int*)(MEM_UNLAMMO) = 0;break;
}
}
}
man i don't know about this a lot but i 0=off and 1=on? don't know try it
already tried , but thanks for trying to help
// Unlimited ammo Mem
// Unlimited ammo / OFF //
{
int ammoOFF = *(int*)(MEM_UNLAMMO);
{
switch(CH_unlammo)
{
case 0:*(int*)(MEM_UNLAMMO) = ammoOFF;break;
case 1:*(int*)(MEM_UNLAMMO) = 0;break;
}
}
}


i think you must erase the break... from the last code case 1:*(int)(MEM_UNLAMMO) = 0; im not sure
i tried that too , idk why i keep it there lol. it doesnt effect it but im just too lazy to remove lol. thanks for trying to help but still no
I could try it too, but i dont got unl ammo addies so its hard xD

did you try = 1?

Nvm got addie, Iltry
Quote Originally Posted by MH4CKER View Post
I could try it too, but i dont got unl ammo addies so its hard xD

did you try = 1?

Nvm got addie, Iltry
That will crach for sure ...

i try find val for off later but if u need you can restore val and it will be off ..
Quote Originally Posted by MH4CKER View Post
I could try it too, but i dont got unl ammo addies so its hard xD

did you try = 1?

Nvm got addie, Iltry
I Think Will Crash
Quote Originally Posted by R3dLine View Post
That will crach for sure ...

i try find val for off later but if u need you can restore val and it will be off ..
or he could make a function that restored the cur vallue with the official value , a type of logger
I dont use Unl memory so idk
Lmao console... Memory hacks don't need bypasses, just asm functions
Quote Originally Posted by barcoder View Post
Lmao console... Memory hacks don't need bypasses, just asm functions
He is right..
I guess UnlAmmo needs bypass
Try:

(At top w/ rest of declarations):

bool unl_ammo_origi=false;


// Unlimited ammo Mem
// Unlimited ammo / OFF //
{
if(unl_ammo_origi==false) {
int ammoOFF = *(int*)(MEM_UNLAMMO);
unl_ammo_origi=true;
}
{
switch(CH_unlammo)
{
case 0:*(int*)(MEM_UNLAMMO) = ammoOFF;break;
case 1:*(int*)(MEM_UNLAMMO) = 0;break;
}
}
}
Posts 1–14 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us