SA-MP Forums Archive
[INC + FS] Server Side Money (Cash) (+ TextDraw) (SscreenShot Added) - 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: [INC + FS] Server Side Money (Cash) (+ TextDraw) (SscreenShot Added) (/showthread.php?tid=116688)



[INC + FS] Server Side Money (Cash) (+ TextDraw) (SscreenShot Added) - Oxside - 29.12.2009

Server Side Money (Cash)

Features
_________________________________________________
Getting sick of those money hackers? Use a serverside money system.
This was already released on the forum (PCash + 1 from X_cutter)
But this one has got a text draw wich is updating very seconds so the ammount of Cash
is always showing above the weapons (see screenshot)


[color=blue]Functions

_________________________________________________
SetPlayerCash(playerid, value);
GivePlayerCash(playerid, value);
GetPlayerCash(playerid, value);


Changelog
_________________________________________________
- Moved TextDraw create to OnPlayerConnect
- Added [MAX_PLAYERS] to CashDraw
- Pt [playerid] when using the function
- Added ResetPlayerCash

How to Convert Scripts with normal money to cash
[b]_________________________________________________
Just Ctrl + H in Pawno Fill in the first box: GivePlayerMoney and in
the second: GivePlayerCash
Click OK and a message will apear just click Yes, All or something.
Then do the same thing but fill in the following:
First Box: GetPlayerMoney
Second Box: GetPlayerCash
If you have A SetPlayerMoney function just replace it with SetPlayerCash.


[color=blue]Download (Please Redownload)
_________________________________________________ Inlcude: http://pastebin.com/d78228909
Filterscript: http://pastebin.com/f26696221
Screenshot: http://i46.tinypic.com/20ibyd.jpg





Re: [INC + FS] Server Side Money (Cash) (+ TextDraw) - Cypress - 29.12.2009

Thats Nice Anticheat!!
And nice tut!!


Re: [INC + FS] Server Side Money (Cash) (+ TextDraw) - Oxside - 29.12.2009

Thanks


Re: [INC + FS] Server Side Money (Cash) (+ TextDraw) - Takumi.WS - 29.12.2009

Screens ?


Re: [INC + FS] Server Side Money (Cash) (+ TextDraw) - Oxside - 29.12.2009

Sorry, forgot
Moment ill make :P

EDIT: Added: http://i46.tinypic.com/20ibyd.jpg


Re: [INC + FS] Server Side Money (Cash) (+ TextDraw) - s0nic - 29.12.2009

One problem tho...the textdraw is "global" which means that every time it updates for a player it would show that players money but to everyone that is connected and has the textdraw shown..correct me if im wrong..?


Re: [INC + FS] Server Side Money (Cash) (+ TextDraw) (SscreenShot Added) - Oxside - 29.12.2009

No the function in: OnFilterScriptInit does only create it.
The function in: OnPlayerConnect: TextDrawShowForPlayer wich shows it to the player only


Re: [INC + FS] Server Side Money (Cash) (+ TextDraw) (SscreenShot Added) - Striker_Moe - 29.12.2009

Wrong, you have to create one textdraw for each single player at OnPlayerConnect.



Re: [INC + FS] Server Side Money (Cash) (+ TextDraw) (SscreenShot Added) - Oxside - 29.12.2009

No its not:
https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer << I never tested it with somebody else..
I forgot to add the function TextDrawShowForPlayer on player connect But i should show for the player only


Re: [INC + FS] Server Side Money (Cash) (+ TextDraw) (SscreenShot Added) - NeRoSiS - 29.12.2009

You should listen to people instead of telling them your wrong.

Add [MAX_PLAYERS] to your new Text:blablabla;

add [playerid] in every function where you refer to the textdraw.