Pawn store stock for burglars
This commit is contained in:
parent
6e54f16ed6
commit
e2837265a9
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 ] ) );
|
||||
}
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user