Posts: 71
Threads: 17
Joined: Jul 2010
Reputation:
0
How can i put an ATM Systen in my server...
HELP ME =D
Posts: 71
Threads: 17
Joined: Jul 2010
Reputation:
0
Yes but i want your advices about that....
What is better, the functions, etc...
Posts: 1,150
Threads: 16
Joined: Oct 2009
Reputation:
0
You mean Automatic Teller Machines where players can withdraw cash?
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
Just make the object for the ATM.
Then when you make a command, like /withdraw, check if they're near it using IsPlayerInRangeOfPoint().
If they are, give them the money if it's less than what they have in their bank account.
Most of the code will have to be done by you because we do not know how you save the amount of cash the player has, or the variables used.
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
You'll need to add the code to give the player the money and change the values of 'xofatm', 'yofatm' etc to the actual coordinates of where you added the ATM.