Вопросы

Всем привет еще раз, переведите код на CMD пожалуйста

Спойлер

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/migon", cmdtext, true, 10) == 0)
    {
        new carid = GetPlayerVehicleID(playerid);
          if(NenadoLustru(carid))
        {
            SendClientMessage(playerid, 0xF6CB00AA, "На данное авто мигалки не работают!");
            return true;
        }
        lustra[playerid] = CreateObject(18646,0,0,0,0,0,0,0.0);
        switch(GetVehicleModel(carid))
        {
            case 587: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.30, 0.80, 0.0, 0.0, 0.0); //Euros
            case 562: AttachObjectToVehicle(lustra[playerid],carid, 0.0,-0.0, 0.85, 0.0, 0.0, 0.0); //Elegy
            case 602: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.30, 0.77, 0.0, 0.0, 0.0); //Alpha
            case 415: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.65, 0.0, 0.0, 0.0); //Cheetah
            case 451: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.63, 0.0, 0.0, 0.0); //Turismo
            case 559: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.77, 0.0, 0.0, 0.0); //Jester
            case 541: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.70, 0.0, 0.0, 0.0); //Bullet
            case 565: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Flash
            case 540: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.79, 0.0, 0.0, 0.0); //Vincent
            case 507: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.88, 0.0, 0.0, 0.0); //Elegant
            case 491: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.78, 0.0, 0.0, 0.0); //Virgo
            case 492: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.92, 0.0, 0.0, 0.0); //Greenwood
            case 526: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.70, 0.0, 0.0, 0.0); //Fortune
            case 529: AttachObjectToVehicle(lustra[playerid],carid,  0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Willard
            case 401: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.82, 0.0, 0.0, 0.0); //Bravura
            case 518: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Buccaneer
            case 527: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.93, 0.0, 0.0, 0.0); //Cadrona
            case 542: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Clover
            case 585: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.08, 0.0, 0.0, 0.0); //Emperor
            case 419: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Esperanto
            case 466: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.93, 0.0, 0.0, 0.0); //Glendale
            case 474: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.88, 0.0, 0.0, 0.0); //Hermes
            case 546: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Intruder
            case 551: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Merit
            case 467: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Oceanic
            case 547: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Primo
            case 580: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.10, 0.0, 0.0, 0.0); //Stafford
            case 405: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.80, 0.0, 0.0, 0.0); //Sentinel
            case 550: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.77, 0.0, 0.0, 0.0); //Sunrise
            case 549: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.80, 0.0, 0.0, 0.0); //Tampa
            case 421: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Washington
            case 429: AttachObjectToVehicle(lustra[playerid],carid,0.0, 0.60, 0.37, 0.0, 0.0, 0.0); //Banshee
            case 402: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.80, 0.0, 0.0, 0.0); //Buffalo
            case 589: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.10, 0.0, 0.0, 0.0); //Club
            case 494: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.80, 0.0, 0.0, 0.0); //Hotring Racer
            case 502: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.82, 0.0, 0.0, 0.0); //Hotring Racer 2
            case 503: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.84, 0.0, 0.0, 0.0); //Hotring Racer 3
            case 411: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.77, 0.0, 0.0, 0.0); //Infernus
            case 603: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.73, 0.0, 0.0, 0.0); //Phoenix
            case 475: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.79, 0.0, 0.0, 0.0); //Sabre
            case 506: AttachObjectToVehicle(lustra[playerid],carid,0.0, 0.90, 0.30, 0.0, 0.0, 0.0); //Super GT
            case 477: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.77, 0.0, 0.0, 0.0); //ZR-350
            case 404: AttachObjectToVehicle(lustra[playerid],carid,0.0,  0.0, 1.00, 0.0, 0.0, 0.0); //Perenniel
            case 479: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.05, 0.0, 0.0, 0.0); //Regina
            case 458: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.80, 0.0, 0.0, 0.0); //Solair
            case 412: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.78, 0.0, 0.0, 0.0); //Voodoo
            case 439: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.0, 0.35, 0.0, 0.0, 0.0); //Stallion
            case 480: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.80, 0.35, 0.0, 0.0, 0.0); //Comet
            case 500: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.80, 0.35, 0.0, 0.0, 0.0); //Mesa
            case 505: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.15, 0.0, 0.0, 0.0); //Rancher
            case 489: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.15, 0.0, 0.0, 0.0); //Rancher 2
            case 504: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.93, 0.0, 0.0, 0.0); //Bloodring Banger
            case 533: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.15, 0.40, 0.0, 0.0, 0.0); //Feltzer
            case 534: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.70, 0.0, 0.0, 0.0); //Remington
            case 535: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Slamvan
            case 536: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.20, 0.28, 0.0, 0.0, 0.0); //Blade
            case 555: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.90, 0.30, 0.0, 0.0, 0.0); //Windsor
            case 567: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.60, 0.22, 0.0, 0.0, 0.0); //Savanna
            case 575: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.30, 0.58, 0.0, 0.0, 0.0); //Broadway
            case 576: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Tornado
            case 579: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.30, 0.0, 0.0, 0.0); //Huntley
            case 600: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.84, 0.0, 0.0, 0.0); //Picador
            case 495: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.06, 0.0, 0.0, 0.0); //Sandking
            case 543: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Sadler
            case 422: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.89, 0.0, 0.0, 0.0); //Bobcat
            case 554: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.10, 0.0, 0.0, 0.0); //Yosemite
              default: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.90, 0.0, 0.0, 0.0); //Other cars
        }
        return true;
}
    if (strcmp("/migoff", cmdtext, true, 10) == 0)
    {
        DestroyObject(lustra[playerid]);
        return true;
    }
    return 0;
}

 


 

