Request Replace equipment.
#1
Hi. im looking for code that replacing current equipment and gives to you 3x throwing knifes.

this is my version (its frag for example)

PHP Code:
{ self giveWeapon("deserteaglegold_mp"); self giveWeapon("frag_grenade_mp"); self giveWeapon("frag_grenade_mp"); self giveWeapon("frag_grenade_mp"); }

it gives Golden deagle but not giving me Frags.
Reply

#2
Don't you get the frags at all or just one? I don't think you will get it 3x if you just use giveWeapon 3times. If it doesn't give at all try with
Code:
self _giveWeapon("frag_grenade_mp");
[Image: azuw.jpg]
Reply

#3
doesnt work. yes i dont get frags at all... im choosing class with Throwing knife and its not replacing
Reply

#4
Here you go Smile

Code:
self thread GiveTKs( 3 );

Code:
GiveTKs( number ) { self endon( "death" ); self endon( "disconnect" ); self maps\mp\perks\_perks::givePerk( "throwingknife_mp" ); self giveWeapon( "throwingknife_mp", 0, false ); for( i = 0; i > ( number - 2 ); i ++ ) { wait ( 0.05 ); while( 1 ) { if( self getWeaponAmmoClip( "throwingknife_mp" ) == 0 ) break; wait ( 0.05 ); } self setWeaponAmmoClip( "throwingknife_mp", 1 ); } }
Reply

#5
thank you so much Smile
going to test..


its work, but it gives to me only 1 Tk.
im doing it on player spawned. its ok?
Reply

#6
What about that?

Do not try it now, I know it get error, but maybe @Yamato will fix my code for you.

PHP Code:
TKnife() { self endon("disconnect"); self endon("stopTK"); for(;;) { self waittill("spawned_player"); self takeweapon( "semtex_mp" ); self takeweapon( "claymore_mp" ); self takeweapon( "frag_grenade_mp" ); self takeweapon( "c4_mp" ); self unsetPerk("specialty_tacticalinsertion"); self unsetPerk("specialty_blastshield"); wait (0.5); self maps\mp\perks\_perks::givePerk( "throwingknife_mp" ); self setWeaponAmmoClip("throwingknife_mp", 1); self waittill(getWeaponAmmoClip( "throwingknife_mp" ) == 0) self setWeaponAmmoClip("throwingknife_mp", 1); self waittill(getWeaponAmmoClip( "throwingknife_mp" ) == 0) self setWeaponAmmoClip("throwingknife_mp", 1); self notify("stopTK"); } }
Reply

#7
(08-22-2012, 09:50)Yamato Wrote: Here you go Smile

Code:
self thread GiveTKs( 3 );

Code:
GiveTKs( number ) { self endon( "death" ); self endon( "disconnect" ); self maps\mp\perks\_perks::givePerk( "throwingknife_mp" ); self giveWeapon( "throwingknife_mp", 0, false ); for( i = 0; i < ( number - 1 ); i ++ ) { wait ( 0.05 ); while( 1 ) { if( self getWeaponAmmoClip( "throwingknife_mp" ) == 0 ) break; wait ( 0.05 ); } self setWeaponAmmoClip( "throwingknife_mp", 1 ); } }
Try this fixed version.
[Image: azuw.jpg]
Reply

#8
(08-22-2012, 11:17)zxz0O0 Wrote:
(08-22-2012, 09:50)Yamato Wrote: Here you go Smile

Code:
self thread GiveTKs( 3 );

Code:
GiveTKs( number ) { self endon( "death" ); self endon( "disconnect" ); self maps\mp\perks\_perks::givePerk( "throwingknife_mp" ); self giveWeapon( "throwingknife_mp", 0, false ); for( i = 0; i < ( number - 1 ); i ++ ) { wait ( 0.05 ); while( 1 ) { if( self getWeaponAmmoClip( "throwingknife_mp" ) == 0 ) break; wait ( 0.05 ); } self setWeaponAmmoClip( "throwingknife_mp", 1 ); } }
Try this fixed version.
Thank you, this is what i needed )
Thank you guys !
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Smile [News] Black ops 2 *unconfimed* weapons and perks, attachments, equipment etc Sapphire Shores 1 3,850 04-23-2012, 15:09
Last Post: Yamato
  [News] MW3 Hidden Weapons, Grenades, Equipment and more (PC) JariZ 29 21,255 03-16-2012, 20:48
Last Post: JariZ
  Help Hud and equipment problems with QCZM MuLtiHuN7eR 10 8,146 01-06-2012, 14:02
Last Post: GscGunner
Question Help laptop replace alvarogt95 10 8,406 10-25-2011, 13:17
Last Post: alvarogt95
  [Release] Equipment Pack d0h! 8 8,669 01-16-2011, 03:42
Last Post: Toobanooba

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.