Killstreak mod help
Hi guys! I am making a custom mod for my clan, and i have encountered problems with this piece of code, that is supposed to give you killstreaks. Basically, when i add it into the gsc, and running using self thread, aiw gives me syntax errors when trying to test run it in private match. Can You guys try to tell me where the mistake sits? The code is
I promise to realease the mod if i get it to work.
Code:
#include maps\mp\_utility;
doKillstreaks()
{
self endon ("death");
self.startscore = self.pers["kills"];
while(1) {
if(self.killcount != self.pers["kills"] - self.startscore) {
self.killcount = self.pers["kills"] - self.startscore;
switch(self.killcount)
{
case 2:
self notify("newstreak");
currentWeapon = self getCurrentWeapon();
if ( currentWeapon == "mp_deserteagle" )
{
self setWeaponAmmoClip( currentWeapon, 3 );
}
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand == "mp_deserteagle" )
{
self setWeaponAmmoClip( currentoffhand, 3 );
}
break;
}
}
wait 0.05;
}
}

)