SA-MP Forums Archive
HELP! .map - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: HELP! .map (/showthread.php?tid=654763)



HELP! .map - Reddinal - 05.06.2018

Hello, I have an FS that saves the maps as .map and I do not know how to add them to the samp server.

What I want to add is this, they are some objects on the map of Vice City.

new g_Object[14];
g_Object[0] = CreateObject(966, 5413.7714, 1805.6315, 5.0818, 0.0000, 0.0000, -1.5000); //bar_gatebar01
g_Object[1] = CreateObject(19380, 5344.7675, 1889.6790, 3.7302, 0.0000, 0.0000, -33.5999); //wall028
SetObjectMaterial(g_Object[1], 0, 16640, "a51", "carparkwall12_256", 0x00000000);
g_Object[2] = CreateObject(967, 5415.0717, 1805.1547, 5.0548, 0.0000, 0.0000, -91.2000); //bar_gatebox01
g_Object[3] = CreateObject(19380, 5411.1982, 1887.7904, 4.1702, 0.0000, 0.0000, -89.9999); //wall028
SetObjectMaterial(g_Object[3], 0, 16640, "a51", "carparkwall12_256", 0x00000000);
g_Object[4] = CreateObject(19380, 5342.0781, 1880.9287, 3.7302, 0.0000, 0.0000, -0.3999); //wall028
SetObjectMaterial(g_Object[4], 0, 16640, "a51", "carparkwall12_256", 0x00000000);
g_Object[5] = CreateObject(968, 5413.9663, 1805.6276, 5.8582, -1.0999, -90.9999, -1.5000); //barrierturn
g_Object[6] = CreateObject(1215, 5416.4702, 1804.4653, 5.6114, 0.0000, 0.0000, 0.0000); //bollardlight
g_Object[7] = CreateObject(966, 5413.7714, 1805.6314, 5.0817, 0.0000, 0.0000, -1.5000); //bar_gatebar01
g_Object[8] = CreateObject(19380, 5344.7675, 1889.6789, 3.7302, 0.0000, 0.0000, -33.599; //wall028
SetObjectMaterial(g_Object[8], 0, 16640, "a51", "carparkwall12_256", 0x00000000);
g_Object[9] = CreateObject(967, 5415.0717, 1805.1546, 5.0548, 0.0000, 0.0000, -91.1999); //bar_gatebox01
g_Object[10] = CreateObject(19380, 5342.0781, 1880.9287, 3.7302, 0.0000, 0.0000, -0.399; //wall028
SetObjectMaterial(g_Object[10], 0, 16640, "a51", "carparkwall12_256", 0x00000000);
g_Object[11] = CreateObject(968, 5413.9663, 1805.6275, 5.8582, -1.0999, -90.9999, -1.5000); //barrierturn
g_Object[12] = CreateObject(1215, 5416.4702, 1804.4653, 5.6114, 0.0000, 0.0000, 0.0000); //bollardlight
g_Object[13] = CreateObject(19380, 5420.8237, 1887.7904, 4.1702, 0.0000, 0.0000, -89.9999); //wall028
SetObjectMaterial(g_Object[13], 0, 16640, "a51", "carparkwall12_256", 0x00000000);


Re: HELP! .map - Awide - 05.06.2018

It explains here how to add a mapping as a filterscript. https://sampforum.blast.hk/showthread.php?tid=604281


Re: HELP! .map - RODELA - 06.06.2018

under Include <a_samp>
PHP код:
new g_Object[14]; 
>>> add this on top of your script.

public OnFilterScriptInit()
{
PHP код:
//Mappings
g_Object[0] = CreateObject(9665413.77141805.63155.08180.00000.0000, -1.5000); //bar_gatebar01
g_Object[1] = CreateObject(193805344.76751889.67903.73020.00000.0000, -33.5999); //wall028
SetObjectMaterial(g_Object[1], 016640"a51""carparkwall12_256"0x00000000);
g_Object[2] = CreateObject(9675415.07171805.15475.05480.00000.0000, -91.2000); //bar_gatebox01
g_Object[3] = CreateObject(193805411.19821887.79044.17020.00000.0000, -89.9999); //wall028
SetObjectMaterial(g_Object[3], 016640"a51""carparkwall12_256"0x00000000);
g_Object[4] = CreateObject(193805342.07811880.92873.73020.00000.0000, -0.3999); //wall028
SetObjectMaterial(g_Object[4], 016640"a51""carparkwall12_256"0x00000000);
g_Object[5] = CreateObject(9685413.96631805.62765.8582, -1.0999, -90.9999, -1.5000); //barrierturn
g_Object[6] = CreateObject(12155416.47021804.46535.61140.00000.00000.0000); //bollardlight
g_Object[7] = CreateObject(9665413.77141805.63145.08170.00000.0000, -1.5000); //bar_gatebar01
g_Object[8] = CreateObject(193805344.76751889.67893.73020.00000.0000, -33.599//wall028
SetObjectMaterial(g_Object[8], 016640"a51""carparkwall12_256"0x00000000);
g_Object[9] = CreateObject(9675415.07171805.15465.05480.00000.0000, -91.1999); //bar_gatebox01
g_Object[10] = CreateObject(193805342.07811880.92873.73020.00000.0000, -0.399//wall028
SetObjectMaterial(g_Object[10], 016640"a51""carparkwall12_256"0x00000000);
g_Object[11] = CreateObject(9685413.96631805.62755.8582, -1.0999, -90.9999, -1.5000); //barrierturn
g_Object[12] = CreateObject(12155416.47021804.46535.61140.00000.00000.0000); //bollardlight
g_Object[13] = CreateObject(193805420.82371887.79044.17020.00000.0000, -89.9999); //wall028
SetObjectMaterial(g_Object[13], 016640"a51""carparkwall12_256"0x00000000);