Results 1 to 10 of 12

Thread: Klllstreaks

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    It's your lucky day.

    Here you can download "improved" version of killstreak.


    Explanation:

    _killstreak.gsc file
    Code:
    AddStreak()
    {
    	player = self;
    	killstreak = player.stats["killstreak"];
    	switch(killstreak)
    	{
    		case 3:
    			iPrintLn(player.name + " ^7is on 3 killstreak!");
    			break;
    		case 5:
    			iPrintLn(player.name + " ^7is on 5 killstreak!");
    			break;
    	}
    }
    Inside tdm.gsc file

    in Callback_PlayerKilled(...) under or above attacker.score++
    Code:
    attacker.stats["killstreak"]++;
    attacker thread maps\mp\gametypes\_killstreak::AddStreak();
    in spawnPlayer()
    Code:
    self.stats = [];
    self.stats["killstreak"] = 0;
    Enjoy.
    Last edited by Jeplaa; 16th October 2013 at 13:58.

  2. The Following 5 Users Say Thank You to Jeplaa For This Useful Post:

    kung foo man (16th October 2013),Loveboy (16th October 2013),Rocky (17th October 2013),thOuMta (16th October 2013),YuriJurek (16th October 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •