shape1
shape2
shape3
shape4
shape7
shape8

[СИСТЕМА] Мигалки

Franchezz

Новичок
Пользователь
08.01.2022
11
0
0
Добрый вечер, хотел бы на свою копию радмира добавить систему мигалок, как выглядит закреплено на скрине. Хотелось бы добавить данную функцию в донат, и желательно чтобы работало на всех машинах. Screenshot_20220108_010206_com.google.android.youtube.jpg
 
Решение
Да, чтобы на определённые тс можно было ставить
по команде /migalka допустим?
Вот

Код:
CMD:ban(playerid, params[])
    {
        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...

Cocolemunto

Главный Модератор
Команда портала
Гл.Модератор
11.06.2021
375
3
47
0
11
по id машин?
 

Cocolemunto

Главный Модератор
Команда портала
Гл.Модератор
11.06.2021
375
3
47
0
11
Да, чтобы на определённые тс можно было ставить
по команде /migalka допустим?
Вот

Код:
CMD:ban(playerid, params[])
    {
        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);
            default: SendClientMessage(playerid,0xFA7516FF,"На ваше ТС нельзя устанавливать мигалки");
            }
            SendClientMessage(playerid, COLOR_RED, "У вас нет таких прав");
            return true;
        }
    }

Будет работать лишь на id машин которые указаны в case
 
  • Like
Реакции: Jaliba_Baron
Решение

Franchezz

Новичок
Пользователь
08.01.2022
11
0
0
по команде /migalka допустим?
Вот

Код:
CMD:ban(playerid, params[])
    {
        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);
            default: SendClientMessage(playerid,0xFA7516FF,"На ваше ТС нельзя устанавливать мигалки");
            }
            SendClientMessage(playerid, COLOR_RED, "У вас нет таких прав");
            return true;
        }
    }

Будет работать лишь на id машин которые указаны в case
Мне конечно бы в тюнинг добавить
 

Jaliba_Baron

Руководитель
Команда портала
Гл.Администратор
24.09.2015
664
2
929
0
18
pawno-crmp.ru
Скриптер

Franchezz

Новичок
Пользователь
08.01.2022
11
0
0
по команде /migalka допустим?
Вот

Код:
CMD:ban(playerid, params[])
    {
        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);
            default: SendClientMessage(playerid,0xFA7516FF,"На ваше ТС нельзя устанавливать мигалки");
            }
            SendClientMessage(playerid, COLOR_RED, "У вас нет таких прав");
            return true;
        }
    }

Будет работать лишь на id машин которые указаны в case
Есть проблемы, когда я спавню тс через /veh и ставлю мигалки все норм, но когда я убираю тс с сервера мигалки в воздухе, и так же тс с мигалками падает в контейнерах так не надо
 

Cocolemunto

Главный Модератор
Команда портала
Гл.Модератор
11.06.2021
375
3
47
0
11
Есть проблемы, когда я спавню тс через /veh и ставлю мигалки все норм, но когда я убираю тс с сервера мигалки в воздухе, и так же тс с мигалками падает в контейнерах так не надо
На счет тс с мигалки в контейнерах решайте сами(самый простой способ это убрать лимит авто и сделать чтобы мигалки были лишь на авто которые вы добавили (например 822 и тд) ), сделайте проверку в команде /migalki что если ТС удален, то этот объект убирается
 

Franchezz

Новичок
Пользователь
08.01.2022
11
0
0
На счет тс с мигалки в контейнерах решайте сами(самый простой способ это убрать лимит авто и сделать чтобы мигалки были лишь на авто которые вы добавили (например 822 и тд) ), сделайте проверку в команде /migalki что если ТС удален, то этот объект убирается
А что писать? Я просто новичок
 

Cocolemunto

Главный Модератор
Команда портала
Гл.Модератор
11.06.2021
375
3
47
0
11
Вообщем, не зная твоих переменных могу сделать лишь так
При повторном вводе команды - мигалки с машины удаляются

CMD:ban(playerid, params[])
{
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);
default: SendClientMessage(playerid,0xFA7516FF,"На ваше ТС нельзя устанавливать мигалки");
}
SendClientMessage(playerid, COLOR_RED, "У вас нет таких прав");
return true;
}
else
{
DestroyObject(objectid);
}
return 1;
}
}
 

Franchezz

Новичок
Пользователь
08.01.2022
11
0
0
Вообщем, не зная твоих переменных могу сделать лишь так
При повторном вводе команды - мигалки с машины удаляются

CMD:ban(playerid, params[])
{
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);
default: SendClientMessage(playerid,0xFA7516FF,"На ваше ТС нельзя устанавливать мигалки");
}
SendClientMessage(playerid, COLOR_RED, "У вас нет таких прав");
return true;
}
else
{
DestroyObject(objectid);
}
return 1;
}
}
Спасибо, если будет что то не так, напишу
 

Franchezz

Новичок
Пользователь
08.01.2022
11
0
0
Вообщем, не зная твоих переменных могу сделать лишь так
При повторном вводе команды - мигалки с машины удаляются

CMD:ban(playerid, params[])
{
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);
default: SendClientMessage(playerid,0xFA7516FF,"На ваше ТС нельзя устанавливать мигалки");
}
SendClientMessage(playerid, COLOR_RED, "У вас нет таких прав");
return true;
}
else
{
DestroyObject(objectid);
}
return 1;
}
}
При повторном вводе команды ничего не происходит, можете сделать команду что типо /delmig idтранспорта чтобы она удаляла мигалку по айди тс
 

Cocolemunto

Главный Модератор
Команда портала
Гл.Модератор
11.06.2021
375
3
47
0
11
При повторном вводе команды ничего не происходит, можете сделать команду что типо /delmig idтранспорта чтобы она удаляла мигалку по айди тс
по ищите подобное в интернете пожалуйста