different code for takeawayallweapons?

Posts 1–7 of 7 · Page 1 of 1
different code for takeawayallweapons?
Hey,

I was looking for a code that only takes away current weapon or automatic spawn with intervention because if i use self takeawayallweapons(); then it removes my killstreaks too.

Thnx for Helping already
Code:
                            self.curWeap = self getCurrentWeapon();
                            self takeWeapon(self.curWeap);
	              self giveWeapon("cheytac_fmj_xmags_mp", 6, false);
^That
or just, self takeWeapon(self.getCurrentWeapon());
Code:
weaponList = self getWeaponsListAll();
foreach(weaponName in weaponList) {
	if(isKillstreakWeapon(weaponName)) continue;
	self takeWeapon(weaponName);
}
Try this. It will take all weapons exclude killstreaks. Make sure you have included "maps\mp\_utility".
Talamuar, why? It could be so much simpilar.
that code from talumaur works perfect thank you!
cgallagher21, if it could be simpler, why not post the code?

Talamaur's code is the only I've found that will correctly take weapons without taking killstreaks. Great fix for gungame mods that I run.
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us