[Codeschnipsel] Fahrzeug ID's nach Kategorie

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Ich wusste nicht wo es rein kommt und da es vielen nützlich sein kann,
    bitte Ich einen der Teammitglieder den Thread in den richtigen Bereich zu verschieben.


    Ich habe mir etwas Zeit genommen und alle ID's der Fahrzeuge nach der Kategorie aufgeschrieben.
    Kann vielen nützlich sein, die ein Scheinsystem scripten wollen.


    Autos
    vehicleid > 408 && vehicleid < 417 || vehicleid > 417 && vehicleid < 425 || vehicleid > 425 && vehicleid < 430 || vehicleid == 431 ||
    vehicleid > 432 && vehicleid < 443 || vehicleid > 443 && vehicleid < 445 || vehicleid == 451 || vehicleid > 455 && vehicleid < 460 ||
    vehicleid > 465 && vehicleid < 468 || vehicleid > 469 && vehicleid < 471 || vehicleid > 473 && vehicleid < 476 || vehicleid > 476 && vehicleid < 481 ||
    vehicleid > 481 && vehicleid < 484 || vehicleid > 484 && vehicleid < 487 || vehicleid > 488 && vehicleid < 493 || vehicleid > 493 && vehicleid < 493 ||
    vehicleid > 493 && vehicleid < 497 || vehicleid > 497 && vehicleid < 509 || vehicleid > 515 && vehicleid < 519 || vehicleid > 524 && vehicleid < 537 ||
    vehicleid > 539 && vehicleid < 548 || vehicleid > 548 && vehicleid < 553 || vehicleid > 553 && vehicleid < 563 || vehicleid > 564 && vehicleid < 573 ||
    vehicleid > 573 && < 577 || vehicleid > 578 && vehicleid < 586 || vehicleid == 586 || vehicleid > 595 && vehicleid < 611 || vehicleid > 399 && vehicleid < 403 ||
    vehicleid > 303 && vehicleid < 406
    Bikes
    vehicleid == 448 || vehicleid > 460 && vehicleid < 464 || vehicleid == 468 || vehicleid == 471 ||
    vehicleid < 521 && vehicleid < 524 || vehicleid == 581 || vehicleid == 586
    Flugzeuge / Helikopter's
    vehicleid == 417 || vehicleid == 425 || vehicleid == 447 || vehicleid == 460 || vehicleid == 469 ||
    vehicleid == 476 || vehicleid == 487 || vehicleid == 488 || vehicleid == 497 || vehicleid == 511 ||
    vehicleid == 511 || vehicleid == 512 || vehicleid == 513 || vehicleid == 519 || vehicleid == 520 ||
    vehicleid == 548 || vehicleid == 553 || vehicleid == 563 || vehicleid == 577 || vehicleid == 592 ||
    vehicleid == 593
    Boote
    vehicleid == 430 || vehicleid == 446 || vehicleid == 452 || vehicleid == 453 || vehicleid == 454 ||
    vehicleid == 472 || vehicleid == 473 || vehicleid == 484 || vehicleid == 493 || vehicleid == 595 ||
    vehicleid == 514 || vehicleid == 515 || vehicleid == 573
    Lkw's
    vehicleid == 403 || vehicleid == 443 || vehicleid == 455 || vehicleid == 573 ||
    vehicleid == 578

  • Habe den Code etwas erweitert bzw. neu geschrieben
    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newstate == PLAYER_STATE_DRIVER)
    {
    /* Führerschein */
    new vid = GetPlayerVehicleID(playerid);
    new vehicleid = GetVehicleModel(vid);
    if(vehicleid == 410 || vehicleid == 410 || vehicleid == 419 || vehicleid == 436 || vehicleid == 439 || vehicleid == 474 || vehicleid == 491 || vehicleid == 496 || vehicleid == 517 || vehicleid == 518 || vehicleid == 526 || vehicleid == 527 || vehicleid == 533 || vehicleid == 545 || vehicleid == 549 || vehicleid == 580 || vehicleid == 589 || vehicleid == 600 || vehicleid == 602 || vehicleid == 400 || vehicleid == 599 ||
    vehicleid == 404 || vehicleid == 442 || vehicleid == 458 || vehicleid == 479 || vehicleid == 489 || vehicleid == 505 || vehicleid == 579 || vehicleid == 405 || vehicleid == 409 || vehicleid == 421 || vehicleid == 426 || vehicleid == 445 || vehicleid == 466 || vehicleid == 467 || vehicleid == 492 || vehicleid == 507 || vehicleid == 516 || vehicleid == 529 || vehicleid == 540 || vehicleid == 546 || vehicleid == 601 ||
    vehicleid == 547 || vehicleid == 550 || vehicleid == 551 || vehicleid == 566 || vehicleid == 585 || vehicleid == 587 || vehicleid == 402 || vehicleid == 475 || vehicleid == 542 || vehicleid == 603 || vehicleid == 558 || vehicleid == 559 || vehicleid == 560 || vehicleid == 561 || vehicleid == 562 || vehicleid == 565 || vehicleid == 441 || vehicleid == 415 || vehicleid == 429 || vehicleid == 434 ||
    vehicleid == 451 || vehicleid == 477 || vehicleid == 480 || vehicleid == 480 || vehicleid == 494 || vehicleid == 502 || vehicleid == 503 || vehicleid == 506 || vehicleid == 541 || vehicleid == 555 || vehicleid == 413 || vehicleid == 418 || vehicleid == 422 || vehicleid == 440 || vehicleid == 459 || vehicleid == 478 || vehicleid == 482 || vehicleid == 530 || vehicleid == 543 || vehicleid == 554 ||
    vehicleid == 572 || vehicleid == 582 || vehicleid == 583 || vehicleid == 605 || vehicleid == 412 || vehicleid == 534 || vehicleid == 535 || vehicleid == 536 || vehicleid == 567 || vehicleid == 575 || vehicleid == 576 || vehicleid == 424 || vehicleid == 444 || vehicleid == 457 || vehicleid == 471 || vehicleid == 483 || vehicleid == 495 || vehicleid == 500 || vehicleid == 504 || vehicleid == 508 ||
    vehicleid == 539 || vehicleid == 556 || vehicleid == 557 || vehicleid == 568 || vehicleid == 571 || vehicleid == 408 || vehicleid == 420 || vehicleid == 431 || vehicleid == 437 || vehicleid == 438 || vehicleid == 432 || vehicleid == 433 || vehicleid == 470 || vehicleid == 490 || vehicleid == 523 || vehicleid == 528 || vehicleid == 544 || vehicleid == 596 || vehicleid == 597 || vehicleid == 598)
    {

    }
    /* Bikeschein */
    if(vehicleid == 448 || vehicleid == 461 || vehicleid == 462 || vehicleid == 463 || vehicleid == 468 || vehicleid == 521 || vehicleid == 522 || vehicleid == 581 || vehicleid == 586)
    {

    }
    /* Flugschein */
    if(vehicleid == 417 || vehicleid == 425 || vehicleid == 447 || vehicleid == 460 || vehicleid == 469 || vehicleid == 476 || vehicleid == 487 || vehicleid == 488 || vehicleid == 497 || vehicleid == 511 || vehicleid == 512 || vehicleid == 513 || vehicleid == 519 || vehicleid == 520 || vehicleid == 548 || vehicleid == 553 || vehicleid == 563 || vehicleid == 577 || vehicleid == 592 || vehicleid == 593)
    {


    }
    /* Bootschein */
    if(vehicleid == 430 || vehicleid == 446 || vehicleid == 452 || vehicleid == 453 || vehicleid == 454 || vehicleid == 472 || vehicleid == 473 || vehicleid == 484 || vehicleid == 493 || vehicleid == 595)
    {

    }
    /* Lkwschein */
    if(vehicleid == 403 || vehicleid == 406 || vehicleid == 414 || vehicleid == 423 || vehicleid == 443 || vehicleid == 455 || vehicleid == 456 || vehicleid == 486 || vehicleid == 498 || vehicleid == 499 || vehicleid == 514 || vehicleid == 515 || vehicleid == 524 || vehicleid == 531 || vehicleid == 532 || vehicleid == 573 || vehicleid == 578 || vehicleid == 588 || vehicleid == 609)
    {

    }
    }
    return 1;
    }
    / Fehler behoben.