06.09.2010, 18:26
So i need to know how to aboid scripting like this:
Isn't there anyway to use, hmm.... "Random++;" or something? it would take hundreds lines to create all those random explosions over city.
Код:
if(strcmp("/destroycity", cmdtext, true) == 0) { new Random = random(402); CreateExplosion(USAair[Random][0], USAair[Random][1], USAair[Random][2], 6, 10.0); new Random2 = random(402); CreateExplosion(USAair[Random2][0], USAair[Random2][1], USAair[Random2][2], 6, 10.0); }