change min money earned by fireman
This commit is contained in:
parent
7705bde84e
commit
e8b5df6e77
@ -11,7 +11,7 @@
|
|||||||
/* ** Definitions ** */
|
/* ** Definitions ** */
|
||||||
#define MAX_FIRES ( 10 )
|
#define MAX_FIRES ( 10 )
|
||||||
|
|
||||||
#define FIRE_EXTINGUISH_PAYOUT ( 6000 )
|
#define FIRE_EXTINGUISH_PAYOUT ( 5000 )
|
||||||
|
|
||||||
/* ** Variables ** */
|
/* ** Variables ** */
|
||||||
enum E_FIRE_DATA
|
enum E_FIRE_DATA
|
||||||
@ -85,8 +85,8 @@ hook OnPlayerUpdateEx( playerid )
|
|||||||
|
|
||||||
if ( g_fireData[ i ] [ E_HEALTH ] <= 0.0 )
|
if ( g_fireData[ i ] [ E_HEALTH ] <= 0.0 )
|
||||||
{
|
{
|
||||||
new
|
new min_money_earned = floatround( float( FIRE_EXTINGUISH_PAYOUT ) * 0.75 );
|
||||||
money_earned = RandomEx( FIRE_EXTINGUISH_PAYOUT / 2, FIRE_EXTINGUISH_PAYOUT );
|
new money_earned = RandomEx( min_money_earned, FIRE_EXTINGUISH_PAYOUT );
|
||||||
|
|
||||||
ach_HandleExtinguishedFires( playerid );
|
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 ) );
|
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 ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user