View Full Version : Killstreak
Loveboy
7th November 2012, 15:41
Hello Guys
i want a Killstreak mod
- Killstreak 3 Nades
- killstreak 5 100 money
....
Please i need killstreak things!
Jeplaa
24th December 2012, 17:38
Sorry for late reply...
Ok try this:
open up your gametype.gsc
in Callback_PlayerConnect() add this:
self.streak = 0;
in Callback_PlayerKilled(...) under attacker.score++; add this:
attacker.streak++;
attacker streak();
and anywhere in gametype.gsc call this:
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. :)
IzNoGoD
24th December 2012, 19:25
You forgot self.killstreak = 0 on playerspawned/playerkilled... (whatever you prefer. both have their advantages)
Loveboy
24th December 2012, 21:28
Thank you. I will try it. Please add me in Xfire: 2call2of2duty2
Loveboy
24th December 2012, 22:07
:((( I ADDED all, but my server is now down and my server say not errors :(
Jeplaa
24th December 2012, 22:27
yep izno you are right, sorry my mistake. Need to add
self.streak = 0; when player is death to reset killstreak. :)
kung foo man
25th December 2012, 00:58
:((( I ADDED all, but my server is now down and my server say not errors :(
Start the server with: +set developer 1
Loveboy
25th December 2012, 10:42
No sorry, i forget a " on here: self iprintlnbold("You are on 3 Killstreak! You get 3 Nades!); but thank you all!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.