diff --git a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn index 9a8065f..0c77c1a 100644 --- a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn +++ b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn @@ -53,7 +53,8 @@ enum E_STOCK_VEHICLE_DEALERSHIP, E_STOCK_SUPA_SAVE, E_STOCK_TRUCKING_COMPANY, - E_STOCK_CLUCKIN_BELL + E_STOCK_CLUCKIN_BELL, + E_STOCK_PAWN_STORE }; static stock @@ -75,8 +76,10 @@ hook OnScriptInit( ) CreateStockMarket( E_STOCK_MINING_COMPANY, "The Mining Company", "MC", 100000.0, 25.0, 500.0 ); // 50m mcap max CreateStockMarket( E_STOCK_AMMUNATION, "Ammu-Nation", "A", 100000.0, 25.0, 250.0 ); // 25m mcap max CreateStockMarket( E_STOCK_VEHICLE_DEALERSHIP, "Vehicle Dealership", "VD", 100000.0, 100.0, 250.0 ); // 25m mcap max + CreateStockMarket( E_STOCK_SUPA_SAVE, "Supa-Save", "SS", 100000.0, 25.0, 250.0 ); // 25m mcap max CreateStockMarket( E_STOCK_TRUCKING_COMPANY, "The Trucking Company", "TC", 100000.0, 50.0, 250.0 ); // 25m mcap max CreateStockMarket( E_STOCK_CLUCKIN_BELL, "Cluckin' Bell", "CB", 100000.0, 50.0, 250.0 ); // 25m mcap max + CreateStockMarket( E_STOCK_PAWN_STORE, "Pawn Store", "PS", 100000.0, 50.0, 250.0 ); // 25m mcap max return 1; } diff --git a/gamemodes/irresistible/cnr/features/toys.pwn b/gamemodes/irresistible/cnr/features/toys.pwn index a93c3ce..e335c77 100644 --- a/gamemodes/irresistible/cnr/features/toys.pwn +++ b/gamemodes/irresistible/cnr/features/toys.pwn @@ -422,6 +422,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) UnlockPlayerToy( playerid, g_ToyData[ id ] [ E_ID ] ); GivePlayerCash( playerid, -g_ToyData[ id ] [ E_PRICE ] ); + StockMarket_UpdateEarnings( E_STOCK_PAWN_STORE, g_ToyData[ id ] [ E_PRICE ], 0.25 ); showToyCategoryItems( playerid, p_ToyCategorySelected{ playerid }, .pawnshop = true ); SendServerMessage( playerid, "You have bought a "COL_GREY"%s"COL_WHITE" for "COL_GOLD"%s"COL_WHITE".", g_ToyData[ id ] [ E_NAME ], cash_format( g_ToyData[ id ] [ E_PRICE ] ) ); } diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index 9f95f62..85953b5 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -7474,6 +7474,7 @@ public OnPlayerEnterDynamicRaceCP( playerid, checkpointid ) DestroyDynamicRaceCP( p_PawnStoreExport[ playerid ] ); p_PawnStoreExport[ playerid ] = 0xFFFF; GivePlayerCash( playerid, cashEarned ); + StockMarket_UpdateEarnings( E_STOCK_PAWN_STORE, cashEarned, 1.0 ); GivePlayerWantedLevel( playerid, items * 2 ); SendServerMessage( playerid, "You have sold %d furniture item(s) to the Pawn Store, earning you "COL_GOLD"%s"COL_WHITE".", GetGVarInt( szItems ), cash_format( cashEarned ) ); DeleteGVar( szItems );