Posts: 370
Threads: 21
Joined: Jun 2009
Reputation:
0
Hmm, I'm pretty sure this is possible, but you are going to have to go into specifics of how you want it to work before I can actually help you get started.
For instance, does a player(The one who will be recieving the payment) have to be standing near a pay n spray, does he or she have to have something on them? Is there going to be a gate at the pay n spray so only those people who have a 'key' can open it? Be specific, I like your idea so far though.
Posts: 8
Threads: 1
Joined: Feb 2010
Reputation:
0
actually my idea is preaty simple.
make a business somewhere, and if a player visits the pay and spray (around SA) it costs 100 (like normal) and the biz funds get +100.
works like the /houseupgrade system does, get players money and send it to the business.
only I don't know how to make it that the $100 from the pay and spray go to a business.
Posts: 8
Threads: 1
Joined: Feb 2010
Reputation:
0
---------------------------bump-----------------------------
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
Not really hard to do.
First thing I do when scripting something like this is to break it down into things we know.
1. The pay n spray locations do not move.
2. When a car is sprayed the car health goes back up to 1000.
3. The Player loses $100.
4. The car stays still while being sprayed
You could do a check at every pay n spray to check if a play is within a certain distance, then if they are get the health of the car.
Then if the cars health goes back up to 1000 while they are within that area then they probably used the pay n spray, you could also check if they lose money.
So if they are within that area, their car has healed and they have lost $100 give the business $100.
Posts: 1,896
Threads: 102
Joined: Oct 2008