[FilterScript] [FS]Wallet
#1

A simple script which allows in wallet your money. Registration is that it can save the your account, and this the money stays in the wallet.

Commands(hungarian)
  • /(p)йnztбrcбba(b)erak
- That you can put the money to wallet
  • /(p)йnztбrcбbуl(k)ivesz
- That money can be removed from the wallet
  • /(p)йnztбrca(e)gyenleg
- That you can see how much money in wallet
  • /pйnztбrcavйtel
- This wallet can take. Only 24/7 business
  • /wallethelp
- That you can see the wallet commands
  • /register
- That you can register
  • /login
- That you can login

Commands(english)
  • /(w)allet(d)eposit
- That you can put the money to wallet
  • /(w)allet(w)ithdraw
- That money can be removed from the wallet
  • /(w)allet(b)alance
- That you can see how much money in wallet
  • /buywallet
- This wallet can take. Only 24/7 business
  • /wallethelp
- That you can see the wallet commands
  • /register
- That you can register
  • /login
- That you can login

Extra
Anyone who is near you print to take money out deposit in or how much is in your wallet look.

Letцltйs
AMX + PWN
Pastebin[/list][/list]
Reply
#2

Cool
tanks
Reply
#3

thanks
Reply
#4

Saving under OnPlayerUpdate??
Goodbye CPU
Reply
#5

OnPlayerUpdate so the function saves the accounts ...
Reply
#6

Think about this..

The function is called 10+ times per SECOND for EACH player..

Saving under it will just cause terrible lagg for a medium-large populated server, move the saving to OnPlayerConnect and OnPlayerDisconnect.
If i were you i'de do this to make the script more efficient and less CPU eating

Read this http://forum.sa-mp.com/index.php?topic=115828.0


EDIT: If you're using OnPlayerUpdate because of crashing etc..
OnPlayerDisconnect is called wen a player crashes ( He disconnects ) and it's only called when a player disconnects, not 30 times per second..
Reply
#7

Thanks
Reply
#8

unfortunately, yes, lies a little to the server
Reply
#9

Do what you want, just giving you some advice on that OnPlayerUpdate.. not a good callback when it comes to saving stuff
Reply
#10

and what to advice to use?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)