17:47
ОбновитьСмайлыУправление мини-чатом
МИНИ-ЧАТ
Главная страница!

 



 
          





Рекомендуем:





Последние Файлы GTA 4 Последние Файлы GTA-MP Реклама
Скрипт GTA 4 элементы Watch... 07.09.2014
Ferrari 360 Spider [EPM con... 13.12.2013
Porsche Cayenne Turbo 2012 ... 13.12.2013
Shelby Terlingua Mustang v1... 13.12.2013
Hamann Lamborghini Gallardo... 27.10.2013
[GM] The Big PEN1:LS v2.00 ... 04.12.2017
Dgun (AvnanceRP,SampRP,Dimo... 19.03.2016
SAMP скрипт SX Events (MySQ... 03.03.2016
Карта ASL мэрия для SAMP се... 03.03.2016
AIM для SA-MP 0.3.7 22.02.2016
  • Страница 1 из 2
  • 1
  • 2
  • »
Модератор форума: Alcoholik  
[FAQ]Создание доп. Мигалки
Anderson_Дата: Суббота, 22.01.2011, 22:19 | Сообщение # 1
Уверенный в себе
Группа: Продвинутые
Сообщений: 231
Награды: 8
Город: Los Angeles
Замечания: 20%
Статус:
Создание дополнительной мигалки

Начнём:
В new вставляем
Code

new IsSpu[MAX_VEHICLES] = 0;
new Lamp[MAX_VEHICLES] = 0;
new light[MAX_VEHICLES];
new light2[MAX_VEHICLES];

Далее в OnPlayerCommandText вставляем
Code

      if (strcmp("/spu", cmdtext, true) == 0)
      {
      if(IsPlayerConnected(playerid))
      {
          if(IsACop(playerid))
          {
           if( PlayerInfo[playerid][pMember] == 1 &&
      PlayerInfo[playerid][pRank] != 11 &&
      PlayerInfo[playerid][pRank] != 12)
       {
      SendClientMessage(playerid, COLOR_GREY, "   Вы не уполномочены использовать эту команду!");
      return 1;
     }
           if(    PlayerInfo[playerid][pMember] == 2 &&
      PlayerInfo[playerid][pRank] != 5 &&
      PlayerInfo[playerid][pRank] != 7 &&
      PlayerInfo[playerid][pRank] != 9 &&
      PlayerInfo[playerid][pRank] != 11 &&
      PlayerInfo[playerid][pRank] != 12)
       {
      SendClientMessage(playerid, COLOR_GREY, "   Вы не уполномочены использовать эту команду!");
      return 1;
     }
           if(gOnDuty[playerid] != 1)
     {
         SendClientMessage(playerid, COLOR_GREY, "   Вы не при исполнении служебных обязанностей !");
         return 1;
     }
          if(IsACop(playerid))
         ShowPlayerDialog(playerid, 1123, DIALOG_STYLE_LIST, "So you want to have a SPU, what one do you want then?", "Sultan [dashboard]\nSultan [roof]\nCheetah [dashboard]\nCheetah [roof]\nWashington [dashboard]\nWashington [roof]\nPremier [dashboard]\nPremier [roof]\nHuntley [dashboard]\nHuntley [roof]\nMore", "Take it", "Leave it" );
                  }
    else SendClientMessage(playerid, COLOR_GREY, "   Вы не уполномочены использовать эту команду!");
      }
      return 1;
     }
     if (strcmp("/destroyspu", cmdtext, true) == 0)
     {
         if(IsPlayerConnected(playerid))
         {
             new vid = GetPlayerVehicleID(playerid);
             if(IsSpu[vid] > 0)
             {
                     IsSpu[vid] = 0;
                     if(Lamp[vid] == 1)
                     {
                     DestroyObject(light[vid]);
                     Lamp[vid] = 0;
                     }
                     DestroyVehicle(vid);
                     return 1;
             }
             else
             {
                    SendClientMessage(playerid, COLOR_RED, "This is not a SPU vehicle.");
             }
         }
         return 1;
     }

Добавлено (22.01.2011, 22:10)
---------------------------------------------
Дальше вставляем в public OnDialogResponse следующие строки:

Code

  if(response == 1 && dialogid == 1123)
     {
         switch(listitem)
         {
            case 0:
             {//sultan lamp inside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(560, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 1;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, 0.398071289, 0.75390625, 0.43879509, 0.0, 0.0, 0.0);
             }
             case 1:
             {//sultan lamp outside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(560, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 2;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, -0.35644531250, 0.0388183593, 0.863788605, 0.0, 0.0, 0.0);
             }
             case 2:
             {//cheetah lamp inside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(415, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 3;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, 0.409729004, 0.526367188, 0.206963539, 0.0, 0.0, 0.0);
             }
             case 3:
             {//cheetah lamp outside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(415, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 4;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, -0.290039062, -0.284179688, 0.631957054, 0.0, 0.0, 0.0);
             }
             case 4:
             {//wash lamp inside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(421, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 5;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, 0.421691895, 0.804931641, 0.256482124, 0.0, 0.0, 0.0);
             }
             case 5:
             {//wash lamp outside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(421, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 6;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, -0.323303223, 0.0207519532, 0.731482506, 0.0, 0.0, 0.0);
             }//done
             case 6:
             {//premier lamp inside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(426, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 7;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, 0.575378418, 0.786132812, 0.361483574, 0.0, 0.0, 0.0);
             }
             case 7:
             {//premier lamp outside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(426, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 8;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, -0.455505371, -0.143066406, 0.861475945, 0.0, 0.0, 0.0);
             }
             case 8:
             {//huntley lamp inside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(579, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 9;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, 0.454345703, 0.575683594, 0.645122528, 0.0, 0.0, 0.0);
             }

Добавлено (22.01.2011, 22:12)
---------------------------------------------

Code

            case 9:
             {//huntley lamp outside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(579, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 10;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, -0.442626953, -0.269042969, 1.27014542, 0.0, 0.0, 0.0);
             }
             case 10:
             {//new dialog
                 ShowPlayerDialog(playerid, 1133, DIALOG_STYLE_LIST, "So you want to have a SPU, what one do you want then?", "Buffalo [dashboard]\nBuffalo [roof]\nLSPD Cruiser[dashboard]\nLSPD Cruiser[roof]\nSFPD Cruiser[dashboard]\nSFPD Cruiser[roof]\nLVPD Cruiser[dashboard]\nLVPD Cruiser[roof]\nFiretruck\nFBI Truck", "Take it", "Leave it" );
             }
         }
     }
     if(response == 1 && dialogid == 1133)
     {
         switch(listitem)
         {
             case 0:
             {//buffalo lamp inside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(402, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 11;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, 0.53515625, 0.562988281, 0.278743744, 0.0, 0.0, 0.0);

             }
             case 1:
             {//buffalo lamp outside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(402, x, y, z, angle, 0, 0, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 12;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, -0.412841797, -0.474365234, 0.778804779, 0.0, 0.0, 0.0);
             }
             case 2:
             {//lspd lamp inside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(596, x, y, z, angle, 0, 1, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 13;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, 0.53515625, 0.771728516, 0.373809814, 0.0, 0.0, 0.0);
             }
             case 3:
             {//lspd lamp outside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(596, x, y, z, angle, 0, 1, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 14;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, -0.0048828125, -0.860107422, 0.848770142, 0.0, 0.0, 0.0);
             }

Продолжение выше поста всё вместе в OnDialogResponse

Добавлено (22.01.2011, 22:13)
---------------------------------------------
Вот ещё crazy

Code

             case 4:
             {//sfpd lamp inside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(597, x, y, z, angle, 0, 1, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 15;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, 0.53515625, 0.771728516, 0.373809814, 0.0, 0.0, 0.0);
             }
             case 5:
             {//sfpd lamp outside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(597, x, y, z, angle, 0, 1, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 16;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, -0.0048828125, -0.860107422, 0.848770142, 0.0, 0.0, 0.0);
             }
             case 6:
             {//lvpd lamp inside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(598, x, y, z, angle, 0, 1, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 17;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, 0.406738281, 0.696777344, 0.398208618, 0.0, 0.0, 0.0);
             }
             case 7:
             {//lvpd lamp outside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(598, x, y, z, angle, 0, 1, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 18;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, -0.0048828125, -0.860107422, 0.848770142, 0.0, 0.0, 0.0);
             }
             case 8:
             {//firetruck lamps outside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(544, x, y, z, angle, 3, 1, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 19;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, 0.522338867, 2.5925293, 1.46867275, 0.0, 0.0, 0.0);
                 light2[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, -0.528259277, 2.5925293, 1.46867275, 0.0, 0.0, 0.0);
             }
             case 9:
             {//fbi truck lamp inside
                 new Float:x, Float:y, Float:z, Float:angle;
                 GetPlayerPos(playerid, x, y, z);
                 GetPlayerFacingAngle(playerid, angle);
                 new vehicleid=CreateVehicle(528, x, y, z, angle, 1, 1, -1);
                 PutPlayerInVehicle(playerid, vehicleid, 0);
                 SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
                 LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                 IsSpu[vehicleid] = 20;
                 Lamp[vehicleid] = 1;
                 light[vehicleid] = CreateObject(18646,x, y, z, 0.0, 0.0, 96.0);
                 AttachObjectToVehicle(light[vehicleid], vehicleid, 0.563842773, 0.754882812, 0.487258911, 0.0, 0.0, 0.0);
             }
         }
     }

Короче выше 2 поста это 1 код, который должен быть в OnDialogResponse crazy

Добавлено (22.01.2011, 22:14)
---------------------------------------------
Далее в OnPlayerKeyStateChange вставляем это. В самое начало.

Code

     if((newkeys & KEY_SUBMISSION) && !(oldkeys & KEY_SUBMISSION))
     {
          VehicleLightSwitch(playerid);
     }
  if(IsPlayerNPC(playerid)) return 1;

Добавлено (22.01.2011, 22:14)
---------------------------------------------
В самый конец мода вставляем это

Code

VehicleLightSwitch(playerid)
{
         new vid = GetPlayerVehicleID(playerid);
         if(vid == INVALID_VEHICLE_ID) return 1;
         if(IsSpu[vid] == 1)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, 0.398071289, 0.75390625, 0.43879509, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 2)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, -0.35644531250, 0.0388183593, 0.863788605, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 3)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, 0.409729004, 0.526367188, 0.206963539, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 4)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, -0.290039062, -0.284179688, 0.631957054, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 5)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, 0.421691895, 0.804931641, 0.256482124, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 6)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, -0.323303223, 0.0207519532, 0.731482506, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
     &n


