Hey Leute,
ich habe da ein problem mit der Dini Funktion naja eig. kp obs an Dini liegt xDD
also hier das problem
Ich möchte das wenn man einsteigt ins auto folgendes kommt
if((newstate==PLAYER_STATE_DRIVER))
{
if(Auto(playerid) && dUserINT(PlayerName(playerid)).("fschein")==0)
{
SendClientMessage(playerid,COLOR_ASKQ,"Du hast kein Führerschein!");
SendClientMessage(playerid,COLOR_ASKQ,"Lass dich ja nicht erwischen!");
return 1;
}
if(Heli(playerid) && dUserINT(PlayerName(playerid)).("hschein")==0)
{
SendClientMessage(playerid,COLOR_ASKQ,"Du hast kein Helischein!");
SendClientMessage(playerid,COLOR_ASKQ,"Lass dich ja nicht erwischen!");
return 1;
}
if(klein(playerid) && dUserINT(PlayerName(playerid)).("mschein50er")==0)
{
SendClientMessage(playerid,COLOR_ASKQ,"Du hast kein 50er Motorradschein!");
SendClientMessage(playerid,COLOR_ASKQ,"Lass dich ja nicht erwischen!");
return 1;
}
if(mittel(playerid) && dUserINT(PlayerName(playerid)).("mschein125er")==0)
{
SendClientMessage(playerid,COLOR_ASKQ,"Du hast kein 125er Motorradschein!");
SendClientMessage(playerid,COLOR_ASKQ,"Lass dich ja nicht erwischen!");
return 1;
}
if(gross(playerid) && dUserINT(PlayerName(playerid)).("mschein150er")==0)
{
SendClientMessage(playerid,COLOR_ASKQ,"Du hast kein 150er Motorradschein!");
SendClientMessage(playerid,COLOR_ASKQ,"Lass dich ja nicht erwischen!");
return 1;
}
if(LKW(playerid) && dUserINT(PlayerName(playerid)).("lkwschein")==0)
{
SendClientMessage(playerid,COLOR_ASKQ,"Du hast kein LKW Schein!");
SendClientMessage(playerid,COLOR_ASKQ,"Lass dich ja nicht erwischen!");
return 1;
}
if(Flug(playerid) && dUserINT(PlayerName(playerid)).("flschein")==0)
{
SendClientMessage(playerid,COLOR_ASKQ,"Du hast kein Flugschein!");
SendClientMessage(playerid,COLOR_ASKQ,"Lass dich ja nicht erwischen!");
return 1;
}
if(Boot(playerid) && dUserINT(PlayerName(playerid)).("bootschein")==0)
{
SendClientMessage(playerid,COLOR_ASKQ,"Du hast kein Bootschein!");
SendClientMessage(playerid,COLOR_ASKQ,"Lass dich ja nicht erwischen!");
return 1;
}
if(Frad(playerid))
{
return 1;
}
}
doch immer wenn ich einsteige egal weches Veh erscheint immer das mit Heli schein
hier die Publics:
public Auto(playerid)
{
new pVeh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(pVeh == 413 || pVeh == 414 || pVeh == 422 || pVeh == 440 || pVeh == 459 || pVeh == 478 || pVeh == 482 || pVeh == 498 || pVeh == 499 || pVeh == 531 || pVeh == 543 || pVeh == 552 || pVeh == 587 || pVeh == 589 || pVeh == 602 || pVeh == 603
|| pVeh == 554 || pVeh == 582 || pVeh == 605 || pVeh == 609 || pVeh == 439 || pVeh == 480 || pVeh == 533 || pVeh == 555 || pVeh == 404 || pVeh == 418 || pVeh == 458 || pVeh == 479 || pVeh == 561 || pVeh == 565 || pVeh == 412 || pVeh == 534
|| pVeh == 535 || pVeh == 536 || pVeh == 566 || pVeh == 567 || pVeh == 575 || pVeh == 576 || pVeh == 401 || pVeh == 405 || pVeh == 410 || pVeh == 419 || pVeh == 421 || pVeh == 426 || pVeh == 436 || pVeh == 445 || pVeh == 466 || pVeh == 467
|| pVeh == 474 || pVeh == 491 || pVeh == 492 || pVeh == 504 || pVeh == 507 || pVeh == 516 || pVeh == 517 || pVeh == 518 || pVeh == 526 || pVeh == 527 || pVeh == 529 || pVeh == 540 || pVeh == 542 || pVeh == 546 || pVeh == 547 || pVeh == 549
|| pVeh == 550 || pVeh == 551 || pVeh == 560 || pVeh == 562 || pVeh == 580 || pVeh == 585 || pVeh == 600 || pVeh == 604 || pVeh == 400 || pVeh == 424 || pVeh == 470 || pVeh == 489 || pVeh == 495 || pVeh == 500 || pVeh == 505 || pVeh == 568
|| pVeh == 579 || pVeh == 409 || pVeh == 423 || pVeh == 428 || pVeh == 434 || pVeh == 442 || pVeh == 457 || pVeh == 483 || pVeh == 485 || pVeh == 508 || pVeh == 525 || pVeh == 530 || pVeh == 539 || pVeh == 545 || pVeh == 574 || pVeh == 583
|| pVeh == 588 || pVeh == 402 || pVeh == 411 || pVeh == 415 || pVeh == 429 || pVeh == 451 || pVeh == 475 || pVeh == 477 || pVeh == 494 || pVeh == 496 || pVeh == 502 || pVeh == 503 || pVeh == 506 || pVeh == 541 || pVeh == 558 || pVeh == 559)
{
return 1;
}
return 1;
}
public Boot(playerid)
{
new pVeh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(pVeh == 430 || pVeh == 446 || pVeh == 452 || pVeh == 453 || pVeh == 454 || pVeh == 472 || pVeh == 473 || pVeh == 484 || pVeh == 493 || pVeh == 595)
{
return 1;
}
return 1;
}
public Flug(playerid)
{
new pVeh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(pVeh == 476 || pVeh == 511 || pVeh == 512 || pVeh == 513 || pVeh == 519 || pVeh == 520 || pVeh == 553 || pVeh == 557 || pVeh == 592 || pVeh == 593)
{
return 1;
}
return 1;
}
public Heli(playerid)
{
new pVeh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(pVeh == 417 || pVeh == 425 || pVeh == 447 || pVeh == 469 || pVeh == 487 || pVeh == 488 || pVeh == 497 || pVeh == 548 || pVeh == 563)
{
return 1;
}
return 1;
}
public LKW(playerid)
{
new pVeh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(pVeh == 403 || pVeh == 408 || pVeh == 443 || pVeh == 455 || pVeh == 456 || pVeh == 514 || pVeh == 515 || pVeh == 524 || pVeh == 532 || pVeh == 578
|| pVeh == 444 || pVeh == 556 || pVeh == 557 || pVeh == 573 || pVeh == 406|| pVeh == 486)
{
return 1;
}
return 1;
}
public Frad(playerid)
{
new pVeh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(pVeh == 481 || pVeh == 509 || pVeh == 510)
{
return 1;
}
return 1;
}
public klein(playerid)
{
new pVeh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(pVeh == 448 || pVeh == 462 || pVeh == 571 || pVeh == 572)
{
return 1;
}
return 1;
}
public mittel(playerid)
{
new pVeh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(pVeh == 586 || pVeh == 471 || pVeh == 468 || pVeh == 463 || pVeh == 461)
{
return 1;
}
return 1;
}
public gross(playerid)
{
new pVeh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(pVeh == 521 || pVeh == 522 || pVeh == 581)
{
return 1;
}
return 1;
}
ich hoffe mit kann einer helfen oder gleich einen tipp gegebn wie ichs besser machen kann xD
mfg Dedi