Results 1 to 11 of 11
  1. #1
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh

    [Solved]Kills Counter

    hello guys!

    i need a Kill Counter to add to a function....../yea
    Please can you tell me what to use?

  2. #2
    Yaxxo's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Cheerful
    I advice you to look into the Gungame, i know that gungame works with levelling up when the xp for getting a kill is gained, i don't know more

  3. #3
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Well, i already look at that, and did not find anything!!!

  4. #4
    ch40s's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    6
    Its in my gungame, which ill release later ...
    anyways

    just do something like
    Code:
    self waittill("killed_enemy");
    self.killcounter+= 1
    otherwise you could look into the damage.gsc and add
    Code:
    attacker.killcounter += 1;
    in the "Callback_PlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration )" function

    also, there is a predefined variable called "kills" for every player ( e.g use self.kills)
    Last edited by ch40s; 10-09-2010 at 12:34 PM.

  5. #5
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Quote Originally Posted by ch40s View Post
    Its in my gungame, which ill release later ...
    anyways

    just do something like
    Code:
    self waittill("killed_enemy");
    self.killcounter+= 1
    otherwise you could look into the damage.gsc and add
    Code:
    attacker.killcounter += 1;
    in the "Callback_PlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration )" function

    also, there is a predefined variable called "kills" for every player ( e.g use self.kills)
    so if i do:
    Code:
    if(self.kills == 0){
        self iPrintIn("You have got '0' kills!");
      }
    it will work?

    OMG, thanks!

  6. #6
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    138
    My Mood
    Aggressive
    just do
    Code:
    self iPrintLn("You have got '" + self.kills +"' kills!");
    And yeah the kill counter is
    Code:
    self waittill("killed_enemy");
    [YOUTUBE]Ja7-WnJcMcs[/YOUTUBE]

  7. #7
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Well, now i want to do this:
    Code:
    self waittill("killed_enemy");
    kl = self.kills;
    kl += 1;
    if(kl > 10){
     self giveWeapon("ak47_mp", 0);
    }
    so now?
    will tihs give me an AK-47 if i get more then 10 kills.?

  8. #8
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    Well yea, that would give AK47, but why not just use self.pers["kills"]?

  9. #9
    rkaf's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    OPEN RIGHT NOW!! <--- ADD MPGHRKAF
    Posts
    748
    Reputation
    73
    Thanks
    1,633
    My Mood
    Yeehaw
    Quote Originally Posted by AcE.bu50t View Post
    Well, now i want to do this:
    Code:
    self waittill("killed_enemy");
    kl = self.kills;
    kl += 1;
    if(kl > 10){
     self giveWeapon("ak47_mp", 0);
    }
    so now?
    will tihs give me an AK-47 if i get more then 10 kills.?

    use this instead of a message, it doesnt disappear and u can pick positions / change color

    Code:
    Yourinfo()
    {
            self endon("death");
            Message3 = NewClientHudElem( self );
            Message3.alignX = "left"; // Position X
            Message3.alignY = "bottom"; // Position Y
            Message3.horzAlign = "center"; // Position Horizontal
            Message3.vertAlign = "bottom"; // Position Vertical
            Message3.foreground = true; // always on top
            Message3.fontScale = 1;  //size of text
            Message3.font = "hudbig"; // Dont change
            Message3.alpha = 1; // idk must be something shitty
            Message3.glow = 1; // glow probally 
            Message3.glowColor = ( 0 , 0, 0 );
            Message3.glowAlpha = 1;
            self thread deleteondeath1(Message3);
            Message3.color = ( 0.0, 0.0, 0.0 );
            for(;;)
            {               
                    Message3 settext("txt here " );
                    wait 0.05;
            }
    }
    
    deleteondeath1(Message3)
    {
            self waittill("death");
            Message3 destroy();
    }
    Last edited by rkaf; 10-09-2010 at 01:19 PM.

  10. #10
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    well thanks for all!

  11. #11
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    /marked as solved



Similar Threads

  1. [Solved] kill marK
    By anax1 in forum CrossFire Help
    Replies: 3
    Last Post: 03-26-2011, 01:50 PM
  2. [Release] Stats bar & kill counter
    By xChocolatex in forum Call of Duty Modern Warfare 2 Private Servers
    Replies: 28
    Last Post: 02-16-2011, 09:51 AM
  3. [Help] [SOLVED] kill bandage
    By asdkill2 in forum CrossFire Mods & Rez Modding
    Replies: 7
    Last Post: 02-04-2011, 09:31 PM
  4. [Solved] Stats bar & kill counter
    By aIW|SmokeScreen in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 01-17-2011, 03:13 AM
  5. (SOLVED)Kill Sounds
    By catalinh in forum CrossFire Help
    Replies: 2
    Last Post: 11-03-2010, 03:43 PM