From e8b5df6e77adc217d1e08f9bd7f4fcc7d704e894 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Mon, 17 Jun 2019 23:19:41 +1000 Subject: [PATCH] change min money earned by fireman --- gamemodes/irresistible/cnr/features/fires.pwn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/fires.pwn b/gamemodes/irresistible/cnr/features/fires.pwn index 7acd594..32207d5 100644 --- a/gamemodes/irresistible/cnr/features/fires.pwn +++ b/gamemodes/irresistible/cnr/features/fires.pwn @@ -11,7 +11,7 @@ /* ** Definitions ** */ #define MAX_FIRES ( 10 ) -#define FIRE_EXTINGUISH_PAYOUT ( 6000 ) +#define FIRE_EXTINGUISH_PAYOUT ( 5000 ) /* ** Variables ** */ enum E_FIRE_DATA @@ -85,8 +85,8 @@ hook OnPlayerUpdateEx( playerid ) if ( g_fireData[ i ] [ E_HEALTH ] <= 0.0 ) { - new - money_earned = RandomEx( FIRE_EXTINGUISH_PAYOUT / 2, FIRE_EXTINGUISH_PAYOUT ); + new min_money_earned = floatround( float( FIRE_EXTINGUISH_PAYOUT ) * 0.75 ); + new money_earned = RandomEx( min_money_earned, FIRE_EXTINGUISH_PAYOUT ); ach_HandleExtinguishedFires( playerid ); SendClientMessageToAllFormatted( -1, "{A83434}[FIREMAN]"COL_WHITE" %s(%d) has earned "COL_GOLD"%s"COL_WHITE" for extinguishing a house fire.", ReturnPlayerName( playerid ), playerid, cash_format( money_earned ) );