Отредактировано пользователем Lil Pokemon

Заметка от Shakoladka , создано

Большой код нужно брать под спойлер, как это сделать можно узнать тут

Заметка от LilPokemon , создано

3.1. Заголовок темы должен отражать основную суть темы. Темы без информативного заголовка будут переименовываться, а автор может быть предупрежден (на усмотрение модератора).

Поделиться сообщением


Ссылка на сообщение

2 ответа на этот вопрос

  • 0

@веня 

Спойлер

CMD:migon(cmd, params[])

{
        new carid = GetPlayerVehicleID(playerid);
          if(NenadoLustru(carid))
        {
            SendClientMessage(playerid, 0xF6CB00AA, "На данное авто мигалки не работают!");
            return true;
        }
        lustra[playerid] = CreateObject(18646,0,0,0,0,0,0,0.0);
        switch(GetVehicleModel(carid))
        {
            case 587: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.30, 0.80, 0.0, 0.0, 0.0); //Euros
            case 562: AttachObjectToVehicle(lustra[playerid],carid, 0.0,-0.0, 0.85, 0.0, 0.0, 0.0); //Elegy
            case 602: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.30, 0.77, 0.0, 0.0, 0.0); //Alpha
            case 415: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.65, 0.0, 0.0, 0.0); //Cheetah
            case 451: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.63, 0.0, 0.0, 0.0); //Turismo
            case 559: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.77, 0.0, 0.0, 0.0); //Jester
            case 541: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.70, 0.0, 0.0, 0.0); //Bullet
            case 565: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Flash
            case 540: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.79, 0.0, 0.0, 0.0); //Vincent
            case 507: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.88, 0.0, 0.0, 0.0); //Elegant
            case 491: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.78, 0.0, 0.0, 0.0); //Virgo
            case 492: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.92, 0.0, 0.0, 0.0); //Greenwood
            case 526: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.70, 0.0, 0.0, 0.0); //Fortune
            case 529: AttachObjectToVehicle(lustra[playerid],carid,  0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Willard
            case 401: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.82, 0.0, 0.0, 0.0); //Bravura
            case 518: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Buccaneer
            case 527: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.93, 0.0, 0.0, 0.0); //Cadrona
            case 542: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Clover
            case 585: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.08, 0.0, 0.0, 0.0); //Emperor
            case 419: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Esperanto
            case 466: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.93, 0.0, 0.0, 0.0); //Glendale
            case 474: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.88, 0.0, 0.0, 0.0); //Hermes
            case 546: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Intruder
            case 551: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Merit
            case 467: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Oceanic
            case 547: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Primo
            case 580: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.10, 0.0, 0.0, 0.0); //Stafford
            case 405: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.80, 0.0, 0.0, 0.0); //Sentinel
            case 550: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.77, 0.0, 0.0, 0.0); //Sunrise
            case 549: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.80, 0.0, 0.0, 0.0); //Tampa
            case 421: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Washington
            case 429: AttachObjectToVehicle(lustra[playerid],carid,0.0, 0.60, 0.37, 0.0, 0.0, 0.0); //Banshee
            case 402: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.80, 0.0, 0.0, 0.0); //Buffalo
            case 589: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.10, 0.0, 0.0, 0.0); //Club
            case 494: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.80, 0.0, 0.0, 0.0); //Hotring Racer
            case 502: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.82, 0.0, 0.0, 0.0); //Hotring Racer 2
            case 503: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.84, 0.0, 0.0, 0.0); //Hotring Racer 3
            case 411: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.77, 0.0, 0.0, 0.0); //Infernus
            case 603: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.73, 0.0, 0.0, 0.0); //Phoenix
            case 475: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.79, 0.0, 0.0, 0.0); //Sabre
            case 506: AttachObjectToVehicle(lustra[playerid],carid,0.0, 0.90, 0.30, 0.0, 0.0, 0.0); //Super GT
            case 477: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.77, 0.0, 0.0, 0.0); //ZR-350
            case 404: AttachObjectToVehicle(lustra[playerid],carid,0.0,  0.0, 1.00, 0.0, 0.0, 0.0); //Perenniel
            case 479: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.05, 0.0, 0.0, 0.0); //Regina
            case 458: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.80, 0.0, 0.0, 0.0); //Solair
            case 412: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.78, 0.0, 0.0, 0.0); //Voodoo
            case 439: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.0, 0.35, 0.0, 0.0, 0.0); //Stallion
            case 480: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.80, 0.35, 0.0, 0.0, 0.0); //Comet
            case 500: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.80, 0.35, 0.0, 0.0, 0.0); //Mesa
            case 505: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.15, 0.0, 0.0, 0.0); //Rancher
            case 489: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.15, 0.0, 0.0, 0.0); //Rancher 2
            case 504: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.93, 0.0, 0.0, 0.0); //Bloodring Banger
            case 533: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.15, 0.40, 0.0, 0.0, 0.0); //Feltzer
            case 534: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.70, 0.0, 0.0, 0.0); //Remington
            case 535: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Slamvan
            case 536: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.20, 0.28, 0.0, 0.0, 0.0); //Blade
            case 555: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.90, 0.30, 0.0, 0.0, 0.0); //Windsor
            case 567: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.60, 0.22, 0.0, 0.0, 0.0); //Savanna
            case 575: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.30, 0.58, 0.0, 0.0, 0.0); //Broadway
            case 576: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Tornado
            case 579: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.30, 0.0, 0.0, 0.0); //Huntley
            case 600: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.84, 0.0, 0.0, 0.0); //Picador
            case 495: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.06, 0.0, 0.0, 0.0); //Sandking
            case 543: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Sadler
            case 422: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.89, 0.0, 0.0, 0.0); //Bobcat
            case 554: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.10, 0.0, 0.0, 0.0); //Yosemite
              default: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.90, 0.0, 0.0, 0.0); //Other cars
        }
        return true;
}

