❓ Clay and Flash per kill

Posts 1–2 of 2 · Page 1 of 1
❓ Clay and Flash per kill
I wanted to give every player a claymore and 2 flash grenades when they kill someone. Atm i have this buggy code that doesnt work so well, since it has influence on the scores:

Code:
if(self.kills >= 1){
                self.killDecrease = 1;
                self.currentK = self.kills;
                self.kills = self.currentK-self.killDecrease;
                self.pers["kills"] = self.kills;
                self giveWeapon("claymore_mp", 0, false);
                self giveWeapon("flash_grenade_mp", 0, false);
I tried to change the code so it would not have influence on the scores, but it would restore my clay and flashs constantly as soon as i killed someone. Any help ?
I integratet it in Quarantines buymenu, but if someone gets that perk he/she doesnt receive cash anymore, besides with an assist. But the zombies dont get cash if the get killed by the person with the perk. Furthermore it messes up the whole scores...
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us