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 = 1; j <= CAR_AMOUNT; j++)
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && IsPlayerInVehicle(i, j))
{
InUse[j] = 1;
}
}
if (InUse[j] == 1)
{
SetVehicleToRespawn(j);
}
}
SendClientMessageToAll(COLOR_LIGHTBLUE, "All vehicles currently not in use have been respawned.");
return 1;
}
return 0;
}