13.01.2010, 17:16
I was spawning some vehicles, adding them to a file and at the end I wanted to respawn them aka removing. Never tried it out so I don't know if it ever worked. With spawned vehicles or without spawned vehicles, it keeps crashing.
Script:
Script:
pawn Код:
forward RespawnEmptyCars();
public RespawnEmptyCars()
{
for(new i=0; i<MAX_VEHICLES; i++)
{
if(IsVehicleOccupied(i) == 0)
{
SetVehicleToRespawn(i);
}
}
}