Results 1 to 8 of 8

Thread: Killstreak

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    Sorry for late reply...
    Ok try this:

    open up your gametype.gsc

    in Callback_PlayerConnect() add this:
    Code:
    self.streak = 0;
    in Callback_PlayerKilled(...) under attacker.score++; add this:
    Code:
    attacker.streak++;
    attacker streak();
    and anywhere in gametype.gsc call this:

    Code:
    streak()
    {
    	streak = self.streak;
    	switch(streak)
    	{
    	case 3:
    		iprintln(self.name+" ^7is on 3 killstreak!");
                    self takeWeapon("frag_grenade_german_mp");
    		self giveWeapon("frag_grenade_german_mp");
    		self setWeaponClipAmmo("frag_grenade_german_mp", 3);
    		break;
    	case 5:
    		iprintln(self.name+" ^7is on 5 killstreak!");
                    self.money += 100;      //change it to your value...
    		break;
    	}
    }
    I hope everything is clear... if not, write and I will try to explain it.
    Last edited by Jeplaa; 24th December 2012 at 16:42.

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

    EvoloZz (11th February 2013),kung foo man (24th December 2012),Loveboy (25th December 2012),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
  •