Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help give points for the deaths of bullets
#1
Heart 
hey hey, I have a question for you, is it possible to do that would be mended glasses for death? ie for example: I have infected 300 points is killing me and I survived 100 is added, so if the infected die from bullets 10 times, then 1000 points! is it possible? it will be useful code please give it to me in a short time, I want to make a video tutorial for RUSSIAN....
Reply

#2
....glasses for death..... o.o
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
(03-11-2013, 11:34)SailorMoon Wrote: ....glasses for death..... o.o

?
Reply

#4
Do a check onplayerkilled if MOD_X then give them Y points..
Note: You would need an else statement for deaths.
Like this from our QCZM:
Code:
if (attacker != null)
            {
                if (attacker.IsPlayer && attacker.IsAlive)
                {
                    if (attacker.GetField<string>("sessionteam") == "allies")
                    {
                        if (mod == "MOD_MELEE")
                        {
                            attacker.SetField("cash", attacker.GetField<int>("cash") + 200);
                            //attacker.Call("iprintlnbold", "Melee Kill! ^1+200");
                            doScorePopUp(attacker, "Melee Kill! ^1+{0}", 200);
                            attacker.SetField("round_playerkills", attacker.GetField<int>("round_playerkills") + 1);
                        }
                        else
                        {
                            attacker.SetField("cash", attacker.GetField<int>("cash") + 50);
                            //attacker.Call("iprintlnbold", "Killed Zombie. ^1+50");
                            doScorePopUp(attacker, "Killed Zombie. ^1+{0}", 50);
                            attacker.SetField("round_playerkills", attacker.GetField<int>("round_playerkills") + 1);
                        }
                        player.SetField("cash", player.GetField<int>("cash") + 50);
                        player.SetField("round_deaths", player.GetField<int>("round_deaths") + 1);
                        //player.Call("iprintlnbold", "Died! ^1+50");
                        doScorePopUp(player, "Died! ^1+{0}", 50);
                    }
                    else
                    {
                        attacker.SetField("cash", attacker.GetField<int>("cash") + 100);
                        //attacker.Call("iprintlnbold", "Killed Human! ^1+100");
                        doScorePopUp(attacker, "Killed Human! ^1+{0}", 100);
                        attacker.SetField("round_zomkills", attacker.GetField<int>("round_zomkills") + 1);
                        player.SetField("round_deaths", player.GetField<int>("round_deaths") + 1);
                    }
                }
            }
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#5
(03-11-2013, 17:05)DidUknowiPwn Wrote: Do a check onplayerkilled if MOD_X then give them Y points..
Note: You would need an else statement for deaths.
Like this from our QCZM:
Code:
if (attacker != null)
            {
                if (attacker.IsPlayer && attacker.IsAlive)
                {
                    if (attacker.GetField<string>("sessionteam") == "allies")
                    {
                        if (mod == "MOD_MELEE")
                        {
                            attacker.SetField("cash", attacker.GetField<int>("cash") + 200);
                            //attacker.Call("iprintlnbold", "Melee Kill! ^1+200");
                            doScorePopUp(attacker, "Melee Kill! ^1+{0}", 200);
                            attacker.SetField("round_playerkills", attacker.GetField<int>("round_playerkills") + 1);
                        }
                        else
                        {
                            attacker.SetField("cash", attacker.GetField<int>("cash") + 50);
                            //attacker.Call("iprintlnbold", "Killed Zombie. ^1+50");
                            doScorePopUp(attacker, "Killed Zombie. ^1+{0}", 50);
                            attacker.SetField("round_playerkills", attacker.GetField<int>("round_playerkills") + 1);
                        }
                        player.SetField("cash", player.GetField<int>("cash") + 50);
                        player.SetField("round_deaths", player.GetField<int>("round_deaths") + 1);
                        //player.Call("iprintlnbold", "Died! ^1+50");
                        doScorePopUp(player, "Died! ^1+{0}", 50);
                    }
                    else
                    {
                        attacker.SetField("cash", attacker.GetField<int>("cash") + 100);
                        //attacker.Call("iprintlnbold", "Killed Human! ^1+100");
                        doScorePopUp(attacker, "Killed Human! ^1+{0}", 100);
                        attacker.SetField("round_zomkills", attacker.GetField<int>("round_zomkills") + 1);
                        player.SetField("round_deaths", player.GetField<int>("round_deaths") + 1);
                    }
                }
            }

QCZM-its?
Reply

