I don't know.
Code: Select all
onPlayerSpawned()
{
   for(;;)
   {
      self waittill("spawned_player");
      self thread monitorKills();
   }
}
onPlayerConnect()
{
   for(;;)
   {
      level waittill("connected", player);
      player thread onPlayerSpawned();
   }
}
monitorKills()
{
   self endon("disconnect");
   self endon("killed_player");
   self endon("joined_spectators");
   
   streak = 0;
   before = self.kills;
	IPrintLnBold( "^1TEST" );   
   for(;;)
   {
      current = self.kills;
      while(current == self.kills)
         wait 0.05;
      
      streak = self.kills - before;
      
      if((streak % 5) == 0)
         iprintln( &"RANK_KILL_STREAK_N", self, streak);
	IPrintLnBold( "^6Kill Streak" );
   }
}It doesn't say how many kills you have. I went to 13 kills in a row but no killstreak message.
This message:
^6Kill Streak
Sometimes pops up. It looks like the player that has connected the first cant trigger the ^6Kill Streak message. So that is a bit strange.
Do I have to run this script as an player or lever thread?


