[INC + FS] Server Side Money (Cash) (+ TextDraw) (SscreenShot Added)
#1

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


Reply
#2

Thats Nice Anticheat!!
And nice tut!!
Reply
#3

Thanks
Reply
#4

Screens ?
Reply
#5

Sorry, forgot
Moment ill make :P

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

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..?
Reply
#7

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

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

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
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)