21.02.2014, 17:40
Hello,There is a problem with the Government Faction Vehicles ,its randomly spawn at the middle of the road like this
http://imgur.com/TBLUb9O
Here is the code of Their Spawning points
Can Someone Help me with it ?
http://imgur.com/TBLUb9O
Here is the code of Their Spawning points
pawn Код:
GovVehicles[0] = AddStaticVehicleEx(586,1523.9419,-1745.8218,13.0603,180.1327,0,0,FACTION_RESPAWN); // wayfarer 1
GovVehicles[1] = AddStaticVehicleEx(586,1518.7690,-1746.0435,13.0560,179.0840,0,0,FACTION_RESPAWN); // wayfarer 2
GovVehicles[2] = AddStaticVehicleEx(586,1513.6591,-1745.4011,13.0365,178.3171,0,0,FACTION_RESPAWN); // wayfarer 3
GovVehicles[3] = AddStaticVehicleEx(586,1508.5133,-1745.9935,13.0390,181.1902,0,0,FACTION_RESPAWN); // wayfarer 4
GovVehicles[4] = AddStaticVehicleEx(489,1522.8369,-1764.4650,13.6692,1.3408,0,0,FACTION_RESPAWN); // rancher 1
GovVehicles[5] = AddStaticVehicleEx(489,1517.6476,-1764.7990,13.6841,359.5275,0,0,FACTION_RESPAWN); // rancher 2
GovVehicles[6] = AddStaticVehicleEx(507,1512.6936,-1764.5790,13.3640,0.6816,0,0,FACTION_RESPAWN); // elegant 1
GovVehicles[7] = AddStaticVehicleEx(507,1507.6504,-1764.4520,13.3445,3.1255,0,0,FACTION_RESPAWN); // elegant 2
GovVehicles[8] = AddStaticVehicleEx(507,1502.6495,-1764.7074,13.3661,0.5360,0,0,FACTION_RESPAWN); // elegant 3
GovVehicles[9] = AddStaticVehicleEx(422,1497.4207,-1764.6604,13.5377,1.2666,6,1,FACTION_RESPAWN); // bobcat 1
GovVehicles[10] = AddStaticVehicleEx(422,1492.5718,-1764.8518,13.5298,2.8242,6,1,FACTION_RESPAWN); // bobcat 2
GovVehicles[11] = AddStaticVehicleEx(525,1434.6823,-1746.5524,13.4064,179.1908,6,1,FACTION_RESPAWN); // tow 1
GovVehicles[12] = AddStaticVehicleEx(525,1439.5997,-1746.7489,13.4377,182.5806,6,1,FACTION_RESPAWN); // tow 2
GovVehicles[13] = AddStaticVehicleEx(409,1444.6589,-1746.8171,13.3481,180.5839,0,0,FACTION_RESPAWN); // stretch 1
GovVehicles[14] = AddStaticVehicleEx(409,1450.0936,-1746.4009,13.3476,179.9007,0,0,FACTION_RESPAWN); // stretch 2 edit
GovVehicles[15] = AddStaticVehicleEx(507,1435.5287,-1764.5127,13.3487,1.1789,0,0,FACTION_RESPAWN); // elegant 4
GovVehicles[16] = AddStaticVehicleEx(507,1440.5353,-1764.7421,13.3657,357.1515,0,0,FACTION_RESPAWN); // elegant 5
GovVehicles[17] = AddStaticVehicleEx(405,1445.2782,-1764.7031,13.4490,358.3249,0,0,FACTION_RESPAWN); // sentinel 1
GovVehicles[18] = AddStaticVehicleEx(405,1450.3046,-1764.6954,13.4150,359.9719,0,0,FACTION_RESPAWN); // sentinel 2
GovVehicles[19] = AddStaticVehicleEx(579,1455.3574,-1764.6332,13.4726,359.3495,0,0,FACTION_RESPAWN); // huntley 1
GovVehicles[20] = AddStaticVehicleEx(579,1460.7816,-1764.5181,13.4507,0.0368,0,0,FACTION_RESPAWN); // huntley 2
GovVehicles[21] = AddStaticVehicleEx(507,1465.8745,-1764.5875,13.3653,358.3391,0,0,FACTION_RESPAWN); // elegant 6
GovVehicles[22] = AddStaticVehicleEx(507,1466.0336,-1773.1266,13.3653,180.6633,0,0,FACTION_RESPAWN); // elegant 8
GovVehicles[23] = AddStaticVehicleEx(405,1493.4794,-1772.7513,13.4167,181.4096,0,0,FACTION_RESPAWN); // sentinel 3
GovVehicles[24] = AddStaticVehicleEx(405,1493.5355,-1788.4271,13.4292,176.9271,0,0,FACTION_RESPAWN); // sentinel 4
for(new x;x<sizeof(GovVehicles);x++)
{
format(string, sizeof(string), "GOV %d", GovVehicles[x]);
SetVehicleNumberPlate(GovVehicles[x], string);
SetVehicleToRespawn(GovVehicles[x]);
}