Answered Easy Set Camos

Status
Not open for further replies.

candy

G59 Terrorist
Staff member
Donator
Messages
1,327
Reaction score
763
Points
973
Wondering if there is way to take this code where I can call it like example

Code:
"Set Camo AW", ::Givecamo, 45);
This is what im using as of now
Code:
AWcamo()
{
    weap = self getCurrentWeapon();
    self takeWeapon( weap );
    self giveWeapon( weap, 0, true ( 45, 0, 0, 0, 0 ) );
    self switchToWeapon( weap );
    self giveMaxAmmo(weap);
    self iPrintlnbold("Advanced Warfare Camo ^2Received!");
}
In a way were I dont have to make over 100 lines of codes because of all the camos
 

DrifterTheHomie

New Member
Messages
6
Reaction score
4
Points
3
yup,or like this:
Code:
"Comics", ::givetheCamo, 33);
"Beast", ::givetheCamo, 41);
"Afterlife", ::givetheCamo, 44);
"Octane", ::givetheCamo, 42);
"Weaponized 115", ::givetheCamo, 43);
Code:
givetheCamo( num )
{
    Weapon = self getCurrentWeapon();
    self takeWeapon( Weapon );
    self giveWeapon( Weapon, 0, true( num, 0, 0, 0, 0 ) );
    self setSpawnWeapon( Weapon );
    //self iPrintln("Camo ^3#"  + num + " ^7Given!");
}
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,327
Reaction score
763
Points
973
yup,or like this:
Code:
"Comics", ::givetheCamo, 33);
"Beast", ::givetheCamo, 41);
"Afterlife", ::givetheCamo, 44);
"Octane", ::givetheCamo, 42);
"Weaponized 115", ::givetheCamo, 43);
Code:
givetheCamo( num )
{
    Weapon = self getCurrentWeapon();
    self takeWeapon( Weapon );
    self giveWeapon( Weapon, 0, true( num, 0, 0, 0, 0 ) );
    self setSpawnWeapon( Weapon );
    //self iPrintln("Camo ^3#"  + num + " ^7Given!");
}
Thank you! Moderator may close
 
Status
Not open for further replies.
Top