[SOLVED] Remove equipment without using Takeallweapon()

Posts 1–3 of 3 · Page 1 of 1
[SOLVED] Remove equipment without using Takeallweapon()
Is it possible?
I need it for the GunGame.

If Takeallweapon() is used, killstreaks can not be activated.
Also, things like giveWeapon(flashbang); and setting ammo to 0, (for example) does not work.
From roll the dice v3 (this mod has everything)

[php]
self takeWeapon(self GetOffhandSecondaryClass() +"_grenade_mp"); // This will take smokes and flashes
self SetOffhandSecondaryClass( "smoke" ); // This doesnt GIVE a smoke, it allows you to give other special grenades
self giveWeapon("concussion_grenade_mp"); // This gives you a stun
self setWeaponAmmoClip("concussion_grenade_mp", 2);
[/php]

If you want it to remove stun grenades too:

[php]
self takeWeapon(self GetOffhandSecondaryClass() +"_grenade_mp");
self takeWeapon("concussion_grenade_mp");

self SetOffhandSecondaryClass( "smoke" );
self giveWeapon("concussion_grenade_mp"); // Optional
self setWeaponAmmoClip("concussion_grenade_mp", 2); //
[/php]
/Marked as Solved
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us