PDA

View Full Version : How i script some Killstrikes



AzreaL
11th February 2013, 19:17
HELLO Guys ! :D

HowI >Script<Some killstrikes ??

EvoloZz
11th February 2013, 19:24
What kind of killstreaks do you want? For example to track killstreak and reset it on every death, use something like this:
find callback_playerconnect and defined that self.streak = 0;
then in callback_playerkilled find attacker.score++; and under it add attacker.streak = 0; and attacker streak();
then in spawnPlayer(); add self.streak = 0;
then add somewhere

streak()
{
if(self.streak == 3)
self iprintlnbold("3 Killstreak!");

if(self.streak == 5)
self iprintlnbold("5 Killstreak!");
}
And then add whatever rewards you want for every killstreak

AzreaL
11th February 2013, 19:26
What kind of killstreaks do you want? For example to track killstreak and reset it on every death, use something like this:
find callback_playerconnect and defined that self.streak = 0;
then in callback_playerkilled find attacker.score++; and under it add attacker.streak = 0; and attacker streak();
then in spawnPlayer(); add self.streak = 0;
then add somewhere

streak()
{
if(self.streak == 3)
self iprintlnbold("3 Killstreak!");

if(self.streak == 5)
self iprintlnbold("5 Killstreak!");
}
And then add whatever rewards you want for every killstreak



I Dont understand but i wont nades can u give me the script?

EvoloZz
11th February 2013, 19:38
Then under the killstreak you want add, self GiveWeapon("frag_grenade_american_mp");
Example:

self iprintlnbold("5 Killstreak");
self GiveWeapon("frag_grenade_american_mp");

Jeplaa
11th February 2013, 19:55
Here I wrote how to implement killstreak: LINK (http://killtube.org/showthread.php?950-Killstreak)