SA-MP Forums Archive
[FilterScript] [FS]Wallet - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS]Wallet (/showthread.php?tid=92255)



[FS]Wallet - MatrixBoY - 19.08.2009

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)- That you can put the money to wallet- That money can be removed from the wallet- That you can see how much money in wallet- This wallet can take. Only 24/7 business- That you can see the wallet commands- That you can register- That you can login

Commands(english)- That you can put the money to wallet- That money can be removed from the wallet- That you can see how much money in wallet- This wallet can take. Only 24/7 business- That you can see the wallet commands- That you can register- 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]


Re: [FS]Wallet - nuriel8833 - 19.08.2009

Cool
tanks


Re: [FS]Wallet - MatrixBoY - 19.08.2009

thanks


Re: [FS]Wallet - gtalover12 - 19.08.2009

Saving under OnPlayerUpdate??
Goodbye CPU


Re: [FS]Wallet - MatrixBoY - 19.08.2009

OnPlayerUpdate so the function saves the accounts ...


Re: [FS]Wallet - gtalover12 - 19.08.2009

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..


Re: [FS]Wallet - greezlies - 19.08.2009

Thanks


Re: [FS]Wallet - MatrixBoY - 19.08.2009

unfortunately, yes, lies a little to the server


Re: [FS]Wallet - gtalover12 - 19.08.2009

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


Re: [FS]Wallet - MatrixBoY - 19.08.2009

and what to advice to use?