• Страница 1 из 1
  • 1
Модератор форума: valych  
Форум | www.SAMP-TEAM.com » San Andreas MultiPlayer » Скрипты » [FS] Alien Car
[FS] Alien Car


Код
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////420medit Filter Script Export////////////////////////////////////////////////////////////////////////////////
////medit/carexports/aliencar.pwn By: [uL]Pottus
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include <a_samp>
#include <zcmd>

new VObject_0;
new VObject_1;
new VObject_2;
new VObject_3;
new VObject_4;
new VObject_5;
new VObject_6;
new VObject_7;
new VObject_8;
new VObject_9;
new VObject_10;
new VObject_11;
new VObject_12;
new VObject_13;
new VObject_14;
new VObject_15;
new VObject_16;

new CarVid;

public OnFilterScriptInit()
{
     CarVid = CreateVehicle(559, -1348.128540, 2142.244628, 47.313007, 194.639495, 3, 3, 3600);
     UpdateVehicleDamageStatus(CarVid,0,67371008,0,0);
     ChangeVehiclePaintjob(CarVid, 0);
     AddVehicleComponent(CarVid, 1162);
     AddVehicleComponent(CarVid, 1067);
     AddVehicleComponent(CarVid, 1071);
     AddVehicleComponent(CarVid, 1009);
     AddVehicleComponent(CarVid, 1065);
     AddVehicleComponent(CarVid, 1073);
     AddVehicleComponent(CarVid, 1160);
     AddVehicleComponent(CarVid, 1159);

     VObject_0 = CreateObject(19482, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_1 = CreateObject(19482, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_2 = CreateObject(14705, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_3 = CreateObject(14705, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_4 = CreateObject(18647, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_5 = CreateObject(1952, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_6 = CreateObject(1974, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_7 = CreateObject(1785, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_8 = CreateObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_9 = CreateObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_10 = CreateObject(2114, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_11 = CreateObject(2114, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_12 = CreateObject(2114, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_13 = CreateObject(2114, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_14 = CreateObject(1104, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_15 = CreateObject(1104, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
     VObject_16 = CreateObject(1104, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);

     SetObjectMaterialText(VObject_0, "…", 0, 130, "Webdings", 60, 0, -1140916224, 0, 0);
     SetObjectMaterialText(VObject_1, "…", 0, 130, "Webdings", 100, 0, -1140916224, 0, 0);
     SetObjectMaterial(VObject_2, 0, 3922, "bistro", "mp_snow", -5174261);
     SetObjectMaterial(VObject_3, 0, 3922, "bistro", "mp_snow", -5174261);
     SetObjectMaterial(VObject_6, 0, 2707, "Shopping", "white", -8978432);
     SetObjectMaterial(VObject_7, 0, 2707, "Shopping", "white", -15658735);
     SetObjectMaterial(VObject_7, 1, -1, "none", "none", -15658735);
     SetObjectMaterial(VObject_7, 2, -1, "none", "none", -65536);
     SetObjectMaterialText(VObject_8, "O", 0, 130, "Engravers MT", 90, 0, -65536, 0, 1);
     SetObjectMaterialText(VObject_9, "O", 0, 130, "Engravers MT", 90, 0, -65536, 0, 1);
     SetObjectMaterial(VObject_10, 0, 3967, "cj_airprt", "cj_chromepipe", -5636096);
     SetObjectMaterial(VObject_11, 0, 3967, "cj_airprt", "cj_chromepipe", -5636096);
     SetObjectMaterial(VObject_12, 0, 3967, "cj_airprt", "cj_chromepipe", -5636096);
     SetObjectMaterial(VObject_13, 0, 3967, "cj_airprt", "cj_chromepipe", -5636096);

     AttachObjectToVehicle(VObject_0, CarVid, -2.470000, 1.327000, -0.086000, 0.000000, -55.000000, 90.000000);
     AttachObjectToVehicle(VObject_1, CarVid, -2.259000, -2.299000, 0.370000, 0.000000, 77.000000, 90.000000);
     AttachObjectToVehicle(VObject_2, CarVid, 0.633000, -2.390000, -0.367000, 90.000000, 0.000000, 360.000000);
     AttachObjectToVehicle(VObject_3, CarVid, -0.633000, -2.390000, -0.367000, 90.000000, 0.000000, 360.000000);
     AttachObjectToVehicle(VObject_4, CarVid, 0.000000, 0.000000, -0.518000, 0.000000, 0.000000, 0.000000);
     AttachObjectToVehicle(VObject_5, CarVid, 0.000000, 0.119000, -0.187000, -80.000000, 90.000000, 180.000000);
     AttachObjectToVehicle(VObject_6, CarVid, -0.006000, 0.059000, 0.046000, -10.000000, 0.000000, 0.000000);
     AttachObjectToVehicle(VObject_7, CarVid, 0.000000, 0.527000, 0.149000, 0.000000, 0.000000, 0.000000);
     AttachObjectToVehicle(VObject_8, CarVid, -0.476000, 0.067000, 0.128000, 85.000000, 90.000000, 0.000000);
     AttachObjectToVehicle(VObject_9, CarVid, -0.476000, 0.085000, 0.128000, 85.000000, 90.000000, 0.000000);
     AttachObjectToVehicle(VObject_10, CarVid, -0.879000, 1.440000, -0.298999, 0.000000, 0.000000, 40.000000);
     AttachObjectToVehicle(VObject_11, CarVid, 0.888999, 1.450000, -0.308999, 0.000000, 0.000000, 40.000000);
     AttachObjectToVehicle(VObject_12, CarVid, 0.879000, -1.470000, -0.309000, 0.000000, 0.000000, 40.000000);
     AttachObjectToVehicle(VObject_13, CarVid, -0.879000, -1.470000, -0.309000, 0.000000, 0.000000, 40.000000);
     AttachObjectToVehicle(VObject_14, CarVid, 0.000000, 1.499999, -0.550000, -90.000000, 0.000000, 0.000000);
     AttachObjectToVehicle(VObject_15, CarVid, 0.000000, 1.699999, -0.600000, -90.000000, 0.000000, 0.000000);
     AttachObjectToVehicle(VObject_16, CarVid, 0.000000, 1.299999, -0.550000, -90.000000, 0.000000, 0.000000);
}

public OnFilterScriptExit()
{
     DestroyVehicle(CarVid);

     DestroyObject(VObject_0);
     DestroyObject(VObject_1);
     DestroyObject(VObject_2);
     DestroyObject(VObject_3);
     DestroyObject(VObject_4);
     DestroyObject(VObject_5);
     DestroyObject(VObject_6);
     DestroyObject(VObject_7);
     DestroyObject(VObject_8);
     DestroyObject(VObject_9);
     DestroyObject(VObject_10);
     DestroyObject(VObject_11);
     DestroyObject(VObject_12);
     DestroyObject(VObject_13);
     DestroyObject(VObject_14);
     DestroyObject(VObject_15);
     DestroyObject(VObject_16);
}

public OnVehicleSpawn(vehicleid)
{
     if(CarVid == vehicleid)
     {
         UpdateVehicleDamageStatus(vehicleid,0,67371008,0,0);
         ChangeVehiclePaintjob(vehicleid, 0);
         AddVehicleComponent(vehicleid, 1162);
         AddVehicleComponent(vehicleid, 1067);
         AddVehicleComponent(vehicleid, 1071);
         AddVehicleComponent(vehicleid, 1009);
         AddVehicleComponent(vehicleid, 1065);
         AddVehicleComponent(vehicleid, 1073);
         AddVehicleComponent(vehicleid, 1160);
         AddVehicleComponent(vehicleid, 1159);
     }
}

CMD:aliencar(playerid, arg[])
{
     for(new i = 0; i < MAX_PLAYERS; i++)
     {
         if(GetPlayerVehicleID(i) == CarVid)
         {
             SendClientMessage(playerid, 0xFF0000FF, "Alien car уже занят");
             return 1;
         }
     }
     new Float:ppos[3];
     GetPlayerPos(playerid, ppos[0], ppos[1], ppos[2]);
     SetVehiclePos(CarVid, ppos[0], ppos[1], ppos[2]);
     PutPlayerInVehicle(playerid, CarVid, 0);
     SendClientMessage(playerid, 0xFF0000FF, "Вы сел в alien car");
     return 1;
}


Автор: [uL]Pottus
23.05.2013 в 20:28
Офигенно
14.11.2013 в 21:29
Ништяк biggrin
27.12.2013 в 17:01
не разобрался, а что он делает??
25.04.2014 в 09:52
Автор Супер smile
10.07.2014 в 06:17
Фотографии бы полезно
10.07.2014 в 12:28
Форум | www.SAMP-TEAM.com » San Andreas MultiPlayer » Скрипты » [FS] Alien Car
  • Страница 1 из 1
  • 1
Поиск: