What's new

Discussion [RELEASE] Increase Stats In System Link

  • Thread starter R1ch4rd
  • Start date
  • Views 4,107
R1ch4rd

R1ch4rd

Like a baaaws
Messages
396
Reaction score
62
Points
85
Sin$
0
Code:
incStatsSL(Stat, Amount)
{
CurrentStat = self getPlayerData(Stat);
i = (CurrentStat + Amount);
self setPlayerData(Stat, i );
}

Works by setting i as the current data, then adding whatever you want onto it, and using setPlayerData to set both added together as the score/kills/wins.

This has been tested by me, and works 100%.

Eg:
Code:
incStatsSL("score", 100000);

Enjoy!
 
R1ch4rd

R1ch4rd

Like a baaaws
Messages
396
Reaction score
62
Points
85
Sin$
0
^ Use ^
Code:
self.timePlayed["other"] = 172800;
The 172800 is seconds, so to add one day set it *** 86400.
 
Dwack

Dwack

Now employed at Dominoes!
Experienced Veteran Hardened Veteran
Messages
4,551
Reaction score
2,949
Points
685
Sin$
0
Last time I checked Days Played does not work in SystemLink
 
xXMockeyXx

xXMockeyXx

Enthusiast
Messages
836
Reaction score
77
Points
95
Sin$
7
If this works. Wouldn't this also work with a player's prestige or rank?
 
Cliche 7S

Cliche 7S

Enthusiast
Messages
525
Reaction score
28
Points
95
Sin$
0
Nice maybe i can give this to a free sys link and even lower my chances of being banned
 
R1ch4rd

R1ch4rd

Like a baaaws
Messages
396
Reaction score
62
Points
85
Sin$
0
Last time I checked Days Played does not work in SystemLink

I thought it did. If it doesn't, my bad.

If this works. Wouldn't this also work with a player's prestige or rank?

Rank already works in System Link.
Code:
self setPlayerData( "experience" , 2516000 );
I think you have to be host to get the Prestige mod working, but I'm not sure.

Nice maybe i can give this to a free sys link and even lower my chances of being banned
:smile:
 
R1ch4rd

R1ch4rd

Like a baaaws
Messages
396
Reaction score
62
Points
85
Sin$
0
Yes I Tried it :|(

Would you please give a working syntax

+

Code:
   self.timePlayed["other"] = 60*60*24*20;
Is this working ??

Does it or does it not work in System Link.

Also
Code:
   self.timePlayed["other"] = 1728000;
 
Top Bottom
Login
Register