giving experince for minijobs
This commit is contained in:
parent
ccfaca5b48
commit
8d1486ae4d
@ -171,6 +171,7 @@ hook OnPlayerEnterDynRaceCP( playerid, checkpointid )
|
|||||||
//SendServerMessage( playerid, "You've made "COL_GOLD"%s"COL_WHITE" from exporting. Go and pick another box up!" );
|
//SendServerMessage( playerid, "You've made "COL_GOLD"%s"COL_WHITE" from exporting. Go and pick another box up!" );
|
||||||
GivePlayerCash( playerid, cash );
|
GivePlayerCash( playerid, cash );
|
||||||
GivePlayerScore( playerid, 5 );
|
GivePlayerScore( playerid, 5 );
|
||||||
|
GivePlayerExperience( playerid, E_ROLEPLAY );
|
||||||
|
|
||||||
DestroyDynamicMapIcon( p_LumberjackMapIcon[ playerid ] );
|
DestroyDynamicMapIcon( p_LumberjackMapIcon[ playerid ] );
|
||||||
p_LumberjackMapIcon[ playerid ] = CreateDynamicMapIconEx( -2330.8535, -113.9084, 34.00, 51, 0, MAPICON_GLOBAL, 6000.0, { -1 }, { -1 }, aPlayer );
|
p_LumberjackMapIcon[ playerid ] = CreateDynamicMapIconEx( -2330.8535, -113.9084, 34.00, 51, 0, MAPICON_GLOBAL, 6000.0, { -1 }, { -1 }, aPlayer );
|
||||||
|
@ -209,6 +209,7 @@ hook OnPlayerEnterDynamicCP( playerid, checkpointid )
|
|||||||
|
|
||||||
new earned_money = floatround( float( g_orePrices[ g_miningData[ ore ] [ E_ORE ] ] ) * 0.5 );
|
new earned_money = floatround( float( g_orePrices[ g_miningData[ ore ] [ E_ORE ] ] ) * 0.5 );
|
||||||
|
|
||||||
|
GivePlayerExperience( playerid, E_ROLEPLAY );
|
||||||
GivePlayerCash( playerid, earned_money );
|
GivePlayerCash( playerid, earned_money );
|
||||||
StockMarket_UpdateEarnings( E_STOCK_MINING_COMPANY, earned_money, 0.5 );
|
StockMarket_UpdateEarnings( E_STOCK_MINING_COMPANY, earned_money, 0.5 );
|
||||||
SendServerMessage( playerid, "You have crushed a "COL_GREY"%s"COL_WHITE" Ore and earned "COL_GOLD"%s"COL_WHITE".", getOreName( g_miningData[ ore ] [ E_ORE ] ), cash_format( earned_money ) );
|
SendServerMessage( playerid, "You have crushed a "COL_GREY"%s"COL_WHITE" Ore and earned "COL_GOLD"%s"COL_WHITE".", getOreName( g_miningData[ ore ] [ E_ORE ] ), cash_format( earned_money ) );
|
||||||
|
@ -185,6 +185,7 @@ hook OnPlayerEnterDynRaceCP( playerid, checkpointid )
|
|||||||
GivePlayerScore( playerid, 1 + floatround( p_PilotDistance[ playerid ] / 1000.0 ) );
|
GivePlayerScore( playerid, 1 + floatround( p_PilotDistance[ playerid ] / 1000.0 ) );
|
||||||
StockMarket_UpdateEarnings( E_STOCK_AVIATION, cash_earned, stock_dividend_allocation );
|
StockMarket_UpdateEarnings( E_STOCK_AVIATION, cash_earned, stock_dividend_allocation );
|
||||||
GivePlayerCash( playerid, cash_earned );
|
GivePlayerCash( playerid, cash_earned );
|
||||||
|
GivePlayerExperience( playerid, E_ROLEPLAY );
|
||||||
|
|
||||||
ShowPlayerHelpDialog( playerid, 5000, "You have earned ~y~%s ~w~for exporting %s!", cash_format( cash_earned ), g_CargoName[ p_PilotCargo[ playerid ] ] );
|
ShowPlayerHelpDialog( playerid, 5000, "You have earned ~y~%s ~w~for exporting %s!", cash_format( cash_earned ), g_CargoName[ p_PilotCargo[ playerid ] ] );
|
||||||
StopPlayerPilotWork( playerid );
|
StopPlayerPilotWork( playerid );
|
||||||
|
@ -134,6 +134,7 @@ hook OnPlayerEnterDynRaceCP( playerid, checkpointid )
|
|||||||
|
|
||||||
GivePlayerScore( playerid, 1 + floatround( p_TrainDistance[ playerid ] / 1000.0 ) );
|
GivePlayerScore( playerid, 1 + floatround( p_TrainDistance[ playerid ] / 1000.0 ) );
|
||||||
GivePlayerCash( playerid, iCashEarned );
|
GivePlayerCash( playerid, iCashEarned );
|
||||||
|
GivePlayerExperience( playerid, E_ROLEPLAY );
|
||||||
|
|
||||||
ach_HandleTrainMissions( playerid );
|
ach_HandleTrainMissions( playerid );
|
||||||
|
|
||||||
|
@ -181,6 +181,7 @@ hook OnPlayerEnterDynRaceCP( playerid, checkpointid )
|
|||||||
GivePlayerScore( playerid, 1 + floatround( p_TruckingDistance[ playerid ] / 1000.0 ) );
|
GivePlayerScore( playerid, 1 + floatround( p_TruckingDistance[ playerid ] / 1000.0 ) );
|
||||||
StockMarket_UpdateEarnings( E_STOCK_TRUCKING_COMPANY, iCashEarned, .factor = 1.0 );
|
StockMarket_UpdateEarnings( E_STOCK_TRUCKING_COMPANY, iCashEarned, .factor = 1.0 );
|
||||||
GivePlayerCash( playerid, iCashEarned );
|
GivePlayerCash( playerid, iCashEarned );
|
||||||
|
GivePlayerExperience( playerid, E_ROLEPLAY );
|
||||||
|
|
||||||
p_TruckingDistance [ playerid ] = 0.0;
|
p_TruckingDistance [ playerid ] = 0.0;
|
||||||
p_hasTruckingJob { playerid } = false;
|
p_hasTruckingJob { playerid } = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user