#6
(03-11-2013, 17:09)Jone Calerone Wrote:
(03-11-2013, 17:05)DidUknowiPwn Wrote: Do a check onplayerkilled if MOD_X then give them Y points..
Note: You would need an else statement for deaths.
Like this from our QCZM:
Code:
if (attacker != null)
            {
                if (attacker.IsPlayer && attacker.IsAlive)
                {
                    if (attacker.GetField<string>("sessionteam") == "allies")
                    {
                        if (mod == "MOD_MELEE")
                        {
                            attacker.SetField("cash", attacker.GetField<int>("cash") + 200);
                            //attacker.Call("iprintlnbold", "Melee Kill! ^1+200");
                            doScorePopUp(attacker, "Melee Kill! ^1+{0}", 200);
                            attacker.SetField("round_playerkills", attacker.GetField<int>("round_playerkills") + 1);
                        }
                        else
                        {
                            attacker.SetField("cash", attacker.GetField<int>("cash") + 50);
                            //attacker.Call("iprintlnbold", "Killed Zombie. ^1+50");
                            doScorePopUp(attacker, "Killed Zombie. ^1+{0}", 50);
                            attacker.SetField("round_playerkills", attacker.GetField<int>("round_playerkills") + 1);
                        }
                        player.SetField("cash", player.GetField<int>("cash") + 50);
                        player.SetField("round_deaths", player.GetField<int>("round_deaths") + 1);
                        //player.Call("iprintlnbold", "Died! ^1+50");
                        doScorePopUp(player, "Died! ^1+{0}", 50);
                    }
                    else
                    {
                        attacker.SetField("cash", attacker.GetField<int>("cash") + 100);
                        //attacker.Call("iprintlnbold", "Killed Human! ^1+100");
                        doScorePopUp(attacker, "Killed Human! ^1+{0}", 100);
                        attacker.SetField("round_zomkills", attacker.GetField<int>("round_zomkills") + 1);
                        player.SetField("round_deaths", player.GetField<int>("round_deaths") + 1);
                    }
                }
            }

QCZM-its?
Mine and @apadayo 's version of QCZM for MW3 (non-steam)
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#7
go itsmods.ru
Reply

#8
(03-11-2013, 17:11)DidUknowiPwn Wrote:
(03-11-2013, 17:09)Jone Calerone Wrote:
(03-11-2013, 17:05)DidUknowiPwn Wrote: Do a check onplayerkilled if MOD_X then give them Y points..
Note: You would need an else statement for deaths.
Like this from our QCZM:
Code:
if (attacker != null)
            {
                if (attacker.IsPlayer && attacker.IsAlive)
                {
                    if (attacker.GetField<string>("sessionteam") == "allies")
                    {
                        if (mod == "MOD_MELEE")
                        {
                            attacker.SetField("cash", attacker.GetField<int>("cash") + 200);
                            //attacker.Call("iprintlnbold", "Melee Kill! ^1+200");
                            doScorePopUp(attacker, "Melee Kill! ^1+{0}", 200);
                            attacker.SetField("round_playerkills", attacker.GetField<int>("round_playerkills") + 1);
                        }
                        else
                        {
                            attacker.SetField("cash", attacker.GetField<int>("cash") + 50);
                            //attacker.Call("iprintlnbold", "Killed Zombie. ^1+50");
                            doScorePopUp(attacker, "Killed Zombie. ^1+{0}", 50);
                            attacker.SetField("round_playerkills", attacker.GetField<int>("round_playerkills") + 1);
                        }
                        player.SetField("cash", player.GetField<int>("cash") + 50);
                        player.SetField("round_deaths", player.GetField<int>("round_deaths") + 1);
                        //player.Call("iprintlnbold", "Died! ^1+50");
                        doScorePopUp(player, "Died! ^1+{0}", 50);
                    }
                    else
                    {
                        attacker.SetField("cash", attacker.GetField<int>("cash") + 100);
                        //attacker.Call("iprintlnbold", "Killed Human! ^1+100");
                        doScorePopUp(attacker, "Killed Human! ^1+{0}", 100);
                        attacker.SetField("round_zomkills", attacker.GetField<int>("round_zomkills") + 1);
                        player.SetField("round_deaths", player.GetField<int>("round_deaths") + 1);
                    }
                }
            }

QCZM-its?
Mine and @apadayo 's version of QCZM for MW3 (non-steam)
its 4D1?-oh no sry
Reply

#9
Well obv you have to rewrite, but I'm just saying you can make it like that. It's an example...
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#10
@dukip 4d1 code and addon code are two different things.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Health and Points on hud source robinvm 7 5,590 10-27-2013, 08:23
Last Post: robinvm
  Help Make ac130 shoot custom bullets Ra3shed 0 2,728 07-23-2013, 13:02
Last Post: Ra3shed
  Help DONATE points for weapons [HARD] Tony. 10 7,449 05-24-2013, 10:59
Last Post: Pozzuh
  Help Explosive Bullets Wallbang yoloman 3 5,038 05-13-2013, 21:58
Last Post: Yamato
  [Request] !shop hud to show player with highest points hillbilly 3 3,260 02-21-2013, 16:46
Last Post: hillbilly
  [Request] Explosive bullets toggle mod One90NL 3 3,399 01-23-2013, 18:47
Last Post: surtek
  Help Mw3 Shop with points + Database 99IRock 2 3,149 12-09-2012, 22:21
Last Post: 99IRock
  Give Gun Error [SOLVED] koro35 4 3,882 11-17-2012, 15:15
Last Post: koro35
  [Request] Give KillStreak yuri8597 1 2,468 10-29-2012, 01:31
Last Post: DidUknowiPwn
  never gonna give you up - rick astley at its best! d0h! 65 97,889 10-22-2012, 23:10
Last Post: Arteq

Forum Jump:


Users browsing this thread:
5 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.