Thread: Bank Script????
View Single Post
  #5  
Old 11-11-2001, 07:28 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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
Reply With Quote