VEhicles respawning
#1

hello i got some vehicles in my map

pawn Код:
AddStaticVehicle(577,1568.3270,1346.7057,12.0495,318.5035,8,10); // ls 1
    AddStaticVehicle(577,1547.8073,1267.2119,11.9450,275.5196,8,10); // lv
    AddStaticVehicle(577,1544.7758,1508.7390,12.0430,271.1868,8,10); // lv
    AddStaticVehicle(577,1572.3159,1553.6760,11.9947,211.1031,8,10); // ls maybe delete 4
    AddStaticVehicle(577,1630.2239,1561.9304,11.9860,231.2980,8,10); // ls 5
    AddStaticVehicle(577,1526.4872,1816.4215,11.9863,0.0402,8,10); // ls 6
    AddStaticVehicle(577,1547.4481,1442.0571,11.9905,274.1866,8,10); // new lv
   
    AddStaticVehicle(583,1573.4437,1274.3994,10.3529,359.5651,1,1); // pilot TUG
    AddStaticVehicle(583,1581.2009,1369.5222,10.3960,45.6868,1,1); // pilot TUG
    AddStaticVehicle(583,1574.0562,1404.4244,10.3803,0.4098,1,1); // pilot TUG
    AddStaticVehicle(583,1570.5330,1513.4991,10.3768,356.7982,1,1); // pilot TUG
    AddStaticVehicle(583,1590.5936,1534.1096,10.3654,306.7217,1,1); // pilot TUG
    AddStaticVehicle(583,1653.2491,1549.6072,10.3295,322.7321,1,1); // pilot TUG
    AddStaticVehicle(583,1521.0950,1841.9137,10.3609,90.1276,1,1); // pilot TUG
    AddStaticVehicle(407,1354.8157,1708.4165,11.0562,270.0251,3,3); // 1
    AddStaticVehicle(544,1355.1681,1720.4104,11.0538,271.0234,3,3); // fire 2
    AddStaticVehicle(416,1354.6786,1761.7197,10.9694,270.4877,1,3); // ambulance
    AddStaticVehicle(416,1354.9373,1749.7646,10.9691,270.7307,1,3); // ambulance
    AddStaticVehicle(563,1375.6815,1771.1339,11.5192,181.1407,1,3); // fire heli
    AddStaticVehicle(417,1389.7308,1771.8191,10.8776,178.4751,1,3); // ambulance
    AddStaticVehicle(548,1406.1139,1771.9403,12.4352,176.0219,1,3); // 3 heli
    AddStaticVehicle(533,1328.5804,1279.3430,10.5294,359.7560,6,6); // car obslugi
    AddStaticVehicle(583,1325.6919,1279.1870,10.3608,359.7276,6,6); // airport guy
    AddStaticVehicle(583,1322.0895,1279.1100,10.3608,0.5702,6,6); // tug poprawiony

    AddStaticVehicle(607,1319.0575,1279.0862,10.3608,0.3360,6,6); // naczepa
    AddStaticVehicle(607,1315.7856,1279.4363,10.3608,1.7585,6,6); // naczepa
    AddStaticVehicle(485,1312.4906,1279.3282,10.3608,1.8112,6,6); // baggage

    AddStaticVehicle(519,1334.6029,1568.2207,12.1347,84.3171,6,107); // 1
    AddStaticVehicle(519,1334.8606,1616.7402,12.1334,87.8930,6,107); // shamal 2

    AddStaticVehicle(583,1318.9154,1550.6875,10.3606,272.4911,1,1); // pilot car
    AddStaticVehicle(583,1328.3976,1632.1599,10.3607,270.7966,1,1); // pilot car
    AddStaticVehicle(485,1309.3406,1278.9646,10.4777,0.6508,6,6); // baggage
    AddStaticVehicle(608,1306.2528,1279.1674,10.4756,0.4593,6,6); // stairs
    AddStaticVehicle(608,1302.9615,1279.3130,10.4776,359.2658,6,6); // stairs

