
11-11-2001, 07:28 PM
|
|
Registered User
|
 |
Join Date: Jul 2001
Location: Germany
Posts: 655
|
|
|
if(playerchats && isleader){
if(strequals(#c,deposit all)){
this.deposit=playerrupees+strtofloat(#s(bankaccoun t));
setstring bankaccount,#v(this.deposit);
playerrupees=0;
}
if(strequals(#c,get all)){
this.get=strtofloat(#s(bankaccount));
playerrupees+=this.get;
setstring bankaccount,0;
}
if(strequals(#c,amount)){
setplayerprop #c, You have #s(bankaccount) ruppes;
}
}
It's just some example and not tested.
I didn't add a function to deposit a random number of rupees but as an example it should be ok... |
__________________
No Webhost at the moment
|
|
|
|