Home   Help Search Login Register  

Author Topic: A money script?  (Read 631 times)

0 Members and 1 Guest are viewing this topic.

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
A money script?
« on: 27 Jan 2005, 23:33:21 »
Hi!

Guys you gotta help me. I wanna know how to make a money system in OFP. I want the player to be able to earn and spend money. Let's say he gets 40$ and then spends 20$. He should then have 20$ left. Simple as that.
Weeee...

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:A money script?
« Reply #1 on: 28 Jan 2005, 01:21:29 »
This has been done, more than once.    Use the forum search function and see what you can find.
Plenty of reviewed ArmA missions for you to play

Serial Killer

  • Guest
Re:A money script?
« Reply #2 on: 29 Jan 2005, 10:31:20 »
I asked this a month ago.. You should find it!

HuNtA

  • Guest
Re:A money script?
« Reply #3 on: 29 Jan 2005, 12:56:08 »
hehe... Ill jus give a quick solution here (not to encourage not searching)

in init.sqs

Code: [Select]
man1money = 100
change 100 with whatever money I want em to have

then, in a buy script, put this somewhere

Code: [Select]
man1money = man1money -40change 40 with whatever price


If U wanna check the money, try this (untested)

man sidechat format ["I have %1 in my pocket",man1money]

email me if U want anymore help (davePAKAPali@hotmail.com
« Last Edit: 29 Jan 2005, 12:57:30 by HuNtA »

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:A money script?
« Reply #4 on: 30 Jan 2005, 12:08:30 »
Cool, thanks. I have searched and searched but I couldn't find anything. I'll try that stuff. Thanks.
Weeee...