nerf fireman pay a bit
This commit is contained in:
parent
0d78b9ae91
commit
4fd6abb3e6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user