[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


Messages In This Thread
[FS] Money Drop on ground - by TheRenegade - 05.03.2008, 13:48
Re: [FS] Money Drop on ground - by [LDT]LuxurY - 05.03.2008, 13:52
Re: [FS] Money Drop on ground - by Rks25 - 05.03.2008, 13:56
Re: [FS] Money Drop on ground - by Numhaken - 05.03.2008, 13:58
Re: [FS] Money Drop on ground - by [IB]Scorcher - 05.03.2008, 13:59
Re: [FS] Money Drop on ground - by TheRenegade - 05.03.2008, 14:00
Re: [FS] Money Drop on ground - by Numhaken - 05.03.2008, 14:02
Re: [FS] Money Drop on ground - by Gutoo - 05.03.2008, 14:03
Re: [FS] Money Drop on ground - by TheRenegade - 05.03.2008, 14:05
Re: [FS] Money Drop on ground - by [LDT]LuxurY - 05.03.2008, 14:08
Re: [FS] Money Drop on ground - by TheRenegade - 05.03.2008, 14:10
Re: [FS] Money Drop on ground - by Rks25 - 05.03.2008, 14:41
Re: [FS] Money Drop on ground - by P1nd3r - 05.03.2008, 14:47
Re: [FS] Money Drop on ground - by [IB]Scorcher - 05.03.2008, 15:30
Re: [FS] Money Drop on ground - by Rks25 - 05.03.2008, 15:51
Re: [FS] Money Drop on ground - by TheRenegade - 05.03.2008, 15:54
Re: [FS] Money Drop on ground - by Rks25 - 05.03.2008, 16:10
Re: [FS] Money Drop on ground - by kaisersouse - 05.03.2008, 16:13
Re: [FS] Money Drop on ground - by TheRenegade - 05.03.2008, 17:02
Re: [FS] Money Drop on ground - by FujiNNN - 05.03.2008, 17:21
Re: [FS] Money Drop on ground - by kaisersouse - 05.03.2008, 17:28
Re: [FS] Money Drop on ground - by Rks25 - 05.03.2008, 17:34
Re: [FS] Money Drop on ground - by Blackhawk - 05.03.2008, 17:49
Re: [FS] Money Drop on ground - by asteroid - 05.03.2008, 18:03
Re: [FS] Money Drop on ground - by TheRenegade - 05.03.2008, 18:09
Re: [FS] Money Drop on ground - by TheRenegade - 05.03.2008, 18:10
Re: [FS] Money Drop on ground - by asteroid - 05.03.2008, 18:15
Re: [FS] Money Drop on ground - by Rks25 - 05.03.2008, 18:16
Re: [FS] Money Drop on ground - by TheRenegade - 05.03.2008, 21:03
Re: [FS] Money Drop on ground - by jesse989898 - 05.03.2008, 21:10
Re: [FS] Money Drop on ground - by Stunt-Andreas - 09.04.2010, 12:31
Re: [FS] Money Drop on ground - by Ubisoft - 05.08.2010, 13:15
Re: [FS] Money Drop on ground - by Ludek - 09.10.2010, 12:47
Re: [FS] Money Drop on ground - by [CripZ]SERCH - 09.10.2010, 13:26
Re: [FS] Money Drop on ground - by gigi1223 - 09.10.2010, 13:29
Re: [FS] Money Drop on ground - by Lookin - 14.10.2010, 08:29

Forum Jump:


Users browsing this thread: 1 Guest(s)