20.01.2013, 02:52
pawn Код:
COMMAND:rc(playerid, params[])
{
for (new HouseID = 1; HouseID < MAX_HOUSES; HouseID++)
{
for (new CarSlot; CarSlot < AHouseData[HouseID][CarSlots]; CarSlot++)
if (AHouseData[HouseID][VehicleIDs][CarSlot] != 0)
SetVehicleToRespawn(AHouseData[HouseID][VehicleIDs][CarSlot]);
SendClientMessage(playerid, 0xFFFFFFFF, "Vehicles has been respawned");
return 1;
}
}
return 1;
}
1. Players own 2 houses (1 vehicle slots each)
2. Players buys a vehicle in the 1st house
3. Player buys a vehicle in the 2nd house
4. Player /parks the vehicle
5. Player uses /rc or respawncars
6. It only respawns the vehicles on the 1st house not the 2nd one