07.01.2011, 14:48
It works now.
I have made this code under OnGameModeInit, after all the vehicles are created.
And it works perfect.
Thanks everbody for your help.
I have made this code under OnGameModeInit, after all the vehicles are created.
pawn Code:
new vehicles_loaded = CreateVehicle(522, 0.0, 0.0, 0.0, 0.0, -1, -1, 10000);
DestroyVehicle(vehicles_loaded);
for(new i = 1; i < vehicles_loaded; i++)
{
SetVehicleToRespawn(i);
}
And it works perfect.
Thanks everbody for your help.