05.03.2008, 17:28
Quote:
Originally Posted by TheRenegade
Quote:
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? |
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.