
07-25-2005, 05:30 AM
|
|
Supreme Dictator
|
 |
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
|
|
|
Donation box... function onPlayerChats() { check that their chat starts with something like /donate. If so, have it check that they have enough money to donate. If they do, increase a server string, db npc string, or a this.string. A this.string should be avoided though, as it would get reset if the level is updated. After increasing the string, decrease their money count. It would be a good iidea to check that they are donating an amount that is > 0. Withdrawing is the oppodite of donating, but with an added account check so only certain people can withdraw.
Shop Till would also be similar, but it would have to add weapons to players when it removes the money from them. |
__________________
Maniaman
|
|
|
|