13.12.2009, 00:30
Can I make it so that the cars in my gamemode do not take damage? And so that it takes no visual damage? Please tell me how if you can....
forward myTimer();
public OnGameModeInit()
{
SetTimer("myTimer", 1000, true);
return true;
}
public myTimer()
{
new
v;
/* use you're own define for maximum amount of vehicles,
because i doubt you're using 2000 vehicles which is equal to MAX_VEHICLES define. */
for(v = 0; v < MAX_VEHICLES; v++) RepairVehicle(v);
return true;
}
Originally Posted by devteamsnDOTcom
Ok, I have a car spawning command so what would happen if I leave it to 2,000 cars?
|
Originally Posted by devteamsnDOTcom
Ok, Where do I set it, because I do not see a 2,000 anywhere in the code.
|
Originally Posted by Don Correlli
Quote:
|
for(v = 0; v < 100; v++) RepairVehicle(v);
Originally Posted by devteamsnDOTcom
so put...
Код:
for(v = 0; v < 100; v++) RepairVehicle(v); |