- 2
- 0
Нужно создать 3д пикап для начала работе на шахте либо перенести сушествующий код-
CreateDynamic3DTextLabel("Шахта\n\n{3399CC}1. Выдача инструментов\n2. Получение зарплаты", 0x009933FF, GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_X), GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_Y), GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_Z) + 0.82, 5.0);
Это крмп мод радмира.
Сам код шахты:
// шахта
for(idx = 0; idx < sizeof miner_carriage; idx ++)
{
miner_carriage[idx][MC_STATUS] = false;
miner_carriage[idx][MC_OBJECT_ID] = CreateDynamicObject(1769, miner_carriage[idx][MC_START_POS_X], miner_carriage[idx][MC_START_POS_Y], miner_carriage[idx][MC_START_POS_Z], 0.0, 0.0, 90.0);
Streamer_SetIntData(STREAMER_TYPE_OBJECT, miner_carriage[idx][MC_OBJECT_ID], E_STREAMER_EXTRA_ID, OBJECT_TYPE_CARRIAGE);
miner_carriage[idx][MC_LABEL] = CreateDynamic3DTextLabel("Çàãðóçêà\n\n{FFCC00}Êîëè÷åñòâî ðóäû\n0 / 10000 êã", 0x66CC00FF, -2375.1228, 294.7194, -15.4815 + 3.0, 10.0);
miner_carriage[idx][MC_PICKUP_ID] = CreatePickup(19135, 23, -2375.1228, 296.8900, -15.7689, -1, PICKUP_ACTION_TYPE_MINER_CARRI);
}
miner_job_area = CreateDynamicRectangle(2447.1799,1697.9985, 2279.3557,1806.0872, 0, 0);
for(new i; i < sizeof miner_job_load_pos; i ++)
{
CreateDynamic3DTextLabel("Ìåñòî\näîáû÷è ðóäû", 0xFFFF00AA, miner_job_load_pos[0], miner_job_load_pos[1], miner_job_load_pos[2], 10.0);
miner_job_load_cp = CreateDynamicCP(miner_job_load_pos[0], miner_job_load_pos[1], miner_job_load_pos[2], 1.2, _, _, _, 5);
}
CreatePickup(19134, 23, -500.0557,3389.6550,29.8350, 0, PICKUP_ACTION_TYPE_MINER_SELL_M);
CreateDynamic3DTextLabel("Ïðîäàæà ìåòàëëà\n{00CC00}1500 ðóáëåé {FFFFFF}çà 1 êã", 0x9966FFBB, -600.0557,3389.6550,29.8350 + 1.2, 10.0);
CreateDynamic3DTextLabel("Øàõòà\n\n{3399CC}1. Âûäà÷à èíñòðóìåíòîâ\n2. Ïîëó÷åíèå çàðïëàòû", 0x009933FF, GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_X), GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_Y), GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_Z) + 0.82, 5.0);
CreateDynamic3DTextLabel("Шахта\n\n{3399CC}1. Выдача инструментов\n2. Получение зарплаты", 0x009933FF, GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_X), GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_Y), GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_Z) + 0.82, 5.0);
Это крмп мод радмира.
Сам код шахты:
// шахта
for(idx = 0; idx < sizeof miner_carriage; idx ++)
{
miner_carriage[idx][MC_STATUS] = false;
miner_carriage[idx][MC_OBJECT_ID] = CreateDynamicObject(1769, miner_carriage[idx][MC_START_POS_X], miner_carriage[idx][MC_START_POS_Y], miner_carriage[idx][MC_START_POS_Z], 0.0, 0.0, 90.0);
Streamer_SetIntData(STREAMER_TYPE_OBJECT, miner_carriage[idx][MC_OBJECT_ID], E_STREAMER_EXTRA_ID, OBJECT_TYPE_CARRIAGE);
miner_carriage[idx][MC_LABEL] = CreateDynamic3DTextLabel("Çàãðóçêà\n\n{FFCC00}Êîëè÷åñòâî ðóäû\n0 / 10000 êã", 0x66CC00FF, -2375.1228, 294.7194, -15.4815 + 3.0, 10.0);
miner_carriage[idx][MC_PICKUP_ID] = CreatePickup(19135, 23, -2375.1228, 296.8900, -15.7689, -1, PICKUP_ACTION_TYPE_MINER_CARRI);
}
miner_job_area = CreateDynamicRectangle(2447.1799,1697.9985, 2279.3557,1806.0872, 0, 0);
for(new i; i < sizeof miner_job_load_pos; i ++)
{
CreateDynamic3DTextLabel("Ìåñòî\näîáû÷è ðóäû", 0xFFFF00AA, miner_job_load_pos[0], miner_job_load_pos[1], miner_job_load_pos[2], 10.0);
miner_job_load_cp = CreateDynamicCP(miner_job_load_pos[0], miner_job_load_pos[1], miner_job_load_pos[2], 1.2, _, _, _, 5);
}
CreatePickup(19134, 23, -500.0557,3389.6550,29.8350, 0, PICKUP_ACTION_TYPE_MINER_SELL_M);
CreateDynamic3DTextLabel("Ïðîäàæà ìåòàëëà\n{00CC00}1500 ðóáëåé {FFFFFF}çà 1 êã", 0x9966FFBB, -600.0557,3389.6550,29.8350 + 1.2, 10.0);
CreateDynamic3DTextLabel("Øàõòà\n\n{3399CC}1. Âûäà÷à èíñòðóìåíòîâ\n2. Ïîëó÷åíèå çàðïëàòû", 0x009933FF, GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_X), GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_Y), GetTempJobInfo(TEMP_JOB_MINER, TJ_POS_Z) + 0.82, 5.0);