Post: [HELP] Hello i need again HELP![MOD MENU]
10-14-2016, 06:05 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello Guys,
I need for my own Mod Menu a CAMO Changer.
and i dont know.
:P

Please i need the Code for the Camo Changer :PSal
(adsbygoogle = window.adsbygoogle || []).push({});
10-14-2016, 06:29 PM #2
Originally posted by CircuitHD View Post
Hello Guys,
I need for my own Mod Menu a CAMO Changer.
and i dont know.
:P

Please i need the Code for the Camo Changer :PSal


Here is a function that changes the camo on your gun to specified camo id.
    
setCamo(num)
{
weap = self getCurrentWeapon();
level.setCamo = true;
for (i = 0; i < num; i++)
{
self takeWeapon(weap);
self giveWeapon(weap,0,true(num,0,0,0,0));
self switchToWeapon(weap);
}
level.setCamo = false;
self iPrintLn("New Camo ^2Set!");
}
10-14-2016, 09:48 PM #3
Ok Thanks.
Can you send me example code with a Camo id pls Smile
10-14-2016, 11:25 PM #4
Originally posted by CircuitHD View Post
Ok Thanks.
Can you send me example code with a Camo id pls Smile


Just plug in a number between 1 - 42 (I think) into the camo function. That is it
10-15-2016, 09:55 AM #5
Where everywhere is num?
Or
Where everywhere is 0?
10-17-2016, 09:17 AM #6
Originally posted by CircuitHD View Post
Where everywhere is num?
Or
Where everywhere is 0?


setCamo(num)
{
weap = self getCurrentWeapon();
level.setCamo = true;
for (i = 0; i < num; i++)
{
self takeWeapon(weap);
self giveWeapon(weap,0,true(num,0,0,0,0));
self switchToWeapon(weap);
}
level.setCamo = false;
self iPrintLn("New Camo ^2Set!");
}

it shoud work like this

AddOption("default", "Camo", ::setCamo, 0);

The following user thanked PONY_MODZ for this useful post:

NmfV2
10-17-2016, 01:37 PM #7
NmfV2
Do a barrel roll!
Originally posted by MODZ View Post
setCamo(num)
{
weap = self getCurrentWeapon();
level.setCamo = true;
for (i = 0; i < num; i++)
{
self takeWeapon(weap);
self giveWeapon(weap,0,true(num,0,0,0,0));
self switchToWeapon(weap);
}
level.setCamo = false;
self iPrintLn("New Camo ^2Set!");
}

it shoud work like this

AddOption("default", "Camo", ::setCamo, 0);


    setCamo(num)
{
weap = self getCurrentWeapon();
level.setCamo = true;
for (i = 0; i < num; i++)
{
self takeWeapon(weap);
self giveWeapon(weap,0,true(num,0,0,0,0));
self switchToWeapon(weap);
}
level.setCamo = false;
self iPrintLn("New Camo ^2Set!");
}

it should work like this
    
AddOption("default", "Camo", ::setCamo, 0);
10-17-2016, 01:38 PM #8
NmfV2
Do a barrel roll!
Originally posted by MODZ View Post
setCamo(num)
{
weap = self getCurrentWeapon();
level.setCamo = true;
for (i = 0; i < num; i++)
{
self takeWeapon(weap);
self giveWeapon(weap,0,true(num,0,0,0,0));
self switchToWeapon(weap);
}
level.setCamo = false;
self iPrintLn("New Camo ^2Set!");
}

it shoud work like this

AddOption("default", "Camo", ::setCamo, 0);


Warping it makes it easier Smile
10-18-2016, 10:09 PM #9
1) The for loop is unneeded.
2) Why would you need level.setCamo?
3) Why would you make setCamo a level variable?
    
setCamo(num)
{
weap = self getCurrentWeapon();
self takeWeapon(weap);
self giveWeapon(weap,0,true(num,0,0,0,0));
self switchToWeapon(weap);
self iPrintLn("CAMO NAME ^2Set!");
}
10-20-2016, 01:38 AM #10
Kronos
Former Staff
Originally posted by CircuitHD View Post
Hello Guys,
I need for my own Mod Menu a CAMO Changer.
and i dont know.
:P

Please i need the Code for the Camo Changer :PSal


status on your issue?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo