Vehicles dont spawn
#1

Код:
swatranch[0] = AddStaticVehicle(490,1525.3594,-1460.3412,9.6272,179.8099,0,79); // LS SWAT Rancher 1
	swatranch[1] = AddStaticVehicle(490,1521.6631,-1460.2740,9.6276,180.6497,0,79); // LS SWAT Rancher 2
	swatenf[0] = AddStaticVehicle(427,1518.1534,-1461.5696,9.6319,180.2013,0,79); // LS SWAT Enforcer 1
	swatenf[1] = AddStaticVehicle(427,1513.6299,-1462.3014,9.6319,180.8880,0,79); // LS SWAT Enforcer 2
	swattruck[0] = AddStaticVehicle(528,1512.0623,-1478.0833,9.5435,357.4178,0,0); // LS SWAT Truck 1
	swattruck[1] = AddStaticVehicle(528,1515.5912,-1477.9873,9.5443,358.3199,0,0); // LS SWAT Truck 2
	swatwash[0] = AddStaticVehicle(421,1519.1044,-1477.6667,9.3825,0.7312,0,0); // LS SWAT Washington 1
	swatwash[1] = AddStaticVehicle(421,1522.3833,-1477.4086,9.3825,0.7041,0,0); // LS SWAT Washington 2
	sapdcmd[0] = AddStaticVehicle(490,1530.8740,-1645.3673,6.0183,182.6894,0,1); // LSPD CMD Rancher 1
	sapdcmd[1] = AddStaticVehicle(490,1538.8104,-1645.0459,6.0180,181.8459,0,1); // LSPD CMD Rancher 2
	sapdcmd[2] = AddStaticVehicle(528,1543.9153,-1655.3793,5.9355,89.8622,0,0); // LSPD CMD Truck 1
	sapdcmd[3] = AddStaticVehicle(528,1545.2297,-1663.1511,5.9352,91.5449,0,0); // LSPD CMD Truck 2
	sapdcmd[4] = AddStaticVehicle(421,1545.0472,-1671.9589,5.7731,90.1304,0,0); // LSPD CMD Washington
	sapd[0] = AddStaticVehicle(599,1558.4404,-1710.2748,6.0801,359.6262,0,1); // LSPD Ranger 1
	sapd[1] = AddStaticVehicle(599,1566.6084,-1709.6487,6.0812,358.8522,0,1); // LSPD Ranger 2
	sapd[2] = AddStaticVehicle(596,1574.4679,-1709.9087,5.6115,1.0840,0,1); // LSPD Cruiser 1
	sapd[3] = AddStaticVehicle(596,1584.0482,-1709.1449,5.6112,1.3978,0,1); // LSPD Cruiser 2
	sapd[4] = AddStaticVehicle(596,1591.7375,-1708.6918,5.6104,2.9800,0,1); // LSPD Cruiser 3
	sapd[5] = AddStaticVehicle(596,1600.4377,-1704.2130,5.6115,89.3910,0,1); // LSPD Cruiser 4
	sapd[6] = AddStaticVehicle(596,1591.5251,-1708.8802,5.6106,1.0103,0,1); // LSPD Cruiser 5
	sapd[7] = AddStaticVehicle(596,1600.4542,-1696.3005,5.6118,86.4762,0,1); // LSPD Cruiser 6
	sapd[8] = AddStaticVehicle(596,1601.2555,-1688.4717,5.6129,88.6051,0,1); // LSPD Cruiser 7
	sapdccar[0] = AddStaticVehicle(541,879.6474,-1019.9279,31.5232,268.9369,0,1); // 1PP Chief Bullet
	sapdccar[1] = AddStaticVehicle(541,880.1821,-1026.0137,31.5235,268.6722,0,1); // 1PP Deputy Chief Bullet
	sapdccar[2] = AddStaticVehicle(541,880.1277,-1031.8931,31.5303,272.2157,0,1); // 1PP Assistant Chief Bullet
	sapdcmd[5] = AddStaticVehicle(541,879.4045,-1037.9775,31.5305,270.8256,0,1); // LSPD Captain
	sapdcmd[6] = AddStaticVehicle(541,879.3600,-1043.8976,31.2267,268.8848,0,1); // SFPD Captain
	sapdcmd[7] = AddStaticVehicle(541,880.1724,-1050.2003,31.2266,271.6876,0,1); // LVPD Captain Bullet
	sapdcmd[8] = AddStaticVehicle(421,902.0060,-1037.6831,31.7809,91.4131,0,0); // 1PP Washington
	sapdcmd[9] = AddStaticVehicle(490,894.3046,-1033.2789,32.0342,179.6388,0,1); // 1PP Rancher
	sapdcmd[10] = AddStaticVehicle(528,891.5373,-1051.5066,31.6454,0.6784,0,0); // 1PP CMD Truck 1
	sapdcmd[11] = AddStaticVehicle(528,897.4175,-1051.5491,31.6454,0.9646,0,0); // 1PP CMD Truck 2
	SetVehicleNumberPlate(swatranch,"[SWAT]");
	SetVehicleNumberPlate(swatenf,"[SWAT]");
	SetVehicleNumberPlate(swattruck,"[SWAT]");
	SetVehicleNumberPlate(swatwash,"[SWAT]");
	SetVehicleNumberPlate(sapd,"[SAPD]");
	SetVehicleNumberPlate(sapdcmd,"[SAPD]");
	SetVehicleNumberPlate(sapdccar,"[SAPD]");
