move load apt code to apartment module
This commit is contained in:
parent
2a90d06d90
commit
13ddbb675c
@ -31,6 +31,9 @@ static stock
|
||||
/* ** Hooks ** */
|
||||
hook OnScriptInit( )
|
||||
{
|
||||
// Load apartments
|
||||
mysql_function_query( dbHandle, "SELECT * FROM `APARTMENTS`", true, "NovicHotel_Load", "" );
|
||||
|
||||
// Apartments
|
||||
CreateDynamicObject( 4587, -1971.51, 1356.26, 65.32, 0.00, 0.00, -180.00, .priority = 1 );
|
||||
CreateDynamicObject( 3781, -1971.50, 1356.27, 28.26, 0.00, 0.00, -180.00, .priority = 1 );
|
||||
@ -271,7 +274,7 @@ hook OnDynamicObjectMoved( objectid )
|
||||
}
|
||||
|
||||
/* ** SQL Threads ** */
|
||||
thread OnApartmentLoad( )
|
||||
thread NovicHotel_Load( )
|
||||
{
|
||||
new
|
||||
rows, fields, i = -1, aID,
|
||||
|
@ -439,7 +439,7 @@ public OnGameModeInit()
|
||||
|
||||
// mysql_function_query( dbHandle, "SELECT * FROM `HOUSES`", true, "OnHouseLoad", "" );
|
||||
// mysql_function_query( dbHandle, "SELECT * FROM `BRIBES`", true, "OnBribeLoad", "" );
|
||||
mysql_function_query( dbHandle, "SELECT * FROM `APARTMENTS`", true, "OnApartmentLoad", "" );
|
||||
//mysql_function_query( dbHandle, "SELECT * FROM `APARTMENTS`", true, "OnApartmentLoad", "" );
|
||||
// mysql_function_query( dbHandle, "SELECT * FROM `FURNITURE`", true, "OnFurnitureLoad", "" );
|
||||
//mysql_function_query( dbHandle, "SELECT * FROM `GATES`", true, "OnGatesLoad", "" );
|
||||
//mysql_function_query( dbHandle, "SELECT * FROM `ENTRANCES`", true, "OnEntrancesLoad", "" );
|
||||
|
Loading…
Reference in New Issue
Block a user