AndersonByДата: Суббота, 22.01.2011, 22:21 | Сообщение # 2
Новенький
Группа: Пользователи
Сообщений: 7
Награды: 1
Город: Гродно
Репутация: 1
Замечания: 0%
Статус:
Продолжение
Продолжение



:D
Anderson_Дата: Суббота, 22.01.2011, 22:26 | Сообщение # 3
Уверенный в себе
Группа: Продвинутые
Сообщений: 231
Награды: 8
Город: Los Angeles
Замечания: 20%
Статус:
Всё вместе с выше кодом.
Code

         if(IsSpu[vid] == 6)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, -0.323303223, 0.0207519532, 0.731482506, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 7)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, 0.575378418, 0.786132812, 0.361483574, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 8)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, -0.455505371, -0.143066406, 0.861475945, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 9)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, 0.454345703, 0.575683594, 0.645122528, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 10)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, -0.442626953, -0.269042969, 1.27014542, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 11)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, 0.53515625, 0.562988281, 0.278743744, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }

Добавлено (22.01.2011, 22:22)
---------------------------------------------
Ещё одно продолжение

Code

         if(IsSpu[vid] == 12)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, -0.412841797, -0.474365234, 0.778804779, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 13)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, 0.53515625, 0.771728516, 0.373809814, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 14)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, -0.0048828125, -0.860107422, 0.848770142, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 15)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, 0.53515625, 0.771728516, 0.373809814, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }

