[FilterScript] Alien Car
#1

Aliencar

Just a car we Kanada and I made today for fun hope you guys enjoy it!



pawn Код:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////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 is occupied");
            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, "Put into the alien car");
    return 1;
}
Reply
#2

Not bad!

+1 Rep

You should make an alien plane next (just a suggestion though)
Reply
#3

Awesome work & creativity.
Reply
#4

hmm i was thinking if anybody can make a paintjob on a plane good work
Reply
#5

Quote:
Originally Posted by OpticKiller
Посмотреть сообщение
hmm i was thinking if anybody can make a paintjob on a plane good work
It's possible somewhat you can attach objects to the plane that are colored but I don't think you can change the color of the plane it's self.
Reply
#6

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
It's possible somewhat you can attach objects to the plane that are colored but I don't think you can change the color of the plane it's self.
Depends on the plane.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)