Variable for Player

Started by MentisMora on Fri, 09/23/2016 - 13:33

Topic category: Advanced modding

Last seen on 21:12, 21. Oct 2016
Joined Sep 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Variable for Player
Fri, 09/23/2016 - 13:36 (edited)

Hello,

i want programming a mod where all player on Server have a own variable in my Mod for Money. I dont know really in what way ich can do this. Any can give me a solution ? I dont need Code. Only TUtorials or something else. Or a solution in the way how i can use json data or txt data to read and write the money.

Edited by MentisMora on Fri, 09/23/2016 - 13:36
Last seen on 04:30, 7. Oct 2016
Joined Sep 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
You could A: make currency an
Fri, 09/23/2016 - 14:13

You could A: make currency an item, where they'd have to trade it for goods, or B: make each player their own number.

Last seen on 04:30, 7. Oct 2016
Joined Sep 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
OR, player # = 1
Fri, 09/23/2016 - 14:14

OR, player # = 1

player#.last = player #

player#.last + 1 = player#

when a player joins the server