Es klappt nicht
Es ergibt zwar keine Errors aber die Cars (LSPDCar) werden nicht respawnt.
//e: PWN eingefüht
So klappt es, jedoch ein wenig viel wenn ich mir allein die Army vorstelle mit 50 Cars
if(strcmp(cmd,"/lspdfrc",true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 1)
{
SetVehicleToRespawn(LSPDCar[0]);
SetVehicleHealth(LSPDCar[0],1000);
SetVehicleHealth(LSPDCar[0],1000);
SetVehicleToRespawn(LSPDCar[1]);
SetVehicleHealth(LSPDCar[1],1000);
SetVehicleHealth(LSPDCar[1],1000);
SetVehicleToRespawn(LSPDCar[2]);
SetVehicleHealth(LSPDCar[2],1000);
SetVehicleHealth(LSPDCar[2],1000);
SetVehicleToRespawn(LSPDCar[3]);
SetVehicleHealth(LSPDCar[3],1000);
SetVehicleHealth(LSPDCar[3],1000);
SetVehicleToRespawn(LSPDCar[4]);
SetVehicleHealth(LSPDCar[4],1000);
SetVehicleHealth(LSPDCar[4],1000);
SetVehicleToRespawn(LSPDCar[5]);
SetVehicleHealth(LSPDCar[5],1000);
SetVehicleHealth(LSPDCar[5],1000);
SetVehicleToRespawn(LSPDCar[6]);
SetVehicleHealth(LSPDCar[6],1000);
SetVehicleHealth(LSPDCar[6],1000);
SetVehicleToRespawn(LSPDCar[7]);
SetVehicleHealth(LSPDCar[7],1000);
SetVehicleHealth(LSPDCar[7],1000);
SetVehicleToRespawn(LSPDCar[8]);
SetVehicleHealth(LSPDCar[8],1000);
SetVehicleHealth(LSPDCar[8],1000);
SetVehicleToRespawn(LSPDCar[9]);
SetVehicleHealth(LSPDCar[9],1000);
SetVehicleHealth(LSPDCar[9],1000);
SetVehicleToRespawn(LSPDCar[10]);
SetVehicleHealth(LSPDCar[10],1000);
SetVehicleHealth(LSPDCar[10],1000);
SetVehicleToRespawn(LSPDCar[11]);
SetVehicleHealth(LSPDCar[11],1000);
SetVehicleHealth(LSPDCar[11],1000);
SetVehicleToRespawn(LSPDCar[12]);
SetVehicleHealth(LSPDCar[12],1000);
SetVehicleHealth(LSPDCar[12],1000);
SetVehicleToRespawn(LSPDCar[13]);
SetVehicleHealth(LSPDCar[13],1000);
SetVehicleHealth(LSPDCar[13],1000);
SetVehicleToRespawn(LSPDCar[14]);
SetVehicleHealth(LSPDCar[14],1000);
SetVehicleHealth(LSPDCar[14],1000);
SetVehicleToRespawn(LSPDCar[15]);
SetVehicleHealth(LSPDCar[15],1000);
SetVehicleHealth(LSPDCar[15],1000);
SetVehicleToRespawn(LSPDCar[16]);
SetVehicleHealth(LSPDCar[16],1000);
SetVehicleHealth(LSPDCar[16],1000);
SetVehicleToRespawn(LSPDCar[17]);
SetVehicleHealth(LSPDCar[17],1000);
SetVehicleHealth(LSPDCar[17],1000);
SetVehicleToRespawn(LSPDCar[18]);
SetVehicleHealth(LSPDCar[18],1000);
SetVehicleHealth(LSPDCar[18],1000);
SetVehicleToRespawn(LSPDCar[19]);
SetVehicleHealth(LSPDCar[19],1000);
SetVehicleHealth(LSPDCar[19],1000);
SetVehicleToRespawn(LSPDCar[20]);
SetVehicleHealth(LSPDCar[20],1000);
SetVehicleHealth(LSPDCar[20],1000);
SetVehicleToRespawn(LSPDCar[21]);
SetVehicleHealth(LSPDCar[21],1000);
SetVehicleHealth(LSPDCar[21],1000);
SetVehicleToRespawn(LSPDCar[0]);
SetVehicleHealth(LSPDCar[22],1000);
SetVehicleHealth(LSPDCar[22],1000);
SetVehicleToRespawn(LSPDCar[23]);
SetVehicleHealth(LSPDCar[23],1000);
SetVehicleHealth(LSPDCar[23],1000);
SetVehicleToRespawn(LSPDCar[24]);
SetVehicleHealth(LSPDCar[24],1000);
SetVehicleHealth(LSPDCar[24],1000);
SetVehicleToRespawn(LSPDCar[25]);
SetVehicleHealth(LSPDCar[25],1000);
SetVehicleHealth(LSPDCar[25],1000);
SetVehicleToRespawn(LSPDCar[26]);
SetVehicleHealth(LSPDCar[26],1000);
SetVehicleHealth(LSPDCar[26],1000);
SetVehicleToRespawn(LSPDCar[27]);
SetVehicleHealth(LSPDCar[27],1000);
SetVehicleHealth(LSPDCar[27],1000);
SetVehicleToRespawn(LSPDCar[28]);
SetVehicleHealth(LSPDCar[28],1000);
SetVehicleHealth(LSPDCar[28],1000);
SetVehicleToRespawn(LSPDCar[29]);
SetVehicleHealth(LSPDCar[29],1000);
SetVehicleHealth(LSPDCar[29],1000);
SetVehicleToRespawn(LSPDCar[30]);
SetVehicleHealth(LSPDCar[30],1000);
SetVehicleHealth(LSPDCar[30],1000);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Du hast die Frak-Cars respawnt !");
{
if(PlayerInfo[playerid][pMember] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ein Leader hat alle Frak-Cars respawnt !");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Du bist nicht befugt diesen Befehl zu nutzen !");
}
return 1;
}
Sorry aber wenn ich es als PWN mache dann ist alles in einer Zeile.