Добавлено (22.01.2011, 22:23)
---------------------------------------------
Ещё одно продолжение

Code

         if(IsSpu[vid] == 16)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, -0.0048828125, -0.860107422, 0.848770142, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 17)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, 0.406738281, 0.696777344, 0.398208618, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 18)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646,0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, -0.0048828125, -0.860107422, 0.848770142, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         if(IsSpu[vid] == 19)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  DestroyObject(light2[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646, 0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, 0.522338867, 2.5925293, 1.46867275, 0.0, 0.0, 0.0);
                  light2[vid] = CreateObject(18646, 0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, -0.528259277, 2.5925293, 1.46867275, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }

Добавлено (22.01.2011, 22:24)
---------------------------------------------
Вот ещё продолжение(последнее crazy )

Code

         if(IsSpu[vid] == 20)
         {
             if(Lamp[vid] == 1)
             {
                  DestroyObject(light[vid]);
                  Lamp[vid] = 0;
                  return 1;
             }
             if(Lamp[vid] == 0)
             {
                  light[vid] = CreateObject(18646, 0, 0, 0, 0.0, 0.0, 96.0);
                  AttachObjectToVehicle(light[vid], vid, 0.563842773, 0.754882812, 0.487258911, 0.0, 0.0, 0.0);
                  Lamp[vid] = 1;
                  return 1;
             }
         }
         return 1;
}

