Ich brauche mal eure hilfe
und zwar get es um mein führerschin system was ich gemacht habe
public OnPlayerStateChange(playerid, newstate, oldstate)
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(playerid) == 462|| 448 || 581 || 522 || 461 || 521 || 523 || 463 || 586 || 468 ||471)
{
if(GetPVarInt(playerid,"MSchein")==2)
{
SendClientMessage(playerid,ROT,"Du hast kein Führerschein für dieses Fahrzeug!!!");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
}
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(playerid) == 480|| 533 || 439 || 555 || 422 || 600 || 543 || 605 || 478 || 522 || 554 || 536 || 575 || 534 || 567 || 535 || 566 || 576 || 412 || 573 || 579 || 568 || 424 || 400 || 500 || 444)
if(GetVehicleModel(playerid) == 556 || 557 || 470 || 489 || 505 || 495 || 416 || 433 || 431 || 438 || 437 || 427 || 490 || 528 || 407 || 544 || 596 || 598 || 597 || 599 || 432 || 601 || 420 || 445 || 504 || 401 || 518 || 527 || 542 || 507 || 585 || 419 || 526 || 604 || 466 || 492 || 474 || 546 || 517 || 410 || 551 || 516 || 467 || 426 || 436 || 547 || 405 || 580 || 560 || 550 || 549 || 540 || 491 || 529)
if(GetVehicleModel(playerid) ==421 || 602 || 429 || 496 || 402 || 541 || 415 || 589 || 587 || 565 || 494 || 502 || 503 || 411 || 559 || 603 || 475 || 506 || 451 || 558 || 477 || 418 || 404 || 479 || 458 || 561|| 485 || 457 || 482 || 508 || 532 || 486 || 406 || 530 || 434 || 545 || 588 || 571 || 572 || 423 || 442 || 428 || 409 || 574 || 525 || 583 ||539)
{
if(GetPVarInt(playerid,"ASchein")==2)
{
SendClientMessage(playerid,ROT,"Du hast kein Führerschein für dieses Fahrzeug!!!");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
}
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(playerid) == 472|| 473 || 493 || 595 || 484 || 430 || 453 || 452 || 446 || 454)
{
if(GetPVarInt(playerid,"BSchein")==2)
{
SendClientMessage(playerid,ROT,"Du hast kein Führerschein für dieses Fahrzeug!!!");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
}
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(playerid) == 1|| 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 || 21 || 22 || 23 || 24 || 25 || 26 || 27 || 28 || 29 || 30 || 31 || 32 || 33 || 34 || 35 || 36 || 37 || 38 || 39 || 40 || 41 || 42 || 43 || 44 || 45 || 46)
{
if(GetPVarInt(playerid,"WSchein")==2)
{
SendClientMessage(playerid,ROT,"Du hast kein Führerschein für dieses Fahrzeug!!!");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
}
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(playerid) == 499 || 422 || 482 || 498 || 609 || 524 || 578 || 455 || 403 || 414 || 582 || 443 || 514 || 413 || 515 ||440 || 459 || 531 || 408 || 552 || 456)
{
if(GetPVarInt(playerid,"LKWSchein")==2)
{
SendClientMessage(playerid,ROT,"Du hast kein Führerschein für dieses Fahrzeug!!!");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
}
so wen ich in ein auto einsteige get es nicht obwohl ich den führerschei für das auto habe.
wen ich aber alle scheine habe dan kann ich mit alles fehren.
jetzt meine frage:
kan ich es so machen das ich einen autoschein habe und dabei nur mit den auto fahren kan ??