Szerző Téma: Objectek, admin kapu  (Megtekintve 914 alkalommal)

Nem elérhető .:Secur:.

  • 2430
  • GTA Hero
    • Profil megtekintése
Objectek, admin kapu
« Dátum: 2010. január 09. - 14:17:17 »
0 Show voters
Sziasztok!
Az lenne a gondom, hogy 150 objectnél többet szeretnék berakni úgy kb. 400-at ez hogyan lenne megoldható ???  :-\\
Másik gondom szeretnék egy olyan kaput ami csak 5-ös szint feletti adminoknak vagy rcon admoknak nyílik ki.
Zárva: CreateObject(16775, -2774.928711, -1540.619873, 142.531570, 0.0000, 0.0000, 45.0000);
Nyitva: CreateObject(16775, -2774.928711, -1540.619873, 130.257736, 0.0000, 0.0000, 45.0000);
Kérlek segítsetek, köszi!
A további objectek és kocsik:
AddStaticVehicle(495,-2871.0964,-1476.5315,136.2741,68.3478,99,25); //
AddStaticVehicle(411,-2816.0242,-1512.0289,139.0161,90.1709,4,57); //
AddStaticVehicle(405,-2806.0464,-1465.6068,136.9609,37.3284,69,87); //
CreateObject(973, -2326.572266, -2167.363037, 39.113514, 0.0000, 0.0000, 202.5000);
CreateObject(973, -2098.405762, -1903.846436, 107.547928, 0.0000, 342.8113, 70.9377);
CreateObject(973, -2096.531006, -1896.156006, 109.046516, 0.0000, 348.8273, 82.1877);
CreateObject(973, -2096.748535, -1888.062866, 110.176987, 0.0000, 353.1245, 104.6877);
CreateObject(973, -2101.927246, -1880.892822, 110.463661, 0.0000, 358.2811, 147.9688);
CreateObject(984, -2251.539795, -2074.926025, 119.783325, 0.0000, 0.0000, 303.7500);
CreateObject(984, -2258.496826, -2078.488037, 119.561745, 0.0000, 0.0000, 284.6877);
CreateObject(973, -2446.446777, -2079.467041, 125.748787, 0.0000, 353.9839, 202.5000);
CreateObject(973, -2627.804443, -2033.675537, 127.381279, 0.0000, 0.0000, 267.4217);
CreateObject(973, -2656.855957, -1955.687012, 127.467697, 0.0000, 0.0000, 301.1717);
CreateObject(17011, -2772.690186, -1525.850586, 138.053070, 0.0000, 0.0000, 85.7028);
CreateObject(3749, -2775.987061, -1540.485352, 144.861679, 0.0000, 0.0000, 45.0000);
CreateObject(8149, -2762.878662, -1464.691772, 140.131973, 0.8594, 359.1406, 355.2389);
CreateObject(980, -2761.853027, -1386.158936, 137.689865, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2761.892090, -1386.197388, 143.243942, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2773.254883, -1386.140259, 137.527756, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2773.448975, -1386.171021, 143.082474, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2784.521973, -1386.089966, 137.212219, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2784.463135, -1386.175171, 142.766296, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2795.663086, -1386.117065, 136.864853, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2795.757568, -1386.190796, 142.418930, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2806.808105, -1386.128784, 136.387192, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2806.659424, -1386.208496, 141.985519, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2817.838867, -1386.169678, 135.590988, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2817.935791, -1386.224365, 141.169006, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2827.425293, -1386.157959, 134.888351, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2825.927246, -1386.048950, 140.435593, 0.0000, 0.0000, 0.0000);
CreateObject(980, -2837.458008, -1386.047363, 133.758835, 0.0000, 349.6868, 0.0000);
CreateObject(980, -2836.973145, -1386.088501, 138.402176, 0.0000, 349.6868, 0.0000);
CreateObject(980, -2846.996582, -1386.017700, 130.282211, 0.0000, 326.4820, 0.0000);
CreateObject(980, -2847.255859, -1386.058838, 134.882919, 0.0000, 326.4820, 0.0000);
CreateObject(980, -2856.740723, -1385.908936, 124.466583, 0.0000, 326.4820, 0.0000);
CreateObject(980, -2857.371338, -1385.950073, 129.829773, 0.0000, 326.4820, 0.0000);
CreateObject(980, -2859.929688, -1385.863525, 124.095238, 0.0000, 258.5865, 0.0000);
CreateObject(980, -2777.291504, -1550.653931, 142.281723, 0.0000, 0.0000, 303.7501);
CreateObject(980, -2772.160156, -1560.288330, 142.694412, 0.0000, 0.0000, 292.5001);
CreateObject(980, -2770.003418, -1571.153198, 143.112015, 0.0000, 0.0000, 270.0000);
CreateObject(980, -2775.703125, -1576.852051, 142.839340, 0.0000, 0.0000, 180.0001);
CreateObject(980, -2786.937256, -1576.838623, 143.093704, 0.0000, 0.0000, 180.0001);
CreateObject(980, -2777.171631, -1550.751587, 147.022873, 0.0000, 0.0000, 303.7501);
CreateObject(980, -2772.071045, -1560.384888, 147.211655, 0.0000, 0.0000, 292.5000);
CreateObject(980, -2769.982910, -1571.217773, 147.914780, 0.0000, 0.0000, 270.0000);
CreateObject(980, -2775.674316, -1576.465576, 148.124710, 0.0000, 0.0000, 180.0001);
CreateObject(980, -2786.961426, -1576.884033, 148.515106, 0.0000, 0.0000, 180.0001);
CreateObject(980, -2798.072754, -1576.811523, 143.093704, 0.0000, 0.0000, 180.0001);
CreateObject(980, -2798.206787, -1576.856934, 148.530075, 0.0000, 0.0000, 180.0001);
CreateObject(980, -2808.731689, -1576.763184, 143.093704, 0.0000, 0.0000, 180.0001);
CreateObject(980, -2808.783691, -1576.808594, 148.560516, 0.0000, 0.0000, 180.0001);
CreateObject(980, -2819.575195, -1576.752319, 143.093704, 0.0000, 0.0000, 180.0001);
CreateObject(980, -2819.746338, -1576.721313, 148.647781, 0.0000, 0.0000, 180.0001);
CreateObject(980, -2830.612549, -1578.880859, 143.093704, 0.0000, 0.0000, 202.5000);
CreateObject(980, -2830.775146, -1578.939331, 148.647781, 0.0000, 0.0000, 202.5000);
CreateObject(980, -2841.739258, -1584.553467, 143.093704, 0.0000, 0.0000, 213.7500);
CreateObject(980, -2846.893066, -1587.868530, 143.093704, 0.0000, 0.0000, 213.7500);
CreateObject(980, -2856.506592, -1593.005981, 141.718857, 0.0000, 12.8916, 202.5000);
CreateObject(980, -2855.455566, -1592.544678, 147.338898, 0.0000, 12.8916, 202.5000);
CreateObject(980, -2864.977051, -1596.435303, 136.253159, 0.0000, 36.0963, 202.5000);
CreateObject(980, -2867.480957, -1597.521729, 140.104843, 0.0000, 36.0963, 202.5000);
CreateObject(980, -2862.707520, -1595.593750, 144.191895, 0.0000, 36.0963, 202.5000);
CreateObject(980, -2842.313232, -1584.991699, 148.625824, 0.0000, 0.0000, 213.7500);
CreateObject(980, -2846.351563, -1587.744751, 148.666687, 0.0000, 0.0000, 213.7500);
CreateObject(18259, -2881.002441, -1492.415405, 136.675949, 0.0000, 0.0000, 168.7499);
CreateObject(988, -2883.575439, -1479.920166, 135.661011, 0.0000, 0.0000, 258.7500);
CreateObject(1491, -2875.991699, -1492.182373, 136.782394, 0.0000, 0.0000, 260.4689);
CreateObject(1651, -2876.867920, -1492.849731, 139.718185, 0.0000, 291.2451, 348.7500);
CreateObject(1649, -2884.681641, -1485.026367, 138.819626, 0.8594, 2.5783, 82.1877);
CreateObject(1649, -2885.273438, -1486.493164, 138.575150, 0.8594, 2.5783, 262.1878);
CreateObject(1649, -2886.585205, -1495.680054, 138.443619, 0.0000, 0.0000, 258.7500);
CreateObject(1649, -2883.695801, -1498.959839, 139.230988, 0.0000, 0.0000, 173.1245);
CreateObject(1649, -2879.591064, -1499.638794, 138.838150, 0.0000, 0.0000, 168.7501);
CreateObject(1649, -2886.333984, -1496.170166, 138.716278, 0.0000, 0.0000, 81.4056);
CreateObject(1649, -2876.956543, -1497.639526, 138.879028, 0.0000, 0.0000, 261.4056);
CreateObject(1649, -2875.417969, -1487.708740, 138.458481, 0.0000, 0.0000, 261.4056);
CreateObject(1649, -2884.429932, -1499.213867, 138.600449, 0.0000, 0.0000, 351.4059);
CreateObject(1649, -2880.219482, -1499.842529, 138.975983, 0.0000, 0.0000, 351.4059);
CreateObject(1649, -2876.478516, -1496.558594, 138.583755, 0.0000, 0.0000, 81.4057);
CreateObject(1649, -2874.937500, -1487.276489, 138.596680, 0.0000, 0.0000, 81.4056);
CreateObject(1651, -2881.380615, -1482.725342, 138.519012, 0.0000, 0.0000, 80.3915);
CreateObject(1651, -2876.994629, -1483.397461, 138.681824, 0.0000, 0.0000, 80.3915);
CreateObject(1651, -2877.639160, -1483.679688, 138.760315, 0.0000, 0.0000, 260.3916);
CreateObject(1651, -2881.731934, -1483.016479, 138.995102, 0.0000, 0.0000, 260.3916);
CreateObject(1646, -2875.197998, -1498.274048, 137.115311, 0.0000, 0.0000, 78.7500);
CreateObject(1646, -2875.017578, -1497.267578, 137.115311, 0.0000, 0.0000, 78.7500);
CreateObject(1646, -2874.826660, -1496.320190, 137.115311, 0.0000, 0.0000, 78.7500);
CreateObject(1741, -2885.127686, -1498.297119, 136.774445, 0.0000, 0.0000, 78.7500);
CreateObject(1743, -2884.751221, -1496.556030, 136.795837, 0.0000, 0.0000, 78.7500);
CreateObject(1741, -2884.593018, -1494.778564, 136.774445, 0.0000, 0.0000, 78.7500);
CreateObject(1769, -2884.960693, -1492.547363, 136.778854, 0.0000, 0.0000, 78.7500);
CreateObject(1769, -2882.859863, -1493.609985, 136.778854, 0.0000, 0.0000, 168.7500);
CreateObject(1769, -2883.433594, -1490.933228, 136.778854, 0.0000, 0.0000, 348.7500);
CreateObject(1769, -2881.273926, -1492.240356, 136.778854, 0.0000, 0.0000, 258.7500);
CreateObject(1813, -2883.766602, -1492.746094, 136.772842, 0.0000, 0.0000, 348.7500);
CreateObject(2014, -2877.279053, -1484.278564, 136.627869, 0.0000, 0.0000, 348.7500);
CreateObject(2016, -2878.277588, -1484.260498, 136.727890, 0.0000, 0.0000, 348.7500);
CreateObject(2018, -2884.525146, -1487.676392, 136.777878, 0.0000, 0.0000, 78.7500);
CreateObject(2019, -2884.328125, -1486.692627, 136.777878, 0.0000, 0.0000, 78.7500);
CreateObject(2137, -2879.344238, -1484.419312, 136.776840, 0.0000, 0.0000, 348.7500);
CreateObject(2141, -2876.029541, -1484.624756, 136.790985, 0.0000, 0.0000, 348.7500);
CreateObject(2163, -2885.437988, -1490.595093, 136.789612, 0.0000, 0.0000, 78.7500);
CreateObject(2164, -2885.434082, -1490.591675, 137.713898, 0.0000, 0.0000, 78.7500);
CreateObject(2451, -2872.287842, -1500.045288, 135.653000, 0.0000, 0.0000, 78.7500);
CreateObject(1661, -2883.162354, -1496.273193, 139.678848, 0.0000, 0.0000, 0.0000);
CreateObject(1701, -2882.731934, -1495.469727, 136.771851, 0.0000, 0.0000, 168.7500);
CreateObject(1717, -2883.952148, -1495.491211, 136.775070, 0.0000, 0.0000, 303.7500);
CreateObject(1736, -2885.557861, -1493.208496, 139.435074, 0.0000, 0.0000, 78.7500);
CreateObject(1738, -2885.529053, -1492.706665, 137.282547, 0.0000, 0.0000, 258.7500);
CreateObject(1778, -2884.938721, -1488.452271, 136.776062, 0.0000, 0.0000, 146.2500);
CreateObject(1828, -2882.728271, -1492.581055, 136.748917, 0.0000, 0.0000, 348.7500);
CreateObject(2002, -2880.112793, -1483.893188, 136.773483, 0.0000, 0.0000, 348.7500);
CreateObject(2190, -2878.717773, -1499.518433, 137.507446, 0.0000, 0.0000, 146.2500);
CreateObject(2192, -2881.549805, -1497.660522, 142.692398, 0.0000, 0.0000, 348.7500);
CreateObject(2229, -2882.241943, -1495.113159, 136.777878, 0.0000, 0.0000, 348.7500);
CreateObject(2229, -2883.513672, -1495.139771, 137.054977, 0.0000, 0.0000, 348.7500);
CreateObject(2231, -2881.971436, -1499.112427, 136.777878, 0.0000, 0.0000, 168.7501);
CreateObject(2332, -2877.009033, -1494.319458, 137.240768, 0.0000, 0.0000, 258.7499);
CreateObject(2344, -2883.177490, -1495.366943, 138.006256, 0.0000, 0.0000, 236.2501);
CreateObject(2515, -2884.369873, -1485.651611, 137.943283, 0.0000, 0.0000, 78.7500);
CreateObject(2517, -2883.931396, -1484.268799, 136.770065, 0.0000, 0.0000, 348.7500);
CreateObject(2525, -2881.610840, -1483.630127, 136.777878, 0.0000, 0.0000, 0.0000);
CreateObject(2628, -2881.767090, -1488.991699, 136.771912, 0.0000, 0.0000, 78.7500);
CreateObject(2813, -2883.172363, -1492.362183, 137.276382, 0.0000, 0.0000, 0.0000);
CreateObject(2816, -2882.646484, -1492.390991, 137.276260, 0.0000, 0.0000, 281.2500);
CreateObject(2824, -2883.585449, -1492.151611, 137.275833, 0.0000, 0.0000, 236.2501);
CreateObject(2828, -2885.850098, -1495.770264, 138.056870, 0.0000, 0.0000, 236.2501);
CreateObject(2833, -2875.930420, -1492.373047, 136.777451, 0.0000, 0.0000, 258.7500);
CreateObject(2863, -2878.375244, -1484.227905, 137.699173, 0.0000, 0.0000, 0.0000);
CreateObject(1509, -2877.266846, -1484.323608, 137.825317, 0.0000, 0.0000, 0.0000);
CreateObject(2377, -2884.971680, -1489.035400, 138.187714, 0.0000, 0.0000, 78.7500);
CreateObject(1562, -2878.041260, -1497.846069, 137.417084, 0.0000, 0.0000, 348.7500);
CreateObject(1826, -2878.987305, -1499.117920, 136.776443, 0.0000, 0.0000, 348.7500);
CreateObject(1826, -2879.183350, -1496.489136, 136.776443, 0.0000, 0.0000, 348.7500);
CreateObject(1562, -2878.359863, -1495.237671, 137.417084, 0.0000, 0.0000, 348.7500);
CreateObject(1782, -2878.527100, -1496.423096, 137.670547, 0.0000, 0.0000, 168.7500);
CreateObject(1783, -2878.516846, -1496.430298, 137.834320, 0.0000, 0.0000, 168.7500);
CreateObject(1785, -2879.247803, -1496.308228, 137.687897, 0.0000, 0.0000, 168.7500);
CreateObject(1788, -2878.514648, -1496.434570, 137.976593, 0.0000, 0.0000, 168.7500);
CreateObject(3384, -2877.662842, -1496.852051, 138.004547, 0.0000, 0.0000, 348.7500);
CreateObject(14384, -2817.324951, -1527.966309, 141.336349, 0.0000, 0.0000, 180.0000);
CreateObject(5678, -2828.654785, -1525.605469, 140.594437, 0.0000, 0.0000, 191.2500);
CreateObject(2841, -2816.682617, -1522.013916, 139.843750, 0.0000, 0.0000, 270.0000);
CreateObject(2718, -2811.437500, -1521.671265, 142.653534, 0.0000, 0.0000, 270.0000);
CreateObject(2628, -2812.149414, -1530.408691, 139.837784, 0.0000, 0.0000, 180.0000);
CreateObject(2575, -2817.831787, -1517.668579, 140.225998, 0.0000, 0.0000, 0.0000);
CreateObject(2525, -2812.038818, -1518.514038, 139.843750, 0.0000, 0.0000, 270.0000);
CreateObject(2192, -2808.499756, -1530.153198, 142.969040, 0.0000, 0.0000, 303.7500);
CreateObject(1788, -2820.155518, -1523.000732, 139.911743, 0.0000, 0.0000, 90.0000);
CreateObject(1786, -2820.387207, -1523.058960, 139.981033, 0.0000, 0.0000, 90.0000);
CreateObject(1481, -2805.492188, -1529.234497, 138.992188, 0.0000, 0.0000, 56.2500);
CreateObject(1723, -2817.516602, -1521.961792, 139.841797, 0.0000, 0.0000, 270.0000);
CreateObject(1998, -2820.312500, -1517.042114, 139.843750, 0.0000, 0.0000, 0.0000);
CreateObject(1715, -2819.332275, -1517.546265, 139.885361, 0.0000, 0.0000, 180.0000);
CreateObject(17699, -2778.861084, -1473.981934, 140.778122, 0.0000, 0.0000, 247.5000);
CreateObject(14495, -2779.389160, -1470.176392, 138.139755, 0.0000, 0.0000, 67.5000);
CreateObject(14492, -2773.795654, -1473.036133, 138.039352, 0.0000, 0.0000, 157.5000);
CreateObject(14526, -2778.944336, -1469.922729, 138.148468, 0.0000, 0.0000, 67.5000);
CreateObject(643, -2778.097412, -1480.975830, 137.365784, 0.0000, 0.0000, 0.0000);
CreateObject(1723, -2781.687500, -1465.515259, 136.293564, 0.0000, 0.0000, 67.5000);
CreateObject(17698, -2303.793213, -1631.886841, 485.613770, 0.0000, 0.0000, 78.7500);
CreateObject(14495, -2304.425781, -1630.229980, 484.589447, 0.0000, 0.0000, 78.7500);
CreateObject(14492, -2298.366211, -1631.957397, 484.474487, 0.0000, 0.0000, 168.7501);
CreateObject(14526, -2304.393311, -1630.152954, 484.598877, 0.0000, 0.0000, 78.7500);
« Utoljára szerkesztve: 2010. január 09. - 14:44:30 írta Sucre »

