[FilterScript] Skyland - Sphere Patroller
#1

What is this?
When i was around eight years old i used to watch skyland on nickelodeon because i am quite a fan of survival and end of the world movies. So, i decided to work on skyland "ships" using AttachObjectToVehicle and SetObjectMaterial.

Why am i releasing this?
I am planning on quiting the SA:MP community soon. I am already playing SA:MP for like 2,5 years and it slowly gets boring. I might still continue with playing a few small-community servers but i dont think i will continue with creating servers. This was also made to get released.

Screenshot(s)



Download(s)
You can copy the code that i am posting below to your script and simply fill in the coordinates. However, you will need to put yourself in it with the function PutPlayerInVehicle because you cannot enter it with the enter button. This code is written quickly because i already had the offsets and it would be a shame to just remove it.
pawn Код:
stock CreatePatroller(Float:cx, Float:cy, Float:cz, Float:crot)
{
    new Base, Objects[32];
    Base = CreateVehicle(464, cx, cy, cz, crot, -1, -1, -1);
    Objects[0] = CreateObject(1566,-0.79980469,-1.50000000,1.25000000,0.00000000,0.00000000,0.00000000); //sphere_ship_main_door
    Objects[1] = CreateObject(2885,-0.95996094,5.15039062,5.20000076,0.00000000,90.00000000,90.00000000); //object(xref_garagedoor) (1)
    Objects[2] = CreateObject(2885,0.97167969,-1.56152344,5.20000076,0.00000000,90.00000000,270.00000000); //object(xref_garagedoor) (2)
    Objects[3] = CreateObject(1566,-0.79980469,-1.50000000,4.27500105,0.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[4] = CreateObject(1566,-0.79980469,-1.50000000,7.30000305,0.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[5] = CreateObject(1566,-0.79980469,-1.50000000,9.12500572,0.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[6] = CreateObject(1566,-0.80078125,-0.02343750,10.58500004,90.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[7] = CreateObject(1566,-0.77539062,3.00195312,10.58500004,90.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[8] = CreateObject(1566,-0.77832031,3.62597656,10.58500004,90.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[9] = CreateObject(1566,-0.47967327,5.38987494,9.13500309,12.00000000,0.00000000,0.00000000); //sphere_ship_wind1
    Objects[10] = CreateObject(1566,-1.15384412,5.38987494,9.13500309,11.99707031,0.00000000,0.00000000); //sphere_ship_wind2
    Objects[11] = CreateObject(1566,-0.47949219,5.80761719,6.16000223,3.99353027,0.00000000,0.00000000); //sphere_ship_door
    Objects[12] = CreateObject(1566,-1.15332031,5.79785156,6.16000223,3.98803711,0.00000000,0.00000000); //sphere_ship_door
    Objects[13] = CreateObject(1566,-0.47949219,5.91210938,3.13500214,0.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[14] = CreateObject(1566,-1.15332031,5.91210938,3.13500214,0.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[15] = CreateObject(1566,-1.08841681,4.34054375,3.13500214,0.00000000,0.00000000,90.00000000); //sphere_ship_door
    Objects[16] = CreateObject(1566,-1.09227800,4.23994064,6.01000357,0.00000000,356.00000000,90.00000000); //sphere_ship_door
    Objects[17] = CreateObject(1566,-1.08947527,3.83848214,8.78500748,0.00000000,349.99545288,90.00000000); //sphere_ship_door
    Objects[18] = CreateObject(1566,1.08176196,3.86742210,8.78500748,0.00000000,349.99145508,90.00000000); //sphere_ship_door
    Objects[19] = CreateObject(1566,1.07894695,4.19714785,6.01000357,0.00000000,355.99548340,90.00000000); //sphere_ship_door
    Objects[20] = CreateObject(1566,1.08323443,4.29442358,3.13500214,0.00000000,0.00000000,90.00000000); //sphere_ship_door
    Objects[21] = CreateObject(1566,1.08300781,4.29394531,1.23500276,0.00000000,0.00000000,90.00000000); //sphere_ship_door
    Objects[22] = CreateObject(1566,-0.47949219,5.91210938,1.23500204,0.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[23] = CreateObject(1566,-1.15332031,5.91210938,1.23500228,0.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[24] = CreateObject(1566,-1.08789062,4.33984375,1.23500204,0.00000000,0.00000000,90.00000000); //sphere_ship_door
    Objects[25] = CreateObject(1566,-0.80078125,-0.02343750,-0.21499997,90.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[26] = CreateObject(1566,-0.77539062,3.00195312,-0.24000004,90.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[27] = CreateObject(1566,-1.10459805,4.42298031,-0.24000004,90.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[28] = CreateObject(1566,-0.50725490,4.36188173,-0.24000004,90.00000000,0.00000000,0.00000000); //sphere_ship_door
    Objects[29] = CreateObject(1135,-0.04652079,5.36313200,-0.21995485,0.00000000,0.00000000,180.00000000); //object(exh_lr_t2) (1)
    Objects[30] = CreateObject(8957,1.75851679,2.19723916,0.23538399,0.00000000,300.00000000,0.00000000); //object(vgsespdr01) (1)
    Objects[31] = CreateObject(8957,-1.94169760,2.22348070,0.23538399,0.00000000,299.99816895,180.00000000); //object(vgsespdr01) (2)
    AttachObjectToVehicle(Objects[0], Base, -0.79980469, -1.50000000, 1.25000000, 0.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[1], Base, -0.95996094, 5.15039062, 5.20000076, 0.00000000, 90.00000000, 90.00000000);
    AttachObjectToVehicle(Objects[2], Base, 0.97167969, -1.56152344, 5.20000076, 0.00000000, 90.00000000, 270.00000000);
    AttachObjectToVehicle(Objects[3], Base, -0.79980469, -1.50000000, 4.27500105, 0.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[4], Base, -0.79980469, -1.50000000, 7.30000305, 0.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[5], Base, -0.79980469, -1.50000000, 9.12500572, 0.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[6], Base, -0.80078125, -0.02343750, 10.58500004, 90.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[7], Base, -0.77539062, 3.00195312, 10.58500004, 90.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[8], Base, -0.77832031, 3.62597656, 10.58500004, 90.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[9], Base, -0.47967327, 5.38987494, 9.13500309, 12.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[10], Base, -1.15384412, 5.38987494, 9.13500309, 11.99707031, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[11], Base, -0.47949219, 5.80761719, 6.16000223, 3.99353027, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[12], Base, -1.15332031, 5.79785156, 6.16000223, 3.98803711, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[13], Base, -0.47949219, 5.91210938, 3.13500214, 0.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[14], Base, -1.15332031, 5.91210938, 3.13500214, 0.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[15], Base, -1.08841681, 4.34054375, 3.13500214, 0.00000000, 0.00000000, 90.00000000);
    AttachObjectToVehicle(Objects[16], Base, -1.09227800, 4.23994064, 6.01000357, 0.00000000, 356.00000000, 90.00000000);
    AttachObjectToVehicle(Objects[17], Base, -1.08947527, 3.83848214, 8.78500748, 0.00000000, 349.99545288, 90.00000000);
    AttachObjectToVehicle(Objects[18], Base, 1.08176196, 3.86742210, 8.78500748, 0.00000000, 349.99145508, 90.00000000);
    AttachObjectToVehicle(Objects[19], Base, 1.07894695, 4.19714785, 6.01000357, 0.00000000, 355.99548340, 90.00000000);
    AttachObjectToVehicle(Objects[20], Base, 1.08323443, 4.29442358, 3.13500214, 0.00000000, 0.00000000, 90.00000000);
    AttachObjectToVehicle(Objects[21], Base, 1.08300781, 4.29394531, 1.23500276, 0.00000000, 0.00000000, 90.00000000);
    AttachObjectToVehicle(Objects[22], Base, -0.47949219, 5.91210938, 1.23500204, 0.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[23], Base, -1.15332031, 5.91210938, 1.23500228, 0.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[24], Base, -1.08789062, 4.33984375, 1.23500204, 0.00000000, 0.00000000, 90.00000000);
    AttachObjectToVehicle(Objects[25], Base, -0.80078125, -0.02343750, -0.21499997, 90.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[26], Base, -0.77539062, 3.00195312, -0.24000004, 90.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[27], Base, -1.10459805, 4.42298031, -0.24000004, 90.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[28], Base, -0.50725490, 4.36188173, -0.24000004, 90.00000000, 0.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[29], Base, -0.04652079, 5.36313200, -0.21995485, 0.00000000, 0.00000000, 180.00000000);
    AttachObjectToVehicle(Objects[30], Base, 1.75851679, 2.19723916, 0.23538399, 0.00000000, 300.00000000, 0.00000000);
    AttachObjectToVehicle(Objects[31], Base, -1.94169760, 2.22348070, 0.23538399, 0.00000000, 299.99816895, 180.00000000);
    for(new i; i < 5; i++)
    {
        SetObjectMaterial(Objects[1], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[2], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[3], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[4], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[5], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[6], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[7], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[8], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[9], i, 3269, "boneyard", "ws_controltowerwin1");
        SetObjectMaterial(Objects[10], i, 3269, "boneyard", "ws_controltowerwin1");
        SetObjectMaterial(Objects[11], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[12], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[13], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[14], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[15], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[16], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[17], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[18], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[19], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[20], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[21], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[22], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[23], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[24], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[25], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[26], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[27], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[28], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[30], i, 3269, "boneyard", "bonyrd_skin1");
        SetObjectMaterial(Objects[31], i, 3269, "boneyard", "bonyrd_skin1");
    }
    return Base;
}
Reply
#2

Nice man <>
Reply
#3

wow it's impressive!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)