![]() |
Personal bank script.
-=Josey=-
Ok, a friend asked me to make this for him. You may not edit this code, use it to get hired on a server, or use it on your own server without asking me and getting my express written consent. This code is merely for learning purposes. // NPC made by Josey Hunt if (playerenters) { toweapons Items/Bank; } if (weaponfired){ say2 This is your personal bank!#bCommands are:#bdeposit <ammounthere>:deposits.#bwithdraw <ammounthere>:deposits.#bShow banked gralat:shows your#bgralat in your bank.#bThat's all!; } if (isweapon){ if (playerchats){ if (startswith(withdraw,#c)){ tokenize #c; if (tokenscount==2){ if (strtofloat(#s(client.banked))=>strtofloat(#t(1))) { playerrupees+=strtofloat(#t(1)); setstring client.banked,#v(strtofloat(#s(client.banked))-strtofloat(#t(1))); setplayerprop #c,You withdraw #t(1) from your bank. You now have #s(client.banked) gralat left in your bank.; } if (!strtofloat(#s(client.banked))=>strtofloat(#t(1)) ){ setplayerprop #c,You dont have #t(1) gralat in the bank!; } } } if (startswith(deposit,#c)){ tokenize #c; if (tokenscount==2){ if (strtofloat(#v(playerrupees))=>strtofloat(#t(1))){ playerrupees-=strtofloat(#t(1)); setstring client.banked,#v(strtofloat(#s(client.banked))+str tofloat(#t(1))); setplayerprop #c,You deposited #t(1) into your bank. You now have #s(client.banked) gralat in your bank.; } } } if (strequals(#c,show banked gralat)){ setplayerprop #c,You have #s(client.banked) gralat in your bank.; } } } I know it's not the best, but, it works. ;D |
-=Chicken=-
Muahha josey im eveo,Nah nice script =D not the best but it will do the job
|
It would work, yes.
|
-=Josey=-
All I was going for is for it to "work" correctly. Which it does, quite nicely also. Chicken make your posting colour in green fool! |
Quote:
|
Quote:
Unless he can like,do ESP or some whack sh*t like that :rolleyes: |
Quote:
|
Re: Personal bank script.
Quote:
be tampered with ... |
yes, i remember when i was kalton and armodian on n-pulse... funny beans.
|
-=Josey=-
Quote:
- Shrugs. I guess any idiot would do so, though. |
Quote:
just curious...because u post and than seeming 3 minutes later someone with a different name on the same account posts? crazy...absolutly psycho. We could get a long...:asleep: |
Quote:
|
-=Josey=-
Why do you think that I told Chicken to post in green? Because, he wasn't! Lol. Let's let this thread die now. - Daydreams. - Sees a little IcePick browsing the forums and saying "ooooooh! looky a bank script i can use! im gonna be soooo leet now :D". Lol. Boredom owns us all. ;\ |
| All times are GMT +2. The time now is 09:27 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.