diff --git a/gamemodes/irresistible/cnr/features/fires.pwn b/gamemodes/irresistible/cnr/features/fires.pwn index 4bae86f..c585f17 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 ( 5000 ) +#define FIRE_EXTINGUISH_PAYOUT ( 4000 ) /* ** Variables ** */ enum E_FIRE_DATA @@ -89,12 +89,15 @@ hook OnPlayerUpdateEx( playerid ) if ( g_fireData[ i ] [ E_HEALTH ] <= 0.0 ) { + new + money_earned = RandomEx( FIRE_EXTINGUISH_PAYOUT / 2, 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( FIRE_EXTINGUISH_PAYOUT ) ); + 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 ) ); GivePlayerScore( playerid, 2 ); //GivePlayerExperience( playerid, E_FIREMAN ); - GivePlayerCash( playerid, FIRE_EXTINGUISH_PAYOUT ); - StockMarket_UpdateEarnings( E_STOCK_GOVERNMENT, FIRE_EXTINGUISH_PAYOUT, 0.15 ); + GivePlayerCash( playerid, money_earned ); + StockMarket_UpdateEarnings( E_STOCK_GOVERNMENT, money_earned, 0.15 ); HouseFire_Remove( i ); } return 1;