Всё, все зделано. Осталось скомпилировать и просмотреть.
Команда доступна только для копов, так как я добавил переменную..
FilterScript by Geso
Решил фак выложить в этот раздел.

Добавлено (22.01.2011, 22:26)
---------------------------------------------
Вот как всё должно выглядеть:



PustikДата: Воскресенье, 23.01.2011, 21:40 | Сообщение # 4
Группа: I'm V.I.P.
Сообщений: 1669
Награды: 129
Город: Кривой Рог
Репутация: 939
Замечания: 60%
Статус:
Прикольно,ток зделать бы что б админом давать на ID ну там /мигалка ID и такое разное \неон ид и тд,было бы кульно :)
GoshikДата: Воскресенье, 23.01.2011, 23:26 | Сообщение # 5
Уверенный в себе
Группа: Пользователи
Сообщений: 280
Награды: 1
Город: ---
Репутация: 18
Замечания: 60%
Статус:
зачем столько ненужного кода всего-лишь для мигалок?...
K-e-n-tДата: Понедельник, 31.01.2011, 09:57 | Сообщение # 6
Местный
Группа: Продвинутые
Сообщений: 649
Награды: 6
Город: pTz city
Репутация: 30
Замечания: 0%
Статус:
хмм, это так и должно что мне тачку новую ставит?


Если я тебе помог, или сказал что то умное, ставь +
Я Francesko_Wilson
За деньги работаю качественнее и быстрее :crazy:
BlogДата: Понедельник, 31.01.2011, 12:24 | Сообщение # 7
Новенький
Группа: Пользователи
Сообщений: 70
Награды: 1
Город: Кишинёв
Репутация: -3
Замечания: 0%
Статус:
автор этого урока ты?
TiShAДата: Понедельник, 31.01.2011, 13:25 | Сообщение # 8
Освоившийся
Группа: Продвинутые
Сообщений: 96
Награды: 6
Город: KIev
Репутация: -356
Замечания: 100%
Статус:
кинте плыз сылку а sanse game за +
BlogДата: Понедельник, 31.01.2011, 13:31 | Сообщение # 9
Новенький
Группа: Пользователи
Сообщений: 70
Награды: 1
Город: Кишинёв
Репутация: -3
Замечания: 0%
Статус:
Quote (TiShA)
кинте плыз сылку а sanse game за +

