stock RandomAllowedCars()
{
SendClientMessageToAll( -1, "Iniciado RandomAllowedCars()");
new randomCars = random(211) + 400;
if(randomCars == 417 || 425 || 430 || 432 || 435 || 441 || 446 || 447 || 449 || 450 || 452 || 453 || 454 || 460 || 464 || 465 || 469 || 472 || 473 || 476 || 484 || 487 || 488 || 493 || 497 || 501 || 511 || 512 || 513 || 519 || 520 || 537 || 538 || 548 || 553 || 563 || 564 || 569 || 570 || 577 || 584 || 590 || 591 || 592 || 593 || 594 || 595 || 606 || 607 || 608 || 610 || 611)
{
return RandomAllowedCars();
}
else
{
return randomCars;
}
}
//ejemplo.
if( var == id || var == id || var == id /*etc ...*/)
switch(rand){
case 417,425,430,432,435,441,446,447,449,450,452..454,460,464,465,469,472,473,476,484,487,488,493,497,501,511..513,519,520,537,538\
548,553,563,564,569,570,577,584,590..595,606..608,610..611:{ /*obtenido*/ }
default: { /*no obtenido*/ }
}
/*
.. (dos puntos) en switch es de tal numero a tal otro numero (debe ser menor a mayor)
, (coma) en switch es tal numero o tal otro numero, similar a || en if
case es el resultado positivo del switch
default es el resultado negativo del switch
*/