Guten Morgen
ich habe einen Befehl um cars zu respawnen
new Feuerwehrautos[21]
Feuerwehrautos[0]=SetVehicleNumberPlate(AddStaticVehicleEx(544,-2933.5403,462.4029,5.1471,269.1157,3,1,-1),"PP-FD-1"); // SFFD1
Feuerwehrautos[1]=SetVehicleNumberPlate(AddStaticVehicleEx(544,-2933.3909,468.5286,5.1478,271.2874,3,1,-1),"PP-FD-2"); // SFFD2
Feuerwehrautos[2]=SetVehicleNumberPlate(AddStaticVehicleEx(544,-2934.2869,473.6961,5.1412,271.6065,3,1,-1),"PP-FD-3"); // SFFD3
Feuerwehrautos[3]=SetVehicleNumberPlate(AddStaticVehicleEx(544,-2898.1296,433.7067,5.1494,90.7140,3,1,-1),"PP-FD-4"); // SFFD4
Feuerwehrautos[4]=SetVehicleNumberPlate(AddStaticVehicleEx(407,-2895.7151,442.8979,5.1767,87.7810,3,1,-1),"PP-FD-5"); // SFFD5
Feuerwehrautos[5]=SetVehicleNumberPlate(AddStaticVehicleEx(407,-2896.2966,451.7718,5.1650,88.3680,3,1,-1),"PP-FD-6"); // SFFD6
Feuerwehrautos[6]=SetVehicleNumberPlate(AddStaticVehicleEx(597,-2927.7756,448.9415,4.6820,308.8694,3,1,-1),"PP-FD-10"); // FDcarklein
Feuerwehrautos[7]=SetVehicleNumberPlate(AddStaticVehicleEx(597,-2927.3999,439.7588,4.6752,312.6749,3,1,-1),"PP-FD-11"); // FDcarklein2
Feuerwehrautos[8]=SetVehicleNumberPlate(AddStaticVehicleEx(597,-2926.7114,431.2002,4.6834,315.3998,3,1,-1),"PP-FD-12"); // FDcarklein3
Feuerwehrautos[9]=SetVehicleNumberPlate(AddStaticVehicleEx(597,-2925.4338,423.3958,4.6829,313.1174,3,1,-1),"PP-FD-13"); // FDcarklein4
Feuerwehrautos[10]=SetVehicleNumberPlate(AddStaticVehicleEx(599,-2924.7896,419.4720,5.1054,309.1554,3,1,-1),"PP-FD-14"); // FWrancher
Feuerwehrautos[11]=SetVehicleNumberPlate(AddStaticVehicleEx(599,-2926.5034,427.2195,5.1027,313.5070,3,1,-1),"PP-FD-15"); // FWrancher2
Feuerwehrautos[12]=SetVehicleNumberPlate(AddStaticVehicleEx(599,-2926.9617,435.5414,5.1000,314.9029,3,1,-1),"PP-FD-16"); // FWrancher3
Feuerwehrautos[13]=SetVehicleNumberPlate(AddStaticVehicleEx(599,-2927.7627,444.5617,5.0997,310.3852,3,1,-1),"PP-FD-17"); // FWrancher4
Feuerwehrautos[14]=SetVehicleNumberPlate(AddStaticVehicleEx(599,-2927.7905,453.8288,5.1032,310.0624,3,1,-1),"PP-FD-18"); // FWrancher5
Feuerwehrautos[15]=SetVehicleNumberPlate(AddStaticVehicleEx(573,-2895.3420,420.3330,5.5644,40.0135,3,1,-1),"PP-FD-19"); // FWdune
Feuerwehrautos[16]=SetVehicleNumberPlate(AddStaticVehicleEx(573,-2903.7869,420.1929,5.5645,37.1677,3,1,-1),"PP-FD-20"); // FWdune2
Feuerwehrautos[17]=SetVehicleNumberPlate(AddStaticVehicleEx(573,-2900.0220,420.4799,5.5644,30.2507,3,1,-1),"PP-FD-21"); // FWdune3
Feuerwehrautos[18]=SetVehicleNumberPlate(AddStaticVehicleEx(487,-2907.7588,496.6758,5.5644,180.8999,3,1,-1),"PP-FD-22"); // heliFW1
Feuerwehrautos[19]=SetVehicleNumberPlate(AddStaticVehicleEx(487,-2920.9675,495.5881,5.5605,177.8632,3,1,-1),"PP-FD-23"); // heliFW2
Feuerwehrautos[20]=SetVehicleNumberPlate(AddStaticVehicle(437,-2875.3149,490.1154,4.7718,179.9336,18,20),"PP-FD-24"); // FWbus
und noch der befehl
if(strcmp(cmd, "/fdrespawn", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i=0; i<sizeof(Feuerwehrautos); i++)
{
SetVehicleToRespawn(i);
}
SendClientMessage(playerid,0xFFFFFFFF,"Alle Feuerwehrautos respawnt.");
}
return 1;
}
es wird nur angezeigt, das er respawnt hat aber es wird nicht respawnt
könnt ihr mir helfen?
MFG
schnarre