1.флуд нен в той тему
2.ошибся темой

TiShAДата: Понедельник, 31.01.2011, 13:58 | Сообщение # 10
Освоившийся
Группа: Продвинутые
Сообщений: 96
Награды: 6
Город: KIev
Репутация: -356
Замечания: 100%
Статус:
сорри окно перепутал!
K-e-n-tДата: Понедельник, 31.01.2011, 17:01 | Сообщение # 11
Местный
Группа: Продвинутые
Сообщений: 649
Награды: 6
Город: pTz city
Репутация: 30
Замечания: 0%
Статус:
Кто подскажет как сделать что бы не новая тачка появлялась, а уже на существующюю поставить?


Если я тебе помог, или сказал что то умное, ставь +
Я Francesko_Wilson
За деньги работаю качественнее и быстрее :crazy:
Fus1Дата: Вторник, 01.02.2011, 01:13 | Сообщение # 12
Группа: Продвинутые
Сообщений: 2704
Награды: 121
Город: Melbourne Australia
Репутация: 3103
Замечания: 0%
Статус:
сделали бы уж тогда по таймеру чтобы каждые пару секунд ID объекта менялись (красная,синяя,красная,синяя и т.д)
XeKДата: Вторник, 01.02.2011, 17:02 | Сообщение # 13
Группа: I'm V.I.P.
Сообщений: 658
Награды: 7
Город: San Francisco:D
Репутация: 171
Замечания: 0%
Статус:
Anderson,подскажи какие должны быть координаты ? просто я поставил они у меня кривые то есть не на машине стоят а кабуто в воздухе


Помагаю в uCoz,mta QIP-446381844
Делаю мелкие работы в мта бесплатно стучать в ЛС
Мои работы
[MAP]Квартира в [LS]
[MAP]Магазин с одеждой[SF]
[MAP]Место для вечеринок в [SF]
[MAP]Офис в [LS]
[MAP]Респа полиции в посёлке
[MAP]Квартира в [LV]
[MAP]Яхт Клуб и место для отдыха
wowkolaДата: Четверг, 03.02.2011, 22:45 | Сообщение # 14
Новенький
Группа: Пользователи
Сообщений: 2
Награды: 0
Город: чебоксары
Репутация: 0
Замечания: 0%
Статус:
C:\Users\1\Desktop\êîëèíû èãðû\êîïèÿ Goldenmen\gamemodes\GM.pwn(36920) : error 017: undefined symbol "gOnDuty"
C:\Users\1\Desktop\êîëèíû èãðû\êîïèÿ Goldenmen\gamemodes\GM.pwn(36920) : warning 215: expression has no effect
C:\Users\1\Desktop\êîëèíû èãðû\êîïèÿ Goldenmen\gamemodes\GM.pwn(36920) : error 001: expected token: ";", but found "]"
C:\Users\1\Desktop\êîëèíû èãðû\êîïèÿ Goldenmen\gamemodes\GM.pwn(36920) : error 029: invalid expression, assumed zero
C:\Users\1\Desktop\êîëèíû èãðû\êîïèÿ Goldenmen\gamemodes\GM.pwn(36920) : fatal error 107: too many error messages on one line

чоза ошибка как исправить?

K-e-n-tДата: Суббота, 05.02.2011, 23:02 | Сообщение # 15
Местный
Группа: Продвинутые
Сообщений: 649
Награды: 6
Город: pTz city
Репутация: 30
Замечания: 0%
Статус:
gOnDuty попробуй исправить на OnDuty


Если я тебе помог, или сказал что то умное, ставь +
Я Francesko_Wilson
За деньги работаю качественнее и быстрее :crazy:
  • Страница 1 из 2
  • 1
  • 2
  • »
Поиск:





 


 


 
Хостинг от uCoz samp.at.ua