08.09.2009, 06:30
I got bored and decided to create a house interior, using MTA Race mod.









Here is the code:
and to get here:









Here is the code:
Код:
CreateObject(15036, 2779.590088, -1455.495361, 67.033951, 0.000000, 0.000000, 180.000019848); // CreateObject(2361, 2781.290039, -1458.442505, 65.879730, 0.000000, 0.000000, 89.999981276); // CreateObject(2339, 2775.470703, -1454.578125, 65.885910, 0.000000, 0.000000, 0.000000); // CreateObject(2131, 2779.346924, -1459.506470, 65.885910, 0.000000, 0.000000, 179.999962552); // CreateObject(1432, 2775.783936, -1458.544189, 66.018753, 0.000000, 0.000000, 0.000000); // CreateObject(1808, 2776.613281, -1454.262939, 65.881790, 0.000000, 0.000000, 0.000000); // CreateObject(2516, 2761.718506, -1446.249268, 69.527573, 0.000000, 0.000000, 0.000000); // CreateObject(2517, 2760.960693, -1444.236572, 69.519760, 0.000000, 0.000000, 0.000000); // CreateObject(2514, 2758.075684, -1445.858154, 69.526779, 0.000000, 0.000000, 89.999981276); // CreateObject(2524, 2758.090088, -1445.281250, 69.527573, 0.000000, 0.000000, 89.999981276); // CreateObject(14494, 2762.266113, -1446.101440, 71.106567, 0.000000, 0.000000, 0.000000); // CreateObject(2297, 2770.810791, -1451.865723, 69.513779, 0.000000, 0.000000, 134.999971914); // CreateObject(2298, 2768.936768, -1450.182251, 69.505943, 0.000000, 0.000000, 0.000000); // CreateObject(2332, 2773.061279, -1449.765991, 69.982643, 0.000000, 0.000000, -89.999981276); // CreateObject(2841, 2767.273193, -1448.711304, 69.519760, 0.000000, 0.000000, -89.999981276); // CreateObject(1743, 2767.945557, -1448.082153, 69.537720, 0.000000, 0.000000, 89.999981276); // CreateObject(1744, 2773.525146, -1446.770752, 70.902946, 0.000000, 0.000000, -89.999981276); // CreateObject(1762, 2772.380859, -1446.810425, 69.527596, 0.000000, 0.000000, -33.7500216264); // CreateObject(2204, 2781.658447, -1449.468018, 65.907036, 0.000000, 0.000000, -89.999981276); // CreateObject(2200, 2779.173096, -1447.087280, 65.886131, 0.000000, 0.000000, 0.000000); // CreateObject(2197, 2777.890869, -1448.441650, 65.879135, 0.000000, 0.000000, 0.000000); // CreateObject(2197, 2777.217041, -1448.443604, 65.879135, 0.000000, 0.000000, 0.000000); // CreateObject(2197, 2776.527588, -1448.444824, 65.879135, 0.000000, 0.000000, 0.000000); // CreateObject(2191, 2774.691162, -1447.614136, 65.892761, 0.000000, 0.000000, 0.000000); // CreateObject(2202, 2775.253906, -1452.273560, 65.879890, 0.000000, 0.000000, 179.999962552); // CreateObject(2607, 2776.915039, -1452.369995, 66.282631, 0.000000, 0.000000, 0.000000); // CreateObject(2190, 2777.037109, -1452.695068, 66.684158, 0.000000, 0.000000, 180.000019848); // CreateObject(2201, 2776.042969, -1452.346436, 66.683395, 0.000000, 0.000000, 89.999981276); // CreateObject(1715, 2776.908447, -1451.344360, 65.928551, 0.000000, 0.000000, 0.000000); // CreateObject(1726, 2764.073730, -1451.974609, 65.926239, 0.000000, 0.000000, 89.999981276); // CreateObject(1727, 2764.920410, -1453.860107, 65.933281, 0.000000, 0.000000, 134.999971914); // CreateObject(1727, 2764.268555, -1448.950195, 65.926247, 0.000000, 0.000000, 44.999990638); // CreateObject(2297, 2770.459229, -1450.364502, 65.927841, 0.000000, 0.000000, -134.999971914); // CreateObject(2232, 2770.206055, -1452.491333, 66.531700, 0.000000, 0.000000, -89.999981276); // CreateObject(2232, 2770.125488, -1449.755371, 66.531700, 0.000000, 0.000000, -89.999981276); // CreateObject(2099, 2770.487549, -1447.356201, 65.932228, 0.000000, 0.000000, -89.999981276); // CreateObject(630, 2764.302002, -1444.689331, 66.955177, 0.000000, 0.000000, 0.000000); // CreateObject(633, 2769.677490, -1445.080811, 66.927734, 0.000000, 0.000000, 0.000000); // CreateObject(638, 2770.218262, -1464.263184, 66.602409, 0.000000, 0.000000, 0.000000); // CreateObject(14706, 2766.812744, -1454.641602, 69.120239, 0.000000, 0.000000, 0.000000); // CreateObject(1798, 2754.420898, -1456.056030, 65.894310, 0.000000, 0.000000, 180.000019848); // CreateObject(2091, 2753.406982, -1453.994141, 65.897255, 0.000000, 0.000000, 0.000000); // CreateObject(2100, 2752.134521, -1455.713013, 65.900688, 0.000000, 0.000000, 89.999981276); // CreateObject(2627, 2755.979736, -1445.524658, 65.942757, 0.000000, 0.000000, 0.000000); // CreateObject(2628, 2760.906006, -1450.182007, 65.927574, 0.000000, 0.000000, -179.999962552); // CreateObject(2629, 2756.060791, -1449.311401, 65.903236, 0.000000, 0.000000, 89.999981276); // CreateObject(2630, 2759.771484, -1445.165894, 65.933990, 0.000000, 0.000000, 0.000000); //
Код:
if(strcmp(cmd, "/gotohouse", true) == 0) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 2766.967773, -1466.013916, 66.528175); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid, 2766.967773, -1466.013916, 66.528175); } SendClientMessage(playerid, COLOR_GRAD1, " You have been teleported !"); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; } } return 1; }