01.03.2013, 02:13
I'm glad to see someone who actually wants to learn and just doesn't expect hand-outs!
1. You don't need to save the money as a float unless you have a custom money system as they will always be integers (floats are variables btw - not sure if you knew that from your post)
2. How to do it depends on whether you want it to last between connections/server restarts or just temporarily. If temporarily, save the value inside a player array. Otherwise, write the value to a certain file with some type of person identification (like the player's name) while using /kidnap, and reading that number while using /paykidnap.
For writing/reading files, look on the wiki for the functions inside of file.inc .
1. You don't need to save the money as a float unless you have a custom money system as they will always be integers (floats are variables btw - not sure if you knew that from your post)
2. How to do it depends on whether you want it to last between connections/server restarts or just temporarily. If temporarily, save the value inside a player array. Otherwise, write the value to a certain file with some type of person identification (like the player's name) while using /kidnap, and reading that number while using /paykidnap.
For writing/reading files, look on the wiki for the functions inside of file.inc .