CMD:migoff(cmd, params[])
{
	DestroyObject(lustra[playerid]);
    return true;
    	}
    	return 0;
}

 

Должно быть так

Отредактировано пользователем Timur_Top
Причина: 1

Поделиться сообщением


Ссылка на сообщение
  • 0

@Timur_Top 

Спойлер

CMD:migon(playerid)
{
  new carid = GetPlayerVehicleID(playerid);
  if(NenadoLustru(carid))
  {
    SendClientMessage(playerid, 0xF6CB00AA, "На данное авто мигалки не работают!");
    return true;
  }
  lustra[playerid] = CreateObject(18646,0,0,0,0,0,0,0.0);
  switch(GetVehicleModel(carid))
  {
		case 587: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.30, 0.80, 0.0, 0.0, 0.0); //Euros
        case 562: AttachObjectToVehicle(lustra[playerid],carid, 0.0,-0.0, 0.85, 0.0, 0.0, 0.0); //Elegy
        case 602: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.30, 0.77, 0.0, 0.0, 0.0); //Alpha
        case 415: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.65, 0.0, 0.0, 0.0); //Cheetah
        case 451: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.63, 0.0, 0.0, 0.0); //Turismo
        case 559: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.77, 0.0, 0.0, 0.0); //Jester
        case 541: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.70, 0.0, 0.0, 0.0); //Bullet
        case 565: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Flash
        case 540: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.79, 0.0, 0.0, 0.0); //Vincent
        case 507: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.88, 0.0, 0.0, 0.0); //Elegant
        case 491: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.78, 0.0, 0.0, 0.0); //Virgo
        case 492: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.92, 0.0, 0.0, 0.0); //Greenwood
        case 526: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.70, 0.0, 0.0, 0.0); //Fortune
        case 529: AttachObjectToVehicle(lustra[playerid],carid,  0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Willard
        case 401: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.82, 0.0, 0.0, 0.0); //Bravura
        case 518: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Buccaneer
        case 527: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.93, 0.0, 0.0, 0.0); //Cadrona
        case 542: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Clover
        case 585: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.08, 0.0, 0.0, 0.0); //Emperor
        case 419: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Esperanto
        case 466: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.93, 0.0, 0.0, 0.0); //Glendale
        case 474: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.88, 0.0, 0.0, 0.0); //Hermes
        case 546: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Intruder
        case 551: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Merit
        case 467: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Oceanic
        case 547: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Primo
        case 580: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.10, 0.0, 0.0, 0.0); //Stafford
        case 405: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.80, 0.0, 0.0, 0.0); //Sentinel
        case 550: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.77, 0.0, 0.0, 0.0); //Sunrise
        case 549: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.80, 0.0, 0.0, 0.0); //Tampa
        case 421: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.75, 0.0, 0.0, 0.0); //Washington
        case 429: AttachObjectToVehicle(lustra[playerid],carid,0.0, 0.60, 0.37, 0.0, 0.0, 0.0); //Banshee
        case 402: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.80, 0.0, 0.0, 0.0); //Buffalo
        case 589: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.10, 0.0, 0.0, 0.0); //Club
        case 494: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.80, 0.0, 0.0, 0.0); //Hotring Racer
        case 502: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.82, 0.0, 0.0, 0.0); //Hotring Racer 2
        case 503: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.84, 0.0, 0.0, 0.0); //Hotring Racer 3
        case 411: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.77, 0.0, 0.0, 0.0); //Infernus
        case 603: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.10, 0.73, 0.0, 0.0, 0.0); //Phoenix
        case 475: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.79, 0.0, 0.0, 0.0); //Sabre
        case 506: AttachObjectToVehicle(lustra[playerid],carid,0.0, 0.90, 0.30, 0.0, 0.0, 0.0); //Super GT
        case 477: AttachObjectToVehicle(lustra[playerid],carid,0.0,-0.20, 0.77, 0.0, 0.0, 0.0); //ZR-350
        case 404: AttachObjectToVehicle(lustra[playerid],carid,0.0,  0.0, 1.00, 0.0, 0.0, 0.0); //Perenniel
        case 479: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.05, 0.0, 0.0, 0.0); //Regina
        case 458: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.80, 0.0, 0.0, 0.0); //Solair
        case 412: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.78, 0.0, 0.0, 0.0); //Voodoo
        case 439: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.0, 0.35, 0.0, 0.0, 0.0); //Stallion
        case 480: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.80, 0.35, 0.0, 0.0, 0.0); //Comet
        case 500: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.80, 0.35, 0.0, 0.0, 0.0); //Mesa
        case 505: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.15, 0.0, 0.0, 0.0); //Rancher
        case 489: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.15, 0.0, 0.0, 0.0); //Rancher 2
        case 504: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.93, 0.0, 0.0, 0.0); //Bloodring Banger
        case 533: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.15, 0.40, 0.0, 0.0, 0.0); //Feltzer
        case 534: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.70, 0.0, 0.0, 0.0); //Remington
        case 535: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.87, 0.0, 0.0, 0.0); //Slamvan
        case 536: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.20, 0.28, 0.0, 0.0, 0.0); //Blade
        case 555: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.90, 0.30, 0.0, 0.0, 0.0); //Windsor
        case 567: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.60, 0.22, 0.0, 0.0, 0.0); //Savanna
        case 575: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 1.30, 0.58, 0.0, 0.0, 0.0); //Broadway
        case 576: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Tornado
        case 579: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.30, 0.0, 0.0, 0.0); //Huntley
        case 600: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.84, 0.0, 0.0, 0.0); //Picador
        case 495: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.06, 0.0, 0.0, 0.0); //Sandking
        case 543: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.95, 0.0, 0.0, 0.0); //Sadler
        case 422: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.89, 0.0, 0.0, 0.0); //Bobcat
        case 554: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 1.10, 0.0, 0.0, 0.0); //Yosemite
        default: AttachObjectToVehicle(lustra[playerid],carid, 0.0, 0.0, 0.90, 0.0, 0.0, 0.0); //Other cars
  }
  return true;
}
CMD:migoff(playerid)
{
  DestroyObject(lustra[playerid]);
  return true;
}

 

