20.07.2010, 14:57
Hi,
I have made a command, its should be able to destroy all spawned vehicles, but this is my problem: he only destroys the car that is spawned first. Can anybody help me? Here you see the code:
Greetz,
Danny
I have made a command, its should be able to destroy all spawned vehicles, but this is my problem: he only destroys the car that is spawned first. Can anybody help me? Here you see the code:
Код:
dcmd_dasv(playerid, cmdtext[]) {
#pragma unused cmdtext
for(new c;c<MAX_VEHICLES;c++)
{
if(spawnedveh[c] == 1)
{
DestroyVehicle©;
SendClientMessage(playerid, ADMINFS_MESSAGE_COLOR,"You have succesfully destroyed all spawned vehicles.");
return 1;
}
}
}
Danny

