SA-MP Forums Archive
[FilterScript] [FS] Money Drop on ground - 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] Money Drop on ground (/showthread.php?tid=28905)

Pages: 1 2


[FS] Money Drop on ground - TheRenegade - 05.03.2008

Money Drop Filterscript

Many people requested this so i decided to put my money drop code here as a FS.

What it does:

When players die, they drop 5 packets of money on the ground



Each packet give you 100$ (costumizable in the pwn)

Installing:

- Download the source from the link below.
- Open it, and if needed, costumize the quantity of money which each packet gives.
- Compile it, open server.cfg and add MoneyDrop on Filterscript line

Download:

Download - Sendspace
Download - Rapidshare
Download - Crazyhost

No need to give me credits, mirrors allowed


Re: [FS] Money Drop on ground - [LDT]LuxurY - 05.03.2008

nice, but I think that droped money should depend on player's money,isn't it?


Re: [FS] Money Drop on ground - Rks25 - 05.03.2008

Can you host it on pastebin please? Link doesn't work for me.




Re: [FS] Money Drop on ground - Numhaken - 05.03.2008

Nice


Re: [FS] Money Drop on ground - [IB]Scorcher - 05.03.2008

Wow This is cool


Re: [FS] Money Drop on ground - TheRenegade - 05.03.2008

Quote:
Originally Posted by [LDT
LuxurY ]
nice, but I think that droped money should depend on player's money,isn't it?
Fixed and updated the download.

@Royal_Flush: Mirror works, if you cant open it wait for someone to mirror it.
I added a Rapidshare link, try it.


Re: [FS] Money Drop on ground - Numhaken - 05.03.2008

Mirror'd

http://www.crazyhost.info/download.p...1MoneyDrop.rar


Re: [FS] Money Drop on ground - Gutoo - 05.03.2008

Nice! i'm using on my server.


Re: [FS] Money Drop on ground - TheRenegade - 05.03.2008

Quote:
Originally Posted by Numhaken
Thanks, link added on first post


Re: [FS] Money Drop on ground - [LDT]LuxurY - 05.03.2008

Quote:
Originally Posted by TheRenegade
Quote:
Originally Posted by [LDT
LuxurY ]
nice, but I think that droped money should depend on player's money,isn't it?
Fixed and updated the download.

@Royal_Flush: Mirror works, if you cant open it wait for someone to mirror it.
I added a Rapidshare link, try it.
gTeam aren't used in your fs.
my simplified version http://pastebin.com/d4499b50d


Re: [FS] Money Drop on ground - TheRenegade - 05.03.2008

Np my FS works i tested it on 4-5 gamemodes.


Re: [FS] Money Drop on ground - Rks25 - 05.03.2008

This would be much better, if the player would lose all his money, and the person who picks it up,would get his money by pickups. Cuz now you will get 500 dollar -.-'




Re: [FS] Money Drop on ground - P1nd3r - 05.03.2008

That's new.


Re: [FS] Money Drop on ground - [IB]Scorcher - 05.03.2008

I dont think anyone else has ever scripted this in SA:MP.


Re: [FS] Money Drop on ground - Rks25 - 05.03.2008

But it;s kind of simple, cuz you won;t get the whole amount of the victim, just 500$ -.-'




Re: [FS] Money Drop on ground - TheRenegade - 05.03.2008

If you want to make players lose all money use SetPlayerMoney(playerid,0) instead of GivePlayerMoney(playerid,-500).
However losing all money on death is kinda weird.


Re: [FS] Money Drop on ground - Rks25 - 05.03.2008

yeah you right, so uhm, but can;'t you make it like random, example:
986 dollars or something and 418 or 26 and etc.

That would also be better.


Re: [FS] Money Drop on ground - kaisersouse - 05.03.2008

One could also (easily) make it take a percentage of your money. If you wanted it to take 1% of your money then

Code:
moneytotal = GetPlayerMoney(playerid)*.01;
GivePlayerMoney(playerid, -moneytotal);
Or something to that effect. That way people rich people will be preyed upon more than the poor/weak

EDIT: Ps I'll be using this. Thanks OP


Re: [FS] Money Drop on ground - TheRenegade - 05.03.2008

Quote:
Originally Posted by kaisersouse
One could also (easily) make it take a percentage of your money. If you wanted it to take 1% of your money then

Code:
moneytotal = GetPlayerMoney(playerid)*.01;
GivePlayerMoney(playerid, -moneytotal);
Or something to that effect. That way people rich people will be preyed upon more than the poor/weak

EDIT: Ps I'll be using this. Thanks OP
Nice i wanted to make it too but a thought stopped me:
What if the player has negative money? (ie. -10.000)
The killer who harvest the money get 1% of -10.000, and lose -100$?
And the player who dies gets GivePlayerMoney(playerid, --100); 2 minus could cause problems.
If so players could abuse of it.

Can you make some tests to verify?


Re: [FS] Money Drop on ground - FujiNNN - 05.03.2008

Cool looks real.