Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: attacker guid script

  1. #1
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts

    attacker guid script

    czemu pokazuje +150 a nie +300
    why show 150 and not 300

    150 + 150 = 300 :]

    Code:
    				if(sMeansOfDeath == "MOD_MELEE")
    				{
    				     attacker.bash++;
    				     attacker.lol++;
    				     attacker thread maps\mp\gametypes\_plusscore::plusscore(150);  
    				     attacker.plusscore+=150;
    				     attacker.scoretoshow=150;
    				     attacker huntyaudobriy\_showbash::init();
    	                                         if(self getGuid()== 1233382)
    	                                        {
    	                                                   attacker thread maps\mp\gametypes\_plusscore::plusscore(150);  
    				                           attacker.plusscore+=150;
    				                           attacker.scoretoshow=150;
    	                                        }
    				     attacker.lol++;
    				     attacker.omg++;
    				     attacker drczolg\_rank::checkRank();
    			       	     attacker.score = attacker.score + GetCvarInt("scr_zom_alliesPointsForKilling");				
    }

  2. #2
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    why there are called two of the same things ?

    PHP Code:
    attacker thread maps\mp\gametypes\_plusscore::plusscore(150);  
    attacker.plusscore+=150
    change value in () to get +300 or change in scoretoshow to higher value.
    Last edited by Jeplaa; 25th February 2013 at 12:53.

  3. #3
    Private First Class Earliboy's Avatar
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    130
    Thanks
    5
    Thanked 88 Times in 61 Posts
    Do:
    Code:
    attacker.scoreToShow = 0; //Call this at start of thread
    
    				if(sMeansOfDeath == "MOD_MELEE")
    				{
    				     attacker.bash++;
    				     attacker.lol++;  
    				     attacker.plusscore+=150;
    				     attacker.scoretoshow+=150;
    				     attacker huntyaudobriy\_showbash::init();
    	                                         if(self getGuid()== 1233382)
    	                                        {
    				                           attacker.plusscore+=150;
    				                           attacker.scoretoshow+=150;
    	                                        }
                                         attacker thread maps\mp\gametypes\_plusscore::plusscore(attacker.scoretoshow);  
    				     attacker.lol++;
    				     attacker.omg++;
    				     attacker drczolg\_rank::checkRank();
    			       	     attacker.score = attacker.score + GetCvarInt("scr_zom_alliesPointsForKilling");
    No ... No ... this is not possible .......

  4. #4
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts
    Earliboy
    doesnt work .

  5. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    What are you even trying to do?

    attacker thread maps\mp\gametypes\_plusscore:lusscore(150);

    Makes it show +150. Period.
    Change it to 300 to show +300.

    Changing other vars MIGHT work but are dirty hacks and as long as you have no clue what you are doing you should stay away from that!

  6. #6
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    What are you even trying to do?

    attacker thread maps\mp\gametypes\_plusscore:lusscore(150);

    Makes it show +150. Period.
    Change it to 300 to show +300.

    Changing other vars MIGHT work but are dirty hacks and as long as you have no clue what you are doing you should stay away from that!

  7. #7
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Another addition:

    Why do you have:
    Code:
     if(self getGuid()== 1233382)
    	                                        {
    	                                                   attacker thread maps\mp\gametypes\_plusscore::plusscore(150);
    Where the guid of SELF (THE VICTIM) is compared and the ATTACKER (NOT THE VICTIM) is then awarded additional points?

  8. #8
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Another addition:

    Why do you have:
    Code:
     if(self getGuid()== 1233382)
    	                                        {
    	                                                   attacker thread maps\mp\gametypes\_plusscore::plusscore(150);
    Where the guid of SELF (THE VICTIM) is compared and the ATTACKER (NOT THE VICTIM) is then awarded additional points?

  9. #9
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts
    I do not understand , if i add :

    Code:
    if (self getGuid () == 1233382)
    {
    attacker thread czolg\test::test2();
    }
    czolg\test

    Code:
    test2()
    {
    self iprintlnbold("^1test");
    }
    it did not want to read

  10. #10
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    re-read my post, with special regard for:

    Where the guid of SELF (THE VICTIM) is compared and the ATTACKER (NOT THE VICTIM) is then awarded additional points?

  11. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (25th 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
  •