Не нужно в параметрах команды указывать "params[]", если вводить ничего не нужно.

И return 0 и ниже после него относится к стандартному паблику с командами, поэтому это не нужно было добавлять.

Отредактировано пользователем Shakoladka

Заметка от Shakoladka , создано

Большой код нужно брать под спойлер, как это сделать можно узнать тут!

Поделиться сообщением


Ссылка на сообщение
Гость
Эта тема закрыта для публикации ответов.
  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • Mister Odin
      От Mister Odin
       
      new
       g_teleport_list[39][E_TELEPORT_LIST] = {  {"Спавн пгт.Батырево", 1802.3612, 2508.4824, 15.8887},  {"Спавн г.Арзамас", -113.5887, 977.7222, 12.0346},     {"Спавн г.Южный", 2744.2770, -2446.7246, 21.8988},     {"Центральный банк", 1852.020385,2040.791381,15.892713},  {"Рублёвка", -837.7783, 888.6161, 12.7232},  {"Казино", 1332.4252, 2358.7014, 17.6641},  {"Битва за контейнеры", 614.5167, 1722.3566, 12.0709},  {"Автосалон низкого класса", 2493.9616, -722.9544, 12.3315},  {"Автосалон среднего класса", 1407.7449, 455.4801, 13.1630},  {"Автосалон высокого класса", -14.0637, 2614.5664, 10.9892},   {"Мотосалон Harley Davidson", 785.720153, 750.465087, 12.000024},  {"Автошкола", 1909.174438,2227.679687,15.708162},  {"Военкомат", 1916.778564,2302.411376,15.574637},  {"Правительство области", -139.140975,593.789611,12.145712},  {"Отдел полиции №1 (ГИБДД)", 1906.805786,-2234.382812,11.257631},  {"Отдел полиции №2 (УМВД)", 2581.309326,-2416.139892,21.960090},  {"Отдел ФСБ", 1823.904663,2095.636718,15.848405},  {"Городская больница г.Арзамас", -285.797210,581.851562,12.120290},   {"СМИ", -317.708038,821.221679,13.051450},  {"Воинская часть", 1703.197265,1678.025878,15.279437},  {"Арзамасская ОПГ", 438.705322,1046.505126,12.002637},  {"Батыревская ОПГ", 1941.203857,2161.006591,15.705187},  {"Лыткаринская ОПГ", -2346.002441,75.257041,21.002962},  {"Шахта", 2381.5727, 1726.4451, -2.1506},  {"Завод", -1062.6697, 2204.1894, 38.0964},  {"Инкосация", 1864.1374, 2011.7136, 15.8546},  {"Транспортная Компания", 2362.1115, 1972.5627, 15.5530},  {"База механиков", 1840.918090,-118.025146,15.695312},  {"Курьерская служба доставки", 2764.509765,-2396.882568,21.890625},  {"Аренда автобуса(Южный)", 2771.041992,-2454.780761,21.845964},  {"Аренда автобуса(Арзамас)", -127.487670,943.652648,12.142824},   {"Аренда автобуса(Батырево)", 1798.986328,2529.591552,15.664262},  {"Гоночная трасса", -1568.7784, 1611.8305, 36.3971},  {"Дом на горе", -789.5397, -456.7479, 741.1422},  {"СТО и тюнинг-ателье", 1856.1375, -122.3266, 15.6888},  {"Аренда транспорта пгт.Батырево", 1763.641723,2255.673339,15.865348},  {"Аренда транспорта г.Арзамас", -36.923530,1360.673583,12.002090},  {"Аренда транспорта г.Южный", 1966.599975,-2603.943603,10.820312},  {"Тайный интерьер в Лыткарино", -2424.5818, 2846.3291, 40.7908} };