[FilterScript] [FS] Money Drop on ground
#21

Quote:
Originally Posted by TheRenegade
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?
Umm

if(GetPlayerMoney(playerid) < 1) return 1;

before the other parts. That will make it not do anything if the person has 0 or negative money. Might want to set that higher depending on gamemode, just so people will have SOME money to get back on their feet if it turns out the only thing they are good at is dying.
Reply
#22

This really would better (can't you a version for me), with detecting the victims's money and placing it in pickups, and who picks it up, get's all his money??

Reply
#23

this is awesome ty
Reply
#24

Quote:
Originally Posted by Damage2008
I dont think anyone else has ever scripted this in SA:MP.
Are u joking ? LOOOL i scripted it when samp 0.2 camed out Its so damn easy just a little of imagination
Reply
#25

Quote:
Originally Posted by kaisersouse
Umm

if(GetPlayerMoney(playerid) < 1) return 1;
Great, your problem is solved then!

Quote:
Originally Posted by asteroid
Quote:
Originally Posted by Damage2008
I dont think anyone else has ever scripted this in SA:MP.
Are u joking ? LOOOL i scripted it when samp 0.2 camed out Its so damn easy just a little of imagination
I think he meant that this is the first money drop system released in the showroom which is true,
but obviously im not the first scripting something like this, its not hard to make!
Reply
#26

duh doublepost mod delete this
Reply
#27

I thought he was thinking this about whole samp, but nvm good first release . Ok ill stop offtopic
Reply
#28

Quote:
Originally Posted by Royal_Flush
This really would better (can't you a version for me), with detecting the victims's money and placing it in pickups, and who picks it up, get's all his money??

Got no answer..
Reply
#29

Quote:
Originally Posted by Royal_Flush
Quote:
Originally Posted by Royal_Flush
This really would better (can't you a version for me), with detecting the victims's money and placing it in pickups, and who picks it up, get's all his money??

Got no answer..
Me and kaiserouse already answered to this.
Its not that hard to do
Reply
#30

Quote:
Originally Posted by [LDT
LuxurY ]
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
i agree, why do u have
pawn Code:
static gTeam[MAX_PLAYERS];
?
Reply
#31

Not bad
Reply
#32

Nice FS!
Reply
#33

please reupload download link!
Reply
#34

mabaco
weapon drop better
Reply
#35

very Nice
Reply
#36

Love it! ill defiantly use this

Code:
 1. This forum requires that you wait 120 seconds between posts. Please try again in 1 seconds.
......Seriously its annoying
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)