Results 1 to 8 of 8

Thread: Killstreak

  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    Killstreak

    Hello Guys

    i want a Killstreak mod
    - Killstreak 3 Nades
    - killstreak 5 100 money
    ....

    Please i need killstreak things!

  2. #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.

  3. 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)

  4. #3
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    You forgot self.killstreak = 0 on playerspawned/playerkilled... (whatever you prefer. both have their advantages)

  5. The Following 3 Users Say Thank You to IzNoGoD For This Useful Post:

    Jeplaa (25th December 2012),kung foo man (24th December 2012),Loveboy (25th December 2012)

  6. #4
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    Thank you. I will try it. Please add me in Xfire: 2call2of2duty2

  7. #5
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    (( I ADDED all, but my server is now down and my server say not errors

  8. #6
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    yep izno you are right, sorry my mistake. Need to add
    Code:
    self.streak = 0;
    when player is death to reset killstreak.

  9. The Following User Says Thank You to Jeplaa For This Useful Post:

    Loveboy (25th December 2012)

  10. #7
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Quote Originally Posted by Loveboy View Post
    (( I ADDED all, but my server is now down and my server say not errors
    Start the server with: +set developer 1
    timescale 0.01

  11. The Following User Says Thank You to kung foo man For This Useful Post:

    Loveboy (25th December 2012)

  12. #8
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    No sorry, i forget a " on here: self iprintlnbold("You are on 3 Killstreak! You get 3 Nades!); but thank you all!

Posting Permissions

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