They dont appear at their spawn locations.
Reply
#2

Where did you put that?
Reply
#3

OnFilterscriptInit
Reply
#4

Did you defind the sapdcmd, sapd, sapdcmd .... ?
I mean new sapd;
Reply
#5

Quote:
Originally Posted by Firo
Посмотреть сообщение
Did you defind the sapdcmd, sapd, sapdcmd .... ?
I mean new sapd;
new swatranch[MAX_VEHICLES],swatenf[MAX_VEHICLES],SAPD[MAX_VEHICLES],swatwash[MAX_VEHICLES],swattruck[MAX_PLAYERS],sapdcmd[MAX_VEHICLES],sapdccar[MAX_VEHICLES];
Reply
#6

is the filterscript loaded? did you return 1?
Reply
#7

yes the filterscript is loaded, yes i did return 1;
Reply
#8

post the whole OnFilterScriptInit here
Reply
#9

Код:
public OnFilterScriptInit()
{
    new swatranch[MAX_VEHICLES],swatenf[MAX_VEHICLES],SAPD[MAX_VEHICLES],swatwash[MAX_VEHICLES],swattruck[MAX_PLAYERS],sapdcmd[MAX_VEHICLES],sapdccar[MAX_VEHICLES];
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	swatranch[0] = AddStaticVehicle(490,1525.3594,-1460.3412,9.6272,179.8099,0,79); // LS SWAT Rancher 1
	swatranch[1] = AddStaticVehicle(490,1521.6631,-1460.2740,9.6276,180.6497,0,79); // LS SWAT Rancher 2
	swatenf[0] = AddStaticVehicle(427,1518.1534,-1461.5696,9.6319,180.2013,0,79); // LS SWAT Enforcer 1
	swatenf[1] = AddStaticVehicle(427,1513.6299,-1462.3014,9.6319,180.8880,0,79); // LS SWAT Enforcer 2
	swattruck[0] = AddStaticVehicle(528,1512.0623,-1478.0833,9.5435,357.4178,0,0); // LS SWAT Truck 1
	swattruck[1] = AddStaticVehicle(528,1515.5912,-1477.9873,9.5443,358.3199,0,0); // LS SWAT Truck 2
	swatwash[0] = AddStaticVehicle(421,1519.1044,-1477.6667,9.3825,0.7312,0,0); // LS SWAT Washington 1
	swatwash[1] = AddStaticVehicle(421,1522.3833,-1477.4086,9.3825,0.7041,0,0); // LS SWAT Washington 2
	sapdcmd[0] = AddStaticVehicle(490,1530.8740,-1645.3673,6.0183,182.6894,0,1); // LSPD CMD Rancher 1
	sapdcmd[1] = AddStaticVehicle(490,1538.8104,-1645.0459,6.0180,181.8459,0,1); // LSPD CMD Rancher 2
	sapdcmd[2] = AddStaticVehicle(528,1543.9153,-1655.3793,5.9355,89.8622,0,0); // LSPD CMD Truck 1
	sapdcmd[3] = AddStaticVehicle(528,1545.2297,-1663.1511,5.9352,91.5449,0,0); // LSPD CMD Truck 2
	sapdcmd[4] = AddStaticVehicle(421,1545.0472,-1671.9589,5.7731,90.1304,0,0); // LSPD CMD Washington
	sapd[0] = AddStaticVehicle(599,1558.4404,-1710.2748,6.0801,359.6262,0,1); // LSPD Ranger 1
	sapd[1] = AddStaticVehicle(599,1566.6084,-1709.6487,6.0812,358.8522,0,1); // LSPD Ranger 2
	sapd[2] = AddStaticVehicle(596,1574.4679,-1709.9087,5.6115,1.0840,0,1); // LSPD Cruiser 1
	sapd[3] = AddStaticVehicle(596,1584.0482,-1709.1449,5.6112,1.3978,0,1); // LSPD Cruiser 2
	sapd[4] = AddStaticVehicle(596,1591.7375,-1708.6918,5.6104,2.9800,0,1); // LSPD Cruiser 3
	sapd[5] = AddStaticVehicle(596,1600.4377,-1704.2130,5.6115,89.3910,0,1); // LSPD Cruiser 4
	sapd[6] = AddStaticVehicle(596,1591.5251,-1708.8802,5.6106,1.0103,0,1); // LSPD Cruiser 5
	sapd[7] = AddStaticVehicle(596,1600.4542,-1696.3005,5.6118,86.4762,0,1); // LSPD Cruiser 6
	sapd[8] = AddStaticVehicle(596,1601.2555,-1688.4717,5.6129,88.6051,0,1); // LSPD Cruiser 7
	sapdccar[0] = AddStaticVehicle(541,879.6474,-1019.9279,31.5232,268.9369,0,1); // 1PP Chief Bullet
	sapdccar[1] = AddStaticVehicle(541,880.1821,-1026.0137,31.5235,268.6722,0,1); // 1PP Deputy Chief Bullet
	sapdccar[2] = AddStaticVehicle(541,880.1277,-1031.8931,31.5303,272.2157,0,1); // 1PP Assistant Chief Bullet
	sapdcmd[5] = AddStaticVehicle(541,879.4045,-1037.9775,31.5305,270.8256,0,1); // LSPD Captain
	sapdcmd[6] = AddStaticVehicle(541,879.3600,-1043.8976,31.2267,268.8848,0,1); // SFPD Captain
	sapdcmd[7] = AddStaticVehicle(541,880.1724,-1050.2003,31.2266,271.6876,0,1); // LVPD Captain Bullet
	sapdcmd[8] = AddStaticVehicle(421,902.0060,-1037.6831,31.7809,91.4131,0,0); // 1PP Washington
	sapdcmd[9] = AddStaticVehicle(490,894.3046,-1033.2789,32.0342,179.6388,0,1); // 1PP Rancher
	sapdcmd[10] = AddStaticVehicle(528,891.5373,-1051.5066,31.6454,0.6784,0,0); // 1PP CMD Truck 1
	sapdcmd[11] = AddStaticVehicle(528,897.4175,-1051.5491,31.6454,0.9646,0,0); // 1PP CMD Truck 2
	SetVehicleNumberPlate(swatranch,"[SWAT]");
	SetVehicleNumberPlate(swatenf,"[SWAT]");
	SetVehicleNumberPlate(swattruck,"[SWAT]");
	SetVehicleNumberPlate(swatwash,"[SWAT]");
	SetVehicleNumberPlate(sapd,"[SAPD]");
	SetVehicleNumberPlate(sapdcmd,"[SAPD]");
	SetVehicleNumberPlate(sapdccar,"[SAPD]");
	return 1;
}
Reply
#10

When you running the server do you see in the cmd "Black Filterscript by your name here" ??
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)