//sf
    AddStaticVehicle(577,-1341.1686,-228.6341,15.3263,136.6781,8,10); // sf
    AddStaticVehicle(416,-1277.4515,32.2462,14.2975,136.1467,3,1); // amb
    AddStaticVehicle(416,-1271.7682,26.4748,14.2976,134.2556,3,1); // amb
    AddStaticVehicle(407,-1257.5452,13.9480,14.3839,131.1390,3,3); // fire sf
    AddStaticVehicle(563,-1185.2100,26.3753,14.8442,226.0997,3,3); // heli fire
    AddStaticVehicle(439,-1251.5718,29.1356,14.0445,136.3740,6,6); // robotnik yellow sf
    AddStaticVehicle(439,-1252.4832,46.8390,14.0321,224.7105,6,6); // robotnik yellow sf
    AddStaticVehicle(485,-1236.8683,57.6047,13.7892,135.7243,5,0); // baggage sf
    AddStaticVehicle(485,-1234.0028,54.9555,13.7898,136.3883,5,0); // baggage sf
    AddStaticVehicle(608,-1234.0521,50.6474,13.7921,134.3806,6,6); // stairs
    AddStaticVehicle(608,-1230.7471,47.3445,13.7942,133.5099,6,6); // stairs
    AddStaticVehicle(583,-1239.1793,21.7017,13.6888,226.5837,6,6); // tug
    AddStaticVehicle(583,-1242.0082,19.0328,13.6890,223.1434,6,6); // tug
    AddStaticVehicle(583,-1244.2490,16.5934,13.6890,221.4691,6,6); // tug
    AddStaticVehicle(606,-1227.2631,33.5226,13.6870,311.6298,101,117); // naczepa
    AddStaticVehicle(606,-1230.0872,35.9007,13.6809,318.1060,125,99); // naczepa
    AddStaticVehicle(606,-1232.6254,38.6562,13.6792,317.7712,19,121); // naczepa
    AddStaticVehicle(485,-1241.9484,-57.8859,13.8037,134.8379,27,61); // baggage
    AddStaticVehicle(606,-1239.3621,-55.2260,13.8090,133.1764,14,69); // naczepa
    AddStaticVehicle(606,-1236.7783,-52.4764,13.8060,134.6038,34,64); // naczepa
    AddStaticVehicle(606,-1234.1169,-49.8868,13.8078,135.3446,30,28); // naczepa

    AddStaticVehicle(583,-1351.5830,-246.2638,13.6873,44.8857,1,1); // tug sf
    AddStaticVehicle(577,-1275.0143,-37.9147,15.3634,316.8560,8,10); // samolot sf
    AddStaticVehicle(583,-1261.5730,-15.3896,13.6887,224.6971,1,1); // tug sf
    AddStaticVehicle(544,-1262.0494,17.5099,14.3802,135.2503,3,3); // fire sf
    AddStaticVehicle(417,-1222.4689,-10.6322,16.3367,224.9646,3,3); // heli

    AddStaticVehicle(519,-1305.5052,-0.7493,15.4642,312.3286,6,107); // sf plane
    AddStaticVehicle(583,-1292.3201,14.7624,13.6888,224.7232,1,1); // pilot tug

    AddStaticVehicle(447,-1197.8213,62.3406,14.3065,318.9872,40,28); // sparrow SF
    AddStaticVehicle(447,-1190.0648,54.5891,14.3180,313.1237,88,110); // sparrow SF 2

    AddStaticVehicle(583,-1137.5984,-191.7080,13.6845,202.3214,1,1); // tug sf
    AddStaticVehicle(583,-1291.5135,-373.5877,13.6891,13.2882,1,1); // tug sf 2
    AddStaticVehicle(583,-1318.4238,-477.0428,13.6889,30.8387,1,1); // tug sf 3
    AddStaticVehicle(577,-1298.3373,-459.2384,15.2837,118.0091,8,10); // BA 1 sf
    AddStaticVehicle(577,-1152.8274,-205.2293,15.2879,298.2018,8,10); // BA 2 sf
    AddStaticVehicle(577,-1271.9231,-598.4506,15.3317,181.5269,8,10); // BA 3 SF
    AddStaticVehicle(577,-1273.2252,-365.6631,15.3651,97.1148,8,10); // samolot sf
    AddStaticVehicle(577,-1169.4525,-426.1283,15.3640,194.8136,8,10); // sf
    AddStaticVehicle(577,-1335.3744,-600.7740,15.3663,184.7301,8,10); // sf

    AddStaticVehicle(583,-1265.0344,-624.2997,13.6889,89.2974,62,7); // tug sf 1
    AddStaticVehicle(583,-1328.0798,-626.6883,13.6844,88.7999,62,7); // tug sf 2

    AddStaticVehicle(583,-1157.9142,-451.1377,13.6890,272.2637,1,1); // pilot tug
    AddStaticVehicle(593,-1462.3573,-522.8834,14.5148,237.0722,120,48); // cessna
    AddStaticVehicle(593,-1429.1776,-506.3491,14.5092,176.8825,2,100); // cessna
    AddStaticVehicle(593,-1445.1394,-512.4703,14.5134,201.3859,10,110); // cessna
    AddStaticVehicle(593,-1418.5299,-526.9357,14.5155,179.2849,10,110); // cessna
    AddStaticVehicle(593,-1452.0105,-540.1071,14.5127,246.0456,2,100); // cessna
    AddStaticVehicle(593,-1430.9690,-545.1588,14.5199,206.3474,2,100); // cessna
and for some reason they respawn all at once randomly like once when i join the server and randomly when im playing. Does any one know why?
Reply
#2

try to use createvehicle
Reply
#3

what would the difference be ? I think its the VehcileEX that respawn ;/
Reply
#4

Quote:
Originally Posted by Pawel2k9
what would the difference be ? I think its the VehcileEX that respawn ;/
Make a command like "/res" and there add "createvehicle" instead of AddStaticVehicle
Example:
if(!strcmp(cmdtext,"/res",true))
{
CreateVehicle(577,1568.3270,1346.7057,12.0495,318. 5035,8,10);
//and all other vehicles
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)