SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 05/06/2018, 09:35 AM   #1
Reddinal
Little Clucker
 
Join Date: May 2018
Posts: 2
Reputation: 0
Default HELP! .map

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);
Reddinal is offline   Reply With Quote
Old 05/06/2018, 11:34 AM   #2
Awide
Big Clucker
 
Join Date: Mar 2014
Posts: 84
Reputation: 6
Default Re: HELP! .map

It explains here how to add a mapping as a filterscript. http://forum.sa-mp.com/showthread.php?t=604281
Awide is offline   Reply With Quote
Old 06/06/2018, 06:08 PM   #3
RODELA
Big Clucker
 
RODELA's Avatar
 
Join Date: Oct 2017
Location: at mars
Posts: 92
Reputation: 22
Default Re: HELP! .map

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

public OnFilterScriptInit()
{
PHP Code:
//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); 
RODELA is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 11:21 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.