27.03.2014, 19:13
When i'm the only one on the server the GovVehicles stays in their Positions Perfectly ,but as soon as another player comes in the GovVehicles randomly Get TP'ed infront of the Cityhall's road ,anyone knows what is the problem ?
pawn Код:
GovVehicles[0] = AddStaticVehicleEx(586,1471.5721,-1766.3513,12.8753,269.9355,0,0,FACTION_RESPAWN); // Wayfarer
GovVehicles[1] = AddStaticVehicleEx(586,1486.3951,-1766.0247,12.8764,92.2623,0,0,FACTION_RESPAWN); // Wayfarer
GovVehicles[2] = AddStaticVehicleEx(586,1471.5504,-1759.1459,12.8765,271.0630,0,0,FACTION_RESPAWN); // Wayfarer
GovVehicles[3] = AddStaticVehicleEx(586,1486.3925,-1758.2421,12.8682,96.2612,0,0,FACTION_RESPAWN); // Wayfarer
GovVehicles[4] = AddStaticVehicleEx(489,1492.7313,-1765.3391,13.6830,1.1179,0,0,FACTION_RESPAWN); // Rancher
GovVehicles[5] = AddStaticVehicleEx(489,1497.5990,-1765.2130,13.6835,0.1288,0,0,FACTION_RESPAWN); // Rancher
GovVehicles[6] = AddStaticVehicleEx(507,1502.5812,-1764.8921,13.3717,359.6255,0,0,FACTION_RESPAWN); // Elegant
GovVehicles[7] = AddStaticVehicleEx(507,1507.4768,-1764.8385,13.3751,358.7404,0,0,FACTION_RESPAWN); // Elegant
GovVehicles[8] = AddStaticVehicleEx(507,1512.9557,-1764.7832,13.3754,358.5092,0,0,FACTION_RESPAWN); // Elegant
GovVehicles[9] = AddStaticVehicleEx(422,1517.5592,-1765.1165,13.5257,1.2890,6,1,FACTION_RESPAWN); // Bobcat
GovVehicles[10] = AddStaticVehicleEx(422,1522.7751,-1765.0665,13.5256,1.5651,6,1,FACTION_RESPAWN); // Bobcat
GovVehicles[11] = AddStaticVehicleEx(525,1523.7998,-1745.8564,13.4721,181.3377,6,1,FACTION_RESPAWN); // Tow Truck
GovVehicles[12] = AddStaticVehicleEx(525,1518.7831,-1745.8405,13.4862,178.6240,6,1,FACTION_RESPAWN); // Tow Truck
GovVehicles[13] = AddStaticVehicleEx(507,1513.6053,-1746.1139,13.4209,181.1264,0,0,FACTION_RESPAWN); // Elegant
GovVehicles[14] = AddStaticVehicleEx(507,1508.6384,-1746.3895,13.4111,180.9290,0,0,FACTION_RESPAWN); // Elegant
GovVehicles[15] = AddStaticVehicleEx(409,1435.3224,-1763.5519,13.3798,1.6246,0,0,FACTION_RESPAWN); // Stretch
GovVehicles[16] = AddStaticVehicleEx(409,1465.6536,-1763.9855,13.3396,0.4620,0,0,FACTION_RESPAWN); // Stretch
GovVehicles[17] = AddStaticVehicleEx(405,1460.4603,-1764.8055,13.3432,0.8739,0,0,FACTION_RESPAWN); // Sentinel
GovVehicles[18] = AddStaticVehicleEx(405,1440.4537,-1764.9371,13.3431,359.2853,0,0,FACTION_RESPAWN); // Sentinel
GovVehicles[19] = AddStaticVehicleEx(579,1445.5262,-1764.8864,13.3450,1.7320,0,0,FACTION_RESPAWN); // Huntley
GovVehicles[20] = AddStaticVehicleEx(579,1455.6674,-1764.8552,13.3443,356.2202,0,0,FACTION_RESPAWN); // Huntley
GovVehicles[21] = AddStaticVehicleEx(507,1450.5551,-1764.8843,13.3747,0.1327,0,0,FACTION_RESPAWN); // Elegant
GovVehicles[22] = AddStaticVehicleEx(507,1449.6295,-1746.6772,13.3761,181.2267,0,0,FACTION_RESPAWN); // Elegant
GovVehicles[23] = AddStaticVehicleEx(405,1444.7064,-1746.5807,13.3433,180.5043,0,0,FACTION_RESPAWN); // Sentinel
GovVehicles[24] = AddStaticVehicleEx(579,1439.8459,-1746.3910,13.3407,180.2070,0,0,FACTION_RESPAWN); // Huntley
GovVehicles[25] = AddStaticVehicleEx(507,1434.5997,-1746.6168,13.3756,177.4342,0,0,FACTION_RESPAWN); // Elegant
for(new x;x<sizeof(GovVehicles);x++)
{
format(string, sizeof(string), "GOV %d", GovVehicles[x]);
SetVehicleNumberPlate(GovVehicles[x], string);
SetVehicleToRespawn(GovVehicles[x]);
}