Nem elérhető Csabesz

  • 7827
    • Profil megtekintése
Objectek, admin kapu
« Válasz #1 Dátum: 2010. január 09. - 15:53:23 »
0 Show voters
Több objecthez EZT használd.
Kapuhoz EZT használd.
A kaput megcsinálhatom én is, csak mond meg, hogy hogy müködjön...
Pl: /nyit 5 másodpercmúlva bezár, vagy /nyit /zár stb.
Csabesz
« Utoljára szerkesztve: 2010. január 09. - 15:55:48 írta Csabesz »

jana4

  • Vendég
Objectek, admin kapu
« Válasz #2 Dátum: 2010. január 09. - 18:01:54 »
+1 Show voters
Megcsináltam neked a kaput.

tessék:

 
#include <a_samp>
new lift;
public OnFilterScriptInit(  )
{
lift = CreateObject(16775, -2774.928711, -1540.619873, 142.531570, 0.0000, 0.0000, 45.0000);
return 1;
}
public OnFilterScriptExit(  )
{
DestroyObject(lift);
return 1;
}
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if(!strcmp(\"/nyit\", cmdtext, true) )
{
        if( IsPlayerAdmin( playerid ) )
{
       MoveObject(lift, -2774.928711, -1540.619873, 130.257736, 2); // 2 a sebessége
}
else
{
    SendClientMessage(playerid, 0xFF3366FF, \"Nem vagy RCON admin!\");
}
    return 1;
}
if(!strcmp(\"/zár\", cmdtext, true) )
{
    if( IsPlayerAdmin( playerid ) )
    {
       MoveObject(lift, -2774.928711, -1540.619873, 142.531570, 2);
}
else
{
       SendClientMessage(playerid, 0xFF3366FF, \"Nem vagy RCON admin!\");
}
   return 1;
}
return 0;
}

 
Ha bármi probléma lenne ezzel, szólj kijavítom. üdv.

Nem elérhető .:Secur:.

  • 2430
  • GTA Hero
    • Profil megtekintése
Objectek, admin kapu
« Válasz #3 Dátum: 2010. január 09. - 20:34:30 »
0 Show voters
ScreaM nagyon de nagyon köszönöm!
Egyik ügy megoldva, a  y-object köszi de nem kelett mert írták is hogy a 0.2x többet is felismer mint 150, akár 300 nyitható, csukható kaput is.
Igaz, az összes object benne van!!
Nagyon köszönöm a segítségeteket!  ;)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal