loading co-ordinates
#1

I'm creating a samp server (at least i'm trying to). I go on Samp Debug, and when i put a car in a place and then write /save, it saves the car position. If i live samp debug and then i get back there, can i load the co-ordinates to see my placed car?
Reply
#2

No, after they are created and saved, you can't load them with the Debug. You would need to load them into a mode on localhost.
Reply
#3

put them into OnGameModeInIt(playerid);
Reply
#4

Quote:
Originally Posted by √№ceC№ty
put them into OnGameModeInIt(playerid);
It's OnGameModeInit();
Reply
#5

what player id? what is that for? and how to get it?
Reply
#6

Just put the functions with the parameters in, in OnGameModeInit.
Reply
#7

its really simple you go to the file in sa folder where debug saves the cars copy the files inside and you go to the pwn file of your gamemode open it and there you will serach for public OnGameModeInit() under you paste the files exampme for it is

Quote:

OnGameModeInit()
AddStaticVehicle(400,1413.3267,-841.8914,47.8214,54.2200,101,1); //
AddStaticVehicle(515,1906.4537,-1493.8324,4.3577,92.4848,1,3); //
AddStaticVehicle(609,1389.0924,-952.4413,34.4055,175.4458,36,36); //
AddStaticVehicle(605,1415.2938,-932.3166,35.6763,297.9695,43,; //
AddStaticVehicle(604,1379.0751,-1043.6305,26.3669,210.5016,78,76); //
AddStaticVehicle(603,1479.5400,-1042.0585,23.4934,175.4887,75,77); //
AddPlayerClass(0,1602.3029,-1074.3490,23.9063,206.5066,0,0,0,0,0,0); //
AddStaticVehicle(589,1636.5006,-1161.0527,23.5548,103.8558,22,22); //
AddStaticVehicle(587,1715.6742,-1171.4607,23.3801,106.3594,53,1); //
AddStaticVehicle(585,1836.5603,-1191.6244,23.3387,93.5223,62,62); //
AddStaticVehicle(586,1859.6881,-1196.4529,22.6222,148.3957,10,1); //
AddStaticVehicle(582,1861.4290,-1268.2435,13.6175,190.1095,56,123); //
AddStaticVehicle(581,1899.8197,-1248.3948,13.6107,286.6505,75,1); //
AddStaticVehicle(580,2077.4587,-1262.7706,23.7001,128.8562,66,66); //
AddStaticVehicle(579,2087.7563,-1321.4132,23.9157,294.6303,53,53); //
AddStaticVehicle(576,2052.5115,-1342.0020,23.4297,140.3035,72,1); //
AddStaticVehicle(575,1955.7369,-1514.0131,3.6676,325.7954,31,64); //
AddStaticVehicle(573,2044.5017,-1529.2981,9.4646,265.5837,79,7); //
AddStaticVehicle(567,2045.4185,-1619.9481,13.3958,199.2391,90,96); //
AddStaticVehicle(566,2073.7485,-1600.2782,13.3143,341.6287,95,1); //
AddStaticVehicle(565,2083.9705,-1704.9557,13.0125,99.7869,53,53); //
AddStaticVehicle(562,2113.0400,-1751.1061,13.0637,336.2958,11,1); //
AddStaticVehicle(561,2198.9717,-1728.3770,13.2416,283.7284,67,; //
AddStaticVehicle(560,2399.5896,-1721.4904,13.3133,93.1082,17,1); //
AddStaticVehicle(559,2481.2954,-1723.4719,13.2121,271.5978,60,1); //
AddStaticVehicle(558,2499.9629,-1687.7057,13.1505,126.8173,117,1); //
AddStaticVehicle(555,2495.3464,-1652.6294,13.1247,1.8768,60,1); //
AddStaticVehicle(554,2354.0789,-1668.4606,13.6283,164.8721,45,32); //
AddStaticVehicle(552,2320.1104,-1457.5322,20.7236,7.9586,26,124); //
AddStaticVehicle(551,1836.6348,-1344.0154,13.3667,112.4594,75,1); //
AddStaticVehicle(550,1830.3573,-1676.1143,13.3218,241.8027,53,53); //
AddStaticVehicle(549,1824.9470,-1674.8438,13.1160,251.4440,75,39); //
AddStaticVehicle(547,1827.2665,-1677.2649,13.2411,13.2608,125,1); //
AddStaticVehicle(546,1820.6639,-1675.3519,13.1031,312.2346,2,62); //
AddStaticVehicle(546,1627.9401,-1723.1656,13.2786,70.8628,2,7; //
AddStaticVehicle(545,1553.6581,-1675.5457,16.0445,280.9817,44,96); //
AddStaticVehicle(544,1529.6128,-1641.5256,13.6184,279.1734,3,1); //
AddStaticVehicle(543,1308.3894,-1570.3116,13.3010,92.9062,67,; //
AddStaticVehicle(542,1287.8441,-1572.6960,13.1270,18.3217,31,93); //
AddStaticVehicle(541,1151.7292,-1587.9772,13.0560,115.2505,68,; //
AddStaticVehicle(540,1098.3676,-1765.1786,13.2118,337.9627,53,53); //
AddStaticVehicle(536,1087.7305,-1765.5051,13.0994,2.7414,26,96); //
AddStaticVehicle(535,1070.4918,-1772.7916,13.1117,359.9996,31,1); //
AddStaticVehicle(534,1059.2964,-1760.1932,13.2234,0.1976,53,53); //
AddStaticVehicle(533,1025.6406,-1571.6941,13.0972,43.4803,75,1); //
AddStaticVehicle(533,915.7395,-1507.8527,13.0809,27.8277,75,1); //
AddStaticVehicle(533,898.2505,-1438.4185,13.1769,43.3704,75,1); //
AddStaticVehicle(533,788.8738,-1403.3003,13.0857,19.5744,75,1); //
AddStaticVehicle(533,634.3320,-1385.9564,13.2360,71.8909,75,1); //
AddStaticVehicle(533,523.5883,-1394.5466,15.6602,35.6018,75,1); //
AddStaticVehicle(529,393.3357,-1406.6538,33.6884,59.0256,53,53); //
AddStaticVehicle(529,295.6030,-1482.2521,32.5258,107.1659,53,53); //
AddStaticVehicle(529,282.6672,-1693.7186,7.2705,347.0232,53,53); //
AddStaticVehicle(529,367.0973,-1774.5507,4.9624,223.4092,53,53); //
AddStaticVehicle(529,468.3185,-1770.2229,5.2167,209.7820,53,53); //
AddStaticVehicle(529,546.7509,-1732.0074,12.2043,262.0598,53,53); //
AddStaticVehicle(529,614.8175,-1720.9508,13.6599,280.8604,53,53); //
AddStaticVehicle(529,656.7314,-1765.6040,13.2246,172.8477,53,53); //
AddStaticVehicle(529,947.7372,-1785.2557,13.7406,314.4696,53,53); //
AddStaticVehicle(529,1022.3996,-1876.0630,12.4826,171.5181,53,53); //
AddStaticVehicle(529,1067.5117,-1879.4253,13.1093,280.2921,53,53); //

hope i helped you
Reply
#8

[img width=1024 height=616]http://i36.tinypic.com/2rfvf3c.jpg[/img]

I did it right?

Reply
#9

EXAMPLE HERE
just change the cars to you own cars! or you wanna keep this! lol
hope i helped you

pawn Код:
public OnGameModeInit()
{
    SetGameModeText("EXAMPLE"); //Mode
    AddStaticVehicle(433, 1721.5741, 1643.4054, 9.5353, 74.3589, -1, -1); //Barracks
    AddStaticVehicle(433, 1695.1302, 1639.3112, 10.3849, 183.2913, -1, -1); //Barracks
    AddStaticVehicle(433, 1684.2932, 1637.8832, 10.3914, 176.1080, -1, -1); //Barracks
    AddStaticVehicle(433, 1672.9894, 1636.9017, 10.3952, 178.2816, -1, -1); //Barracks
    AddStaticVehicle(433, 1659.7212, 1636.1038, 10.3983, 178.4809, -1, -1); //Barracks
    AddStaticVehicle(469, 1639.0604, 1542.1869, 10.3602, 70.1280, -1, -1); //Sparrow
    AddStaticVehicle(487, 1618.5881, 1549.5886, 10.3675, 70.1337, -1, -1); //Maverick
    AddStaticVehicle(519, 1477.4174, 1748.8395, 10.3787, 180.9571, -1, -1); //Shamal
    AddStaticVehicle(519, 1389.1379, 1312.8999, 10.3853, 359.5081, -1, -1); //Shamal
    AddStaticVehicle(593, 1278.8345, 1361.4579, 10.3888, 270.2686, -1, -1); //Dodo
    AddStaticVehicle(593, 1278.9390, 1323.3081, 10.3888, 269.4711, -1, -1); //Dodo
    AddStaticVehicle(425, 1432.3469, 1463.3197, 10.3847, 270.1535, -1, -1); //Hunter
    AddStaticVehicle(433, 1658.2374, 1614.9370, 10.3845, 270.0153, -1, -1); //Barracks
    AddStaticVehicle(520, 1337.9103, 1616.0109, 10.3839, 272.3032, -1, -1); //Hydra
    AddStaticVehicle(520, 1338.0575, 1586.2888, 10.3911, 264.2024, -1, -1); //Hydra
    AddStaticVehicle(520, 1337.0249, 1561.6356, 10.3953, 269.1727, -1, -1); //Hydra
    return 1;
}
Reply
#10

ok,but how to load them on localhost?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)