Мигалка на ваш автомобиль

Description: Готовые команды
Moderator: SJplayer

Дим M
Topic author, Администратор
Администратор
Avatar
Дим M
Topic author, Администратор
Администратор
Reputation: 80
Posts: 1239
Joined: 5 Apr 2013
With us: 6 years 10 months

#1by Дим » 15 Apr 2013, 15:58

Данная команда устанавливает мигалку на ваш автомобиль.
Автор: не помню

Code: Select all

    if (strcmp("/мигалка", cmdtext, true, 10) == 0)//мигалка
    {
        if(PlayerInfo[playerid][pAdmin] <= 1)//любая проверка
        {
            new objectid = CreateObject(19419, 0, 0, 0, 0, 0, 0);
            switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
            {
            case 401:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), -0.004999, 0.000000, 0.799999, 0.000000, 0.000000, 0.000000); 
            case 402
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), -0.004999, -0.519999, 0.769999, 0.000000, 0.000000, 0.000000); 
            case 404
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), -0.004999, -0.224999, 0.934999, 0.000000, 0.000000, 0.000000); 
            case 405
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), -0.004999, -0.224999, 0.759999, 0.000000, 0.000000, 0.000000); 
            case 410
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.010000, -0.224999, 0.899999, 0.000000, 0.000000, 0.000000); 
            case 409
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.419999, 0.824999, 0.000000, 0.000000, 0.000000); 
            case 411
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.089999, 0.719999, 0.000000, 0.000000, 0.000000); 
            case 412
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.089999, 0.714999, 0.000000, 0.000000, 0.000000); 
            case 413
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.704999, 1.134999, 0.000000, 0.000000, 0.000000); 
            case 415
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.259999, 0.609999, 0.000000, 0.000000, 0.000000); 
            case 418
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.389999, 1.039999, 0.000000, 0.000000, 0.000000); 
            case 419
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.324999, 0.694999, 0.000000, 0.000000, 0.000000); 
            case 421
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.174999, 0.729999, 0.000000, 0.000000, 0.000000); 
            case 422
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.044999, 0.799999, 0.000000, 0.000000, 0.000000); 
            case 424
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.044999, 0.864999, 0.000000, 0.000000, 0.000000); 
            case 426
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.264999, 0.849999, 0.000000, 0.000000, 0.000000); 
            case 428
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.754999, 1.369998, 0.000000, 0.000000, 0.000000); 
            case 431
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.020000, 5.230072, 2.115000, 0.000000, 0.000000, 0.000000); 
            case 434
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.020000, -0.060000, 0.729999, 0.000000, 0.000000, 0.000000); 
            case 436
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.020000, -0.259999, 0.844999, 0.000000, 0.000000, 0.000000); 
            case 437
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.020000, 4.630058, 2.044999, 0.000000, 0.000000, 0.000000); 
            case 442
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.020000, 0.009999, 0.889999, 0.000000, 0.000000, 0.000000); 
            case 444
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.020000, 0.234999, 1.689998, 0.000000, 0.000000, 0.000000); 
            case 445
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.020000, -0.254999, 0.844999, 0.000000, 0.000000, 0.000000); 
            case 451
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), -0.044999, -0.534999, 0.589999, 0.000000, 0.000000, 0.000000); 
            case 455
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), -0.044999, 1.189998, 1.664998, 0.000000, 0.000000, 0.000000); 
            case 458
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.000000, 0.724999, 0.000000, 0.000000, 0.000000); 
            case 459
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.544999, 1.114999, 0.000000, 0.000000, 0.000000); 
            case 466
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.204999, 0.849999, 0.000000, 0.000000, 0.000000); 
            case 467
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.004999, 0.829999, 0.000000, 0.000000, 0.000000); 
            case 470
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.004999, 1.089999, 0.000000, 0.000000, 0.000000); 
            case 474
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.229999, 0.794999, 0.000000, 0.000000, 0.000000); 
            case 475
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.229999, 0.704999, 0.000000, 0.000000, 0.000000); 
            case 477
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.404999, 0.734999, 0.000000, 0.000000, 0.000000); 
            case 478
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.125000, 0.909999, 0.000000, 0.000000, 0.000000); 
            case 479
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.269999, 0.984999, 0.000000, 0.000000, 0.000000); 
            case 480
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -1.024999, 0.684999, 0.000000, 0.000000, 0.000000); 
            case 482
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 1.074999, 0.904999, 0.000000, 0.000000, 0.000000); 
            case 483
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 1.499998, 1.019999, 0.000000, 0.000000, 0.000000); 
            case 489
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.114999, 1.084999, 0.000000, 0.000000, 0.000000); 
            case 490
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.474999, 1.089999, 0.000000, 0.000000, 0.000000); 
            case 491
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.404999, 0.679999, 0.000000, 0.000000, 0.000000); 
            case 492
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.279999, 0.859999, 0.000000, 0.000000, 0.000000); 
            case 494
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.374999, 0.739999, 0.000000, 0.000000, 0.000000); 
            case 495
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.050000, 0.999999, 0.000000, 0.000000, 0.000000); 
            case 496
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.444999, 0.809999, 0.000000, 0.000000, 0.000000); 
            case 498
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 1.749998, 2.014998, 0.000000, 0.000000, 0.000000); 
            case 502
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.469999, 0.779999, 0.000000, 0.000000, 0.000000); 
            case 503
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.469999, 0.764999, 0.000000, 0.000000, 0.000000); 
            case 504
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.065000, 0.854999, 0.000000, 0.000000, 0.000000); 
            case 505
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.065000, 1.084999, 0.000000, 0.000000, 0.000000); 
            case 506
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.444999, 0.574999, 0.000000, 0.000000, 0.000000); 
            case 507
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.339999, 0.779999, 0.000000, 0.000000, 0.000000); 
            case 516
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.089999, 0.864999, 0.000000, 0.000000, 0.000000); 
            case 517
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.344999, 0.839999, 0.000000, 0.000000, 0.000000); 
            case 518
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.119999, 0.689999, 0.000000, 0.000000, 0.000000); 
            case 525
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.454999, 1.444998, 0.000000, 0.000000, 0.000000); 
            case 528
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.050000, 1.074999, 0.000000, 0.000000, 0.000000); 
            case 527
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.054999, 0.874999, 0.000000, 0.000000, 0.000000); 
            case 526
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.234999, 0.644999, 0.000000, 0.000000, 0.000000); 
            case 529
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.234999, 0.899999, 0.000000, 0.000000, 0.000000); 
            case 534
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.029999, 0.604999, 0.000000, 0.000000, 0.000000); 
            case 535
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.095000, 0.804999, 0.000000, 0.000000, 0.000000); 
            case 540
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.259999, 0.699999, 0.000000, 0.000000, 0.000000); 
            case 541
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.259999, 0.619999, 0.000000, 0.000000, 0.000000); 
            case 542
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.259999, 0.829999, 0.000000, 0.000000, 0.000000); 
            case 543
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.110000, 0.874999, 0.000000, 0.000000, 0.000000); 
            case 544
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 2.510010, 1.459998, 0.000000, 0.000000, 0.000000); 
            case 545
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.384999, 0.744999, 0.000000, 0.000000, 0.000000); 
            case 546
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.384999, 0.834999, 0.000000, 0.000000, 0.000000); 
            case 547
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.384999, 0.889999, 0.000000, 0.000000, 0.000000); 
            case 549
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.035000, 0.719999, 0.000000, 0.000000, 0.000000); 
            case 550
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.089999, 0.724999, 0.000000, 0.000000, 0.000000); 
            case 551
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.344999, 0.904999, 0.000000, 0.000000, 0.000000); 
            case 552
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.609999, 1.314998, 0.000000, 0.000000, 0.000000); 
            case 554
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.025000, 1.004999, 0.000000, 0.000000, 0.000000); 
            case 556
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.489999, 1.679998, 0.000000, 0.000000, 0.000000); 
            case 557
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.010000, 1.639998, 0.000000, 0.000000, 0.000000); 
            case 558
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.354999, 0.824999, 0.000000, 0.000000, 0.000000); 
            case 559
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.354999, 0.704999, 0.000000, 0.000000, 0.000000); 
            case 562
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.354999, 0.749999, 0.000000, 0.000000, 0.000000); 
            case 561
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.129999, 0.829999, 0.000000, 0.000000, 0.000000); 
            case 560
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.074999, 0.824999, 0.000000, 0.000000, 0.000000); 
            case 565
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.414999, 0.674999, 0.000000, 0.000000, 0.000000); 
            case 566
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.169999, 0.844999, 0.000000, 0.000000, 0.000000); 
            case 576
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.169999, 0.884999, 0.000000, 0.000000, 0.000000); 
            case 579
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.369999, 0.939999, 0.000000, 0.000000, 0.000000); 
            case 580
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.059999, 1.034999, 0.000000, 0.000000, 0.000000); 
            case 585
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.259999, 0.974999, 0.000000, 0.000000, 0.000000); 
            case 587
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.599999, 0.734999, 0.000000, 0.000000, 0.000000); 
            case 589
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.194999, 1.049999, 0.000000, 0.000000, 0.000000); 
            case 601
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 1.209999, 1.499998, 0.000000, 0.000000, 0.000000); 
            case 604
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.159999, 0.864999, 0.000000, 0.000000, 0.000000); 
            case 603
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.429999, 0.644999, 0.000000, 0.000000, 0.000000); 
            case 602
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, -0.429999, 0.679999, 0.000000, 0.000000, 0.000000); 
            case 605
:AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.000000, 0.015000, 0.884999, 0.000000, 0.000000, 0.000000); 
            default
: SendClientMessage(playerid,0xFA7516FF,"На ваше ТС нельзя устанавливать мигалки");
            }
            SendClientMessage(playerid, COLOR_RED, "У вас нет таких прав");
            return true;
        }
    }
i love you mxIni Mysql

! ! !


Return to “Команды”

Who is online (over the past 5 minutes)

Users browsing this forum: 2 guests