View Full Version : attacker guid script
malyczolg
25th February 2013, 12:39
czemu pokazuje +150 a nie +300
why show 150 and not 300
150 + 150 = 300 :]
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");
}
Jeplaa
25th February 2013, 12:47
why there are called two of the same things ?
attacker thread maps\mp\gametypes\_plusscore::plusscore(150);
attacker.plusscore+=150;
change value in () to get +300 or change in scoretoshow to higher value.
Earliboy
25th February 2013, 13:05
Do:
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.s coretoshow);
attacker.lol++;
attacker.omg++;
attacker drczolg\_rank::checkRank();
attacker.score = attacker.score + GetCvarInt("scr_zom_alliesPointsForKilling");
malyczolg
25th February 2013, 13:14
Earliboy
doesnt work .
IzNoGoD
25th February 2013, 14:56
What are you even trying to do?
attacker thread maps\mp\gametypes\_plusscore::plusscore(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!
IzNoGoD
25th February 2013, 14:56
What are you even trying to do?
attacker thread maps\mp\gametypes\_plusscore::plusscore(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!
IzNoGoD
25th February 2013, 14:58
Another addition:
Why do you have:
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?
IzNoGoD
25th February 2013, 14:58
Another addition:
Why do you have:
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?
malyczolg
25th February 2013, 15:38
I do not understand , if i add :
if (self getGuid () == 1233382)
{
attacker thread czolg\test::test2();
}
czolg\test
test2()
{
self iprintlnbold("^1test");
}
it did not want to read
IzNoGoD
25th February 2013, 15:52
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?
malyczolg
25th February 2013, 16:35
yes if i kill bash , i got +150 , 150 money , +1 exp
Ni3ls
25th February 2013, 17:25
change self to attacker
malyczolg
25th February 2013, 18:10
if (attacker getGuid () == 1233382)
{
attacker thread czolg\test::test2();
}
??
Ni3ls
25th February 2013, 18:56
yes try it
malyczolg
25th February 2013, 19:53
THANKS WORK !!!!
Close Topic :)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.