Hiermit präsentiere ich meine neue Map.
-----------------------------------------------------------------------------------------------------------------------------------------------
Ein kleiner Donut Shop hinter dem Alhambra, hier kann man bei schönem Ambiente einfach mal so richtig abchillen ;D
Gut geeignet z.B. für Reallife Server wenn man noch ein zentral gelegenes Restaurant braucht.
-----------------------------------------------------------------------------------------------------------------------------------------------
Informationen
→ Objekte: 81
→ Mapdauer: 25 Minuten
→ Location: Alhambra
Ganz einfach unter OnGameModeInit einfügen:
CreateObject(18239, 1914.452148, -1721.145142, 12.280514, 0.0000, 0.0000, 180.0000);
CreateObject(1408, 1919.731567, -1727.564087, 13.142245, 0.0000, 0.0000, 0.0000);
CreateObject(1408, 1924.926514, -1727.591553, 13.142245, 0.0000, 0.0000, 0.0000);
CreateObject(1408, 1927.560059, -1724.988892, 13.142245, 0.0000, 0.0000, 90.0000);
CreateObject(1408, 1927.560059, -1719.713623, 13.142245, 0.0000, 0.0000, 90.0000);
CreateObject(1408, 1924.924316, -1717.016602, 13.142245, 0.0000, 0.0000, 0.0000);
CreateObject(643, 1925.712280, -1724.064697, 13.017346, 0.0000, 0.0000, 337.5000);
CreateObject(643, 1922.459351, -1720.746704, 13.017346, 0.0000, 0.0000, 315.0000);
CreateObject(643, 1925.935059, -1719.783813, 13.017346, 0.0000, 0.0000, 236.2501);
CreateObject(643, 1921.381836, -1725.430176, 13.017346, 0.0000, 0.0000, 315.0000);
CreateObject(1280, 1915.922607, -1714.396118, 12.868404, 0.0000, 0.0000, 270.0000);
CreateObject(673, 1927.417847, -1727.498413, 12.614198, 0.0000, 0.0000, 0.0000);
CreateObject(673, 1927.381958, -1717.281982, 12.597512, 0.0000, 0.0000, 11.2500);
CreateObject(673, 1923.575073, -1707.374878, 12.597512, 0.0000, 0.0000, 0.0000);
CreateObject(673, 1924.616333, -1698.923706, 12.597512, 0.0000, 0.0000, 0.0000);
CreateObject(673, 1925.567261, -1694.707764, 12.597512, 0.0000, 0.0000, 0.0000);
CreateObject(673, 1923.043823, -1697.293213, 12.597512, 0.0000, 0.0000, 0.0000);
CreateObject(673, 1928.917603, -1708.610718, 12.597512, 0.0000, 0.0000, 0.0000);
CreateObject(673, 1926.515137, -1705.019409, 12.597512, 0.0000, 0.0000, 0.0000);
CreateObject(673, 1921.069458, -1694.834717, 12.597512, 0.0000, 0.0000, 0.0000);
CreateObject(673, 1920.975342, -1702.318726, 12.597512, 0.0000, 0.0000, 0.0000);
CreateObject(1419, 1926.872192, -1693.996216, 13.078573, 0.0000, 0.0000, 0.0000);
CreateObject(1419, 1922.771118, -1693.996216, 13.078573, 0.0000, 0.0000, 0.0000);
CreateObject(1419, 1920.785522, -1696.202881, 13.078573, 0.0000, 0.0000, 90.0000);
CreateObject(1419, 1920.785522, -1700.202881, 13.078573, 0.0000, 0.0000, 90.0000);
CreateObject(1419, 1920.785522, -1704.102295, 13.078573, 0.0000, 0.0000, 90.0000);
CreateObject(1232, 1920.715210, -1698.242432, 15.223042, 0.0000, 0.0000, 0.0000);
CreateObject(1232, 1920.715210, -1706.011475, 15.202572, 0.0000, 0.0000, 0.0000);
CreateObject(1232, 1926.106323, -1693.925903, 15.121246, 0.0000, 0.0000, 0.0000);
CreateObject(9833, 1924.095703, -1702.286499, 15.324425, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1922.904541, -1704.560791, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1923.962769, -1703.256714, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1923.962769, -1703.256714, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1922.486328, -1702.184082, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1925.572876, -1702.333252, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1924.581299, -1705.248169, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1922.380005, -1703.777588, 12.788997, 0.0000, 0.0000, 281.2500);
CreateObject(870, 1925.508423, -1704.016235, 13.118448, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1923.957275, -1701.748535, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1926.367920, -1701.324097, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1925.798462, -1705.657593, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1922.583862, -1700.308472, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1924.016479, -1699.597900, 12.788997, 0.0000, 0.0000, 213.7501);
CreateObject(870, 1925.447021, -1698.860474, 12.788997, 0.0000, 0.0000, 315.0000);
CreateObject(870, 1922.273438, -1699.822754, 12.788997, 0.0000, 0.0000, 303.7500);
CreateObject(870, 1924.746460, -1696.405640, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1923.084717, -1695.463989, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1922.066406, -1696.889404, 12.788997, 0.0000, 0.0000, 337.5000);
CreateObject(870, 1927.174194, -1695.507935, 12.788997, 0.0000, 0.0000, 270.0000);
CreateObject(870, 1926.330933, -1697.615234, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1923.757324, -1698.017700, 12.788997, 0.0000, 0.0000, 326.2500);
CreateObject(870, 1926.822266, -1699.123779, 12.788997, 0.0000, 0.0000, 337.5000);
CreateObject(870, 1928.527100, -1696.460327, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1928.384521, -1698.261475, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1928.783447, -1700.035645, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1928.096191, -1701.907349, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1927.221313, -1703.590576, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1928.685547, -1703.237427, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1928.156616, -1704.755615, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1926.689941, -1698.472412, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1925.637451, -1696.533203, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(1419, 1920.775391, -1708.017212, 13.078573, 0.0000, 0.0000, 270.0000);
CreateObject(1419, 1922.818726, -1709.937500, 13.078573, 0.0000, 0.0000, 0.0000);
CreateObject(1419, 1926.894043, -1709.937500, 13.078573, 0.0000, 0.0000, 0.0000);
CreateObject(1419, 1928.543945, -1709.937500, 13.078573, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1922.377197, -1706.138672, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1922.354126, -1708.470215, 12.788997, 0.0000, 0.0000, 225.0000);
CreateObject(870, 1923.625366, -1708.706421, 12.788997, 0.0000, 0.0000, 303.7500);
CreateObject(870, 1923.328003, -1707.597534, 12.904594, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1925.151733, -1708.659546, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1926.361084, -1708.551636, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1927.812256, -1706.510010, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1928.447388, -1708.534912, 12.788997, 0.0000, 0.0000, 303.7500);
CreateObject(870, 1928.861572, -1706.629028, 12.788997, 0.0000, 0.0000, 303.7500);
CreateObject(870, 1927.097046, -1706.763428, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(870, 1925.080200, -1706.885742, 12.788997, 0.0000, 0.0000, 0.0000);
CreateObject(638, 1911.034668, -1714.364380, 13.047076, 0.0000, 0.0000, 90.0000);
CreateObject(2768, 1922.065674, -1720.639771, 13.459742, 0.0000, 0.0000, 168.7500);
CreateObject(2814, 1922.541382, -1720.749634, 13.422359, 0.0000, 0.0000, 0.0000);
CreateObject(2823, 1922.415527, -1720.347046, 13.420408, 0.0000, 0.0000, 348.7500);
CreateObject(2838, 1925.629395, -1724.126953, 13.415503, 0.0000, 0.0000, 0.0000);
Das waren die Objekte. Jetzt brauchen wir new's für die Enter/Exit Pickups.
Diese fügt ihr ganz oben unter den Includes ein:
new dinnereingang;
new dinnerausgang;
Nun die Pickups, auch wieder unter OnGameModeInit:
dinnereingang = CreatePickup(1318,2,1919.2650,-1714.6648,13.5471); //Enter Pfeil J&Js
dinnerausgang = CreatePickup(1318,2,377.2516,-192.9734,1000.6401); //Exit Pfeil J&Js
Und zu guter letzt bei OnPlayerPickupPickup:
if(pickupid == dinnereingang) //Wenn der Spieler in das Pickup "dinnereingang" geht...
{
SetPlayerPos(playerid,378.2409,-191.3101,1000.6328); //Teleportiert Spieler ins Restaurant
SetPlayerInterior(playerid,17); //Interior für den Spieler
SendClientMessage(playerid,0xFF00FFFF, "Welcome to J&Js Donut Shop!.");
}
if(pickupid == dinnerausgang) //Wenn der Spieler in das Pickup "dinnerausgang" geht...
{
SetPlayerPos(playerid,1919.8865,-1712.9575,13.5469); //Teleportiert Spieler aus dem Restaurant
SetPlayerInterior(playerid,0); //Interior für den Spieler
SendClientMessage(playerid,0xFF00FFFF, "Bye! See you soon!");
}
Das wars Jetzt habt ihr das Ding in eurer GameMode
Hier noch 2 Screens:
http://www.fotos-hochladen.net/view/samp016usfdntl9kz.png
http://www.fotos-hochladen.net/view/samp017d85svljfbr.png
lg