05.05.2011, 21:30
I need it to respawn the cars immediately after delete
COMMAND:clearcars(playerid, params[])
{
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOUR_RED,"This command is not avaliable to you!");
{
SendClientMessageToAll(COLOUR_RED,"[SYSTEM]: All cars have been deleted!");
for(new veh;veh < MAX_VEHICLES; veh++)
{
if(!IsVehicleInUse(veh)) DestroyVehicle(veh);
}
}
return 1;
}
COMMAND:clearcars(playerid, params[])
{
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOUR_RED,"This command is not avaliable to you!");
{
SendClientMessageToAll(COLOUR_RED,"[SYSTEM]: All cars have been deleted!");
for(new veh;veh < MAX_VEHICLES; veh++)
{
if(!IsVehicleInUse(veh)) DestroyVehicle(veh);
}
}
return 1;
}