NB: I didn't make the code ( Credits below )
Code here:
Make an new GSC file in folder with the _rank.gsc , call the new named file:Code:#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\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 1:
self notify("newstreak");
//You add the action here...
break;
case 2:
self notify("newstreak");
//You add the action here...
break;
}
}
wait 0.05;
}
}
In the doDvars or OnPlayerSpawnedQuote:
_mykillstreaks.gsc
Add this:
This makes the main file get "info" from another file.Quote:
self thread maps\mp\gametypes\_mykillstreaks::doKillstreaks();
So this is it, hope its helpful.
Credits:
Quote:
H4RDC0R3
Rowan
Me for Show you