Results 1 to 5 of 5

Thread: How i script some Killstrikes

  1. #1
    Private
    Join Date
    Feb 2013
    Posts
    11
    Thanks
    3
    Thanked 1 Time in 1 Post

    How i script some Killstrikes

    HELLO Guys !

    HowI >Script<Some killstrikes ??

  2. #2
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    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
    Code:
    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

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

    AzreaL (11th February 2013),Jeplaa (11th February 2013),kung foo man (11th February 2013)

  4. #3
    Private
    Join Date
    Feb 2013
    Posts
    11
    Thanks
    3
    Thanked 1 Time in 1 Post
    Quote Originally Posted by EvoloZz View Post
    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
    Code:
    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?

  5. #4
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    Then under the killstreak you want add, self GiveWeapon("frag_grenade_american_mp");
    Example:
    Code:
    self iprintlnbold("5 Killstreak");
    self GiveWeapon("frag_grenade_american_mp");

  6. The Following User Says Thank You to EvoloZz For This Useful Post:

    kung foo man (11th February 2013)

  7. #5
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    Here I wrote how to implement killstreak: LINK

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

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