okay, here should be the complete script:
[code]
// This is where a player buys the bomb
if (strequals(#c,buy bombs)) {
if (playerrupees>=50) {mymoney+=50; playerrupees-=50;
}
setplayerprop #c,;
}
// This is where you take the money by saying "pay me punk"
if (strequals(#a,<your account name here>)) {
if (strequals(#c,pay me punk)) {playerrupees+=mymoney; mymoney=0;
}
}
You could automatically have the server add the money to you, with p2p NPCserver commands, but this way is more simple, and can be used on a non-p2p server

.