SA-MP Forums Archive
how do i make a map to work w/ my server? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: how do i make a map to work w/ my server? (/showthread.php?tid=60408)



how do i make a map to work w/ my server? - demonedslayer00 - 03.01.2009

ok, so i made a map on the MTA:Race client, converted to a .pwn (thanx to Delux's Converter) and i dont know what to do next to make it work on my server...so can someone like give me a guide or something to make it work? it would be greatly appreciated.


Re: how do i make a map to work w/ my server? - Dujma - 03.01.2009

What you mean by make it work?

You c/p that code under OnGameModeInIt


Re: how do i make a map to work w/ my server? - demonedslayer00 - 03.01.2009

Quote:
Originally Posted by Dujma
What you mean by make it work?

You c/p that code under OnGameModeInIt
i mean like, get it so when im on my server i can play on my map. ...and where exactly in the OnGameModeInit? can you give me an example?
(sry im a big noob...)


Re: how do i make a map to work w/ my server? - DMSOrg - 04.01.2009

ok the .pwn you made - put it in your filterscripts folder

open server.cfg

look under filterscripts - add the name of the .pwn you made to the end (with out the extension)


Re: how do i make a map to work w/ my server? - Dujma - 04.01.2009

Quote:
Originally Posted by DMSOrg
ok the .pwn you made - put it in your filterscripts folder

open server.cfg

look under filterscripts - add the name of the .pwn you made to the end (with out the extension)
A? The man dont know how to put objects in his GM and you think he has made an FS?


Re: how do i make a map to work w/ my server? - Serbish - 04.01.2009

Quote:
Originally Posted by DMSOrg
ok the .pwn you made - put it in your filterscripts folder

open server.cfg

look under filterscripts - add the name of the .pwn you made to the end (with out the extension)
Your extension you gave him is wrong.
You don't need to put the ".pwn" file into the folder but you must put the ".amx" file there.
Souce code is not needed.


Re: how do i make a map to work w/ my server? - demonedslayer00 - 04.01.2009

I tried making it a filterscript, but then i need a .amx but idk how to make one...

heres the .pwn the converter gave me:

Code:
CreateObject(13641, 2054.485107, -2536.317139, 14.266117, 0.0000, 0.0000, 360.0000);
CreateObject(16367, 1857.314453, -2462.070313, 14.313576, 0.0000, 0.0000, 0.0000);
CreateObject(18451, 2063.234375, -2677.359619, 13.059301, 0.0000, 0.0000, 90.0000);
CreateObject(1634, 1874.444214, -2547.693115, 13.844193, 0.0000, 0.0000, 270.0001);
CreateObject(1634, 1874.698364, -2538.234863, 13.844193, 0.0000, 0.0000, 270.0001);
CreateObject(1483, 1803.746338, -2417.282959, 14.529077, 0.0000, 0.0000, 270.0000);
CreateObject(1483, 1803.752319, -2420.975098, 14.529077, 0.0000, 0.0000, 90.0001);
CreateObject(8171, 1540.599243, -2609.243164, 12.548797, 351.4056, 0.0000, 0.0000);
CreateObject(8171, 1540.855347, -2613.685547, 12.968780, 344.5301, 0.0000, 0.0000);
CreateObject(8171, 1540.998901, -2621.197510, 14.772945, 335.9358, 0.0000, 0.0000);
CreateObject(1634, 1541.290649, -2683.251465, 43.781807, 24.9237, 0.0000, 180.0000);
CreateObject(13562, 1614.435791, -2642.464600, 27.582016, 0.0000, 0.0000, 0.0000);
CreateObject(3502, 2482.365234, -1693.272949, 13.945528, 0.0000, 0.0000, 353.9839);
CreateObject(3502, 2481.499268, -1701.549927, 13.894991, 0.0000, 0.0000, 353.9839);
CreateObject(3502, 2480.465576, -1710.423706, 13.764515, 0.0000, 0.0000, 353.9839);
CreateObject(1503, 2479.907227, -1719.218872, 12.938255, 0.0000, 0.0000, 180.0000);
CreateObject(16134, 2561.962646, -1874.838623, 1.599722, 3.4377, 355.7028, 213.7500);
CreateObject(16084, 2556.914795, -1774.917358, 4.715634, 0.0000, 0.0000, 18.9849);
CreateObject(1634, 2456.557129, -1790.539429, 13.844193, 0.0000, 0.0000, 90.0000);
CreateObject(18449, 2359.508057, -1791.700317, 19.114239, 0.0000, 0.0000, 0.0000);
CreateObject(18449, 2298.271240, -1791.667603, 19.090006, 0.0000, 0.0000, 0.0000);
CreateObject(1634, 2258.368896, -1791.964478, 20.306080, 0.0000, 0.0000, 90.0000);
CreateObject(1632, 2444.118896, -1763.738892, 13.892399, 0.0000, 0.0000, 90.0000);
CreateObject(1632, 2453.645508, -1763.658325, 13.630503, 0.0000, 0.0000, 271.3411);
CreateObject(1632, 2370.616455, -1700.198242, 13.920616, 0.0000, 0.0000, 0.0000);
CreateObject(3852, 2370.792725, -1816.995483, 14.363799, 0.0000, 0.0000, 0.0000);
CreateObject(5153, 2374.054688, -1634.793457, 13.215108, 0.0000, 0.0000, 90.0000);
CreateObject(5153, 2375.962646, -1634.816772, 13.214952, 0.0000, 0.0000, 90.0000);
CreateObject(3665, 2463.567383, -1660.273560, 14.286280, 0.0000, 0.0000, 270.0000);
CreateObject(18449, 2437.696289, -1792.181152, 8.551018, 0.0000, 15.4699, 359.1406);
CreateObject(3524, 2465.710938, -1785.983643, 15.432215, 0.0000, 0.0000, 67.5000);
CreateObject(3524, 2465.863770, -1794.380249, 15.565380, 0.0000, 0.0000, 67.5000);
CreateObject(13641, 2201.173828, -1796.021118, 13.898932, 0.0000, 0.0000, 180.0000);
CreateObject(3852, 2402.606201, -1749.671143, 14.192046, 0.0000, 0.0000, 90.0000);
CreateObject(3852, 2416.582520, -1780.206055, 13.749848, 0.0000, 1.7189, 359.7591);
CreateObject(3852, 2426.143555, -1773.249146, 13.606109, 0.0000, 0.0000, 90.0000);
CreateObject(18450, 2604.426758, -1774.289551, 11.631721, 0.0000, 349.6868, 0.0000);
CreateObject(1634, 2645.108154, -1773.281128, 20.641062, 14.6104, 359.1406, 268.7628);
CreateObject(1634, 2651.292236, -1773.322754, 26.911522, 27.5020, 0.0000, 267.0439);
CreateObject(3502, 2482.484375, -1692.776245, 13.650259, 0.0000, 0.0000, 353.9839);
CreateObject(2931, 2185.671387, -1750.573486, 12.408410, 0.0000, 0.0000, 270.0000);
CreateObject(2931, 2185.542969, -1752.229614, 12.408410, 0.0000, 0.0000, 270.0000);
CreateObject(1696, 2198.654785, -1741.992188, 13.258959, 0.0000, 0.0000, 90.0000);
CreateObject(1696, 2198.195068, -1751.806763, 13.186917, 0.0000, 0.0000, 90.0000);
CreateObject(1634, 2332.882568, -1526.912598, 24.014532, 0.0000, 0.0000, 90.0000);
CreateObject(1634, 2342.876953, -1737.180664, 13.680130, 0.0000, 0.0000, 180.0000);
CreateObject(1634, 2342.913574, -1744.407349, 19.036360, 21.4859, 0.0000, 180.0000);
CreateObject(1634, 2344.288818, -1393.805298, 24.128958, 12.8916, 0.0000, 1.2370);
CreateObject(1634, 2369.868408, -1150.864624, 27.742630, 12.8916, 0.0000, 1.2370);
CreateObject(1634, 2369.704834, -1145.448730, 34.368572, 37.8152, 0.0000, 1.2370);
CreateObject(18451, 2399.088867, -1382.134521, 23.580687, 0.0000, 0.0000, 270.0000);
CreateObject(18451, 2229.516357, -1369.859497, 23.504614, 0.0000, 0.0000, 180.0000);
CreateObject(1634, 2284.873291, -1135.339478, 26.769049, 0.0000, 0.0000, 0.8594);
CreateObject(1634, 2289.180908, -1135.294678, 26.785454, 0.0000, 0.0000, 0.0000);
CreateObject(1660, 1819.984863, -1136.756470, 23.148041, 0.0000, 0.0000, 0.0000);
CreateObject(1660, 1820.119263, -1140.871582, 26.923603, 0.0000, 0.0000, 0.0000);
CreateObject(1660, 1820.272461, -1145.251465, 30.851999, 0.0000, 0.0000, 0.0000);
CreateObject(1697, 1784.319092, -1038.120361, 24.187822, 0.0000, 0.0000, 236.2501);
CreateObject(3364, 1683.493652, -1082.382813, 23.070055, 0.0000, 0.0000, 0.0000);
CreateObject(3363, 1594.710571, -1018.840759, 22.941605, 0.0000, 0.0000, 270.0000);
CreateObject(6052, 1995.655273, -2496.776367, 15.294515, 0.0000, 0.0000, 101.2500);
CreateObject(6052, 2009.749634, -2475.455811, 15.294515, 0.0000, 0.0000, 282.0321);
CreateObject(7979, 1990.588135, -2487.686279, 17.176052, 0.0000, 0.0000, 270.0000);
CreateObject(8302, 2014.096680, -2488.615479, 14.539410, 0.0000, 0.0000, 101.2500);
CreateObject(3663, 2134.942383, -2501.714844, 14.627648, 0.0000, 0.0000, 180.0000);
CreateObject(1634, 2164.834473, -2491.441162, 13.672318, 0.0000, 0.0000, 90.0000);
CreateObject(1632, 2810.529297, -2136.118408, 10.954803, 0.0000, 0.0000, 268.3585);
CreateObject(1634, 1537.346680, -2683.235352, 43.774727, 24.9237, 0.0000, 180.0000);
CreateObject(1634, 1545.432129, -2683.252441, 43.806072, 24.9237, 0.0000, 180.0000);
CreateObject(1503, 2149.018066, -1454.682617, 24.619331, 11.1727, 0.0000, 270.0000);
CreateObject(18451, 2131.106201, -1463.425903, 23.330685, 0.0000, 0.0000, 270.0000);
CreateObject(16317, 1971.033569, -1191.908569, 24.434814, 0.0000, 0.0000, 0.0000);
CreateObject(13641, 2460.293945, -2256.677490, 25.756744, 0.0000, 0.0000, 315.0000);
CreateObject(7980, 1827.398071, -1989.594238, 14.533839, 0.0000, 0.0000, 270.0000);
CreateObject(1696, 1655.024414, -2069.223145, 20.327126, 28.3614, 350.5462, 68.4368);
CreateObject(1634, 1693.828369, -1925.666870, 13.576348, 0.0000, 0.0000, 180.0000);
CreateObject(1631, 1748.410767, -1052.980835, 22.824717, 0.0000, 0.0000, 270.0000);
CreateObject(1660, 1767.498413, -1052.581055, 19.880856, 0.0000, 0.0000, 90.0000);
CreateObject(18609, 1666.542969, -1035.164429, 24.078718, 0.0000, 0.0000, 0.0000);
CreateObject(18451, 1687.832397, -1106.582886, 59.192482, 0.0000, 358.2811, 334.9217);
CreateObject(1634, 1639.352905, -1116.826660, 24.203568, 0.0000, 0.0000, 180.0000);
CreateObject(1634, 1639.330933, -1123.678467, 29.258400, 22.3454, 0.0000, 180.0000);
CreateObject(1634, 2713.636475, -1152.759277, 51.459545, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 2827.107422, -2114.896729, 10.895275, 0.0000, 0.0000, 186.0933);
so tell me guys, what exactly do i do w/ that?


Re: how do i make a map to work w/ my server? - Dujma - 04.01.2009

Open your GM

CTRL+F ->OnGameModeInIt

c/p that code under there


Re: how do i make a map to work w/ my server? - demonedslayer00 - 04.01.2009

Quote:
Originally Posted by Dujma
Open your GM

CTRL+F ->OnGameModeInIt

c/p that code under there
ok i tried that, i put it at the bottom of all the Ongamemodeinit stuff, and i get errors, heres what my compiler says:

Code:
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(301) : warning 225: unreachable code
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(301) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(302) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(303) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(304) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(305) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(306) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(307) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(308) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(309) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(310) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(311) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(312) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(313) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(314) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(315) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(316) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(317) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(318) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(319) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(320) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(321) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(322) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(323) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(324) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(325) : error 017: undefined symbol "CreateObject"
C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\scr\Super San Andreas(LS).pwn(326) : error 017: undefined symbol "CreateObject"

Compilation aborted.Pawn compiler 3.0.3367			Copyright © 1997-2005, ITB CompuPhase


26 Errors.
yea...sry im such a noob...