if (strcmp(cmdtext, "/vrespawn", true) == 0)
{
if (ModPlus[playerid] != 1)
{
SendClientMessage(playerid, COLOR_RED, "You must be at least a moderator+ to use this command");
return 1;
}
new InUse[CAR_AMOUNT];
for (new j = 0; j < CAR_AMOUNT; j++)
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && IsPlayerInVehicle(i, j+1))
{
InUse[j] ++;
}
}
if (!InUse[j])
{
SetVehicleToRespawn(j+1);
}
}
SendClientMessageToAll(COLOR_LIGHTBLUE, "All vehicles currently not in use have been respawned.");
return 1;
}