217 error
#1

Hi,

I've got this script:
pawn Код:
/*
*********************************
* FILTERSCRIPT MADE BY RUBEN B *
*********************************
*/



#include <a_samp>

#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_RED 0xFF0000AA
#define VEHICLE_RESPAWN 60


new pfgate;


#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n*********************************");
    print("* FILTERSCRIPT MADE BY RUBEN B *");
    print("*********************************\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n*********************************");
    print("* FILTERSCRIPT MADE BY RUBEN B *");
    print("*********************************\n");
}

#endif

public OnGameModeInit()
{
    // OBJECTS
    CreateObject(3749, -2607.7124023438, 696.10217285156, 32.670913696289, 0.000000, 0.000000, 0.000000); //object (clubgate01_lax) (1)
    CreateObject(987, -2611.6684570313, 632.18572998047, 13.475664138794, 0.000000, 0.000000, 0.000000); //object (elecfence_bar) (1)
    CreateObject(987, -2616.6801757813, 631.86688232422, 14.842746734619, 0.000000, 0.000000, 0.000000); //object (elecfence_bar) (2)
    CreateObject(987, -2586.0754394531, 698.04663085938, 27.953125, 0.000000, 0.000000, 179.36633300781); //object (elecfence_bar) (4)
    CreateObject(987, -2574.23046875, 698.00012207031, 27.953125, 0.000000, 0.000000, 179.36279296875); //object (elecfence_bar) (5)
    CreateObject(987, -2562.28125, 697.88262939453, 27.953125, 0.000000, 0.000000, 179.36279296875); //object (elecfence_bar) (6)
    CreateObject(987, -2550.3215332031, 697.81323242188, 27.953125, 0.000000, 0.000000, 179.36279296875); //object (elecfence_bar) (7)
    CreateObject(987, -2538.4184570313, 697.72937011719, 27.953125, 0.000000, 0.000000, 179.36279296875); //object (elecfence_bar) (8)
    CreateObject(987, -2536.7749023438, 685.94500732422, 27.953125, 0.000000, 0.000000, 97.978271484375); //object (elecfence_bar) (9)
    CreateObject(987, -2536.7443847656, 673.99188232422, 27.953125, 0.000000, 0.000000, 90.0361328125); //object (elecfence_bar) (10)
    CreateObject(987, -2536.8566894531, 662.08807373047, 27.953125, 0.000000, 0.000000, 90.032958984375); //object (elecfence_bar) (11)
    CreateObject(987, -2536.9392089844, 650.17315673828, 27.958675384521, 0.000000, 0.000000, 90.032958984375); //object (elecfence_bar) (12)
    CreateObject(987, -2537.0305175781, 638.18579101563, 27.958475112915, 0.000000, 0.000000, 90.032958984375); //object (elecfence_bar) (13)
    CreateObject(987, -2536.904296875, 626.18115234375, 27.958755493164, 0.000000, 0.000000, 90.032958984375); //object (elecfence_bar) (14)
    CreateObject(987, -2537.1018066406, 616.97119140625, 27.960105895996, 0.000000, 0.000000, 90.032958984375); //object (elecfence_bar) (15)
    CreateObject(987, -2548.8955078125, 617.47424316406, 27.953125, 0.000000, 0.000000, 358.72338867188); //object (elecfence_bar) (16)
    CreateObject(987, -2560.9526367188, 617.53540039063, 27.953125, 0.000000, 0.000000, 358.72009277344); //object (elecfence_bar) (17)
    CreateObject(987, -2584.7021484375, 619.0341796875, 27.953125, 0.000000, 0.000000, 356.72607421875); //object (elecfence_bar) (19)
    CreateObject(987, -2596.6081542969, 619.88037109375, 27.953125, 0.000000, 0.000000, 356.73156738281); //object (elecfence_bar) (20)
    CreateObject(987, -2601.4790039063, 620.10235595703, 27.953125, 0.000000, 0.000000, 356.73156738281); //object (elecfence_bar) (21)
    CreateObject(987, -2601.2294921875, 631.9697265625, 27.953125, 0.000000, 0.000000, 269.39025878906); //object (elecfence_bar) (22)
    CreateObject(987, -2601.1511230469, 643.935546875, 27.953125, 0.000000, 0.000000, 269.39025878906); //object (elecfence_bar) (23)
    CreateObject(987, -2601.3959960938, 655.82214355469, 27.953125, 0.000000, 0.000000, 271.37524414063); //object (elecfence_bar) (24)
    CreateObject(987, -2601.7158203125, 667.75030517578, 27.953125, 0.000000, 0.000000, 271.37329101563); //object (elecfence_bar) (25)
    CreateObject(987, -2601.615234375, 673.93090820313, 27.953125, 0.000000, 0.000000, 271.37329101563); //object (elecfence_bar) (26)
    CreateObject(5507, -2567.529296875, 583.8720703125, 39.736122131348, 0.000000, 344.11926269531, 270.67565917969); //object (laeroad42) (1)
    CreateObject(5507, -2568.1848144531, 634.49963378906, 25.15244102478, 358.01501464844, 344.11926269531, 270.67565917969); //object (laeroad42) (2)
    CreateObject(13593, -2595.4150390625, 527.412109375, 47.524108886719, 0.000000, 0.000000, 89.324493408203); //object (kickramp03) (1)
    CreateObject(13593, -2595.4638671875, 530.05651855469, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (2)
    CreateObject(13593, -2595.4965820313, 532.8310546875, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (3)
    CreateObject(13593, -2595.5341796875, 535.6298828125, 47.524108886719, 0.000000, 0.000000, 89.31884765625); //object (kickramp03) (4)
    CreateObject(13593, -2595.5732421875, 538.45208740234, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (5)
    CreateObject(13593, -2595.6147460938, 541.19677734375, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (6)
    CreateObject(13593, -2595.642578125, 543.90252685547, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (7)
    CreateObject(13593, -2616.9892578125, 546.51678466797, 47.719421386719, 0.000000, 0.000000, 268.69067382813); //object (kickramp03) (8)
    CreateObject(13593, -2616.9606933594, 543.79730224609, 47.719421386719, 0.000000, 0.000000, 268.69067382813); //object (kickramp03) (9)
    CreateObject(13593, -2616.9379882813, 541.0205078125, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (10)
    CreateObject(13593, -2616.9201660156, 538.28918457031, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (11)
    CreateObject(13593, -2616.9135742188, 535.51837158203, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (12)
    CreateObject(13593, -2616.9147949219, 532.74670410156, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (13)
    CreateObject(13593, -2616.9157714844, 529.97454833984, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (14)
    CreateObject(13593, -2616.9077148438, 527.27416992188, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (15)
    CreateObject(13593, -2616.9118652344, 524.49792480469, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (16)
    CreateObject(13593, -2595.3764648438, 524.59985351563, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (18)
    CreateObject(13562, -2601.4877929688, 620.05889892578, 33.953125, 0.000000, 0.000000, 0.000000); //object (bigsprunkpole) (1)
    CreateObject(13562, -2537.2153320313, 616.87805175781, 34.165782928467, 0.000000, 0.000000, 0.000000); //object (bigsprunkpole) (2)
    CreateObject(987, -2578.5432128906, 629.84185791016, 26.8125, 0.000000, 0.000000, 271.37170410156); //object (elecfence_bar) (19)
    CreateObject(987, -2558.005859375, 617.029296875, 26.378784179688, 0.000000, 0.000000, 90.732971191406); //object (elecfence_bar) (19)
    CreateObject(3074, -2611.287109375, 595.3935546875, 19.963619232178, 0.000000, 0.000000, 0.000000); //object (d9_runway) (1)
    CreateObject(5507, -2658.0073242188, 552.89440917969, 52.342845916748, 0.000000, 332.20935058594, 90.041625976563); //object (laeroad42) (1)
    CreateObject(13593, -2649.5095214844, 585.61328125, 65.836608886719, 0.000000, 0.000000, 178.64379882813); //object (kickramp03) (4)
    CreateObject(13593, -2652.2319335938, 585.60870361328, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
    CreateObject(13593, -2654.9714355469, 585.60009765625, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
    CreateObject(13593, -2657.7280273438, 585.58758544922, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
    CreateObject(13593, -2660.486328125, 585.58325195313, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
    CreateObject(13593, -2663.2265625, 585.5791015625, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
    CreateObject(13593, -2665.9675292969, 585.57318115234, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
    CreateObject(5507, -2658.1005859375, 526.97082519531, 43.822799682617, 0.000000, 344.11450195313, 90.038452148438); //object (laeroad42) (1)
    CreateObject(10832, -2592.404296875, 702.02593994141, 28.760711669922, 0.000000, 0.000000, 268.69067382813); //object (gatehouse2_sfse) (1)
    CreateObject(9227, -2732.2182617188, 642.81420898438, 66.753623962402, 0.000000, 0.000000, 179.36633300781); //object (moresfnshit20) (1)
    CreateObject(9227, -2732.0751953125, 654.96649169922, 66.753623962402, 0.000000, 0.000000, 179.36279296875); //object (moresfnshit20) (2)
    CreateObject(9227, -2731.9594726563, 667.12731933594, 66.753623962402, 0.000000, 0.000000, 179.36279296875); //object (moresfnshit20) (3)
    CreateObject(9227, -2731.8129882813, 679.19750976563, 66.753623962402, 0.000000, 0.000000, 179.36279296875); //object (moresfnshit20) (4)
    CreateObject(3605, -2636.1535644531, 672.53344726563, 71.199363708496, 0.000000, 0.000000, 270.67565917969); //object (bevman3_law2) (1)
    CreateObject(3605, -2636.1313476563, 632.57635498047, 71.199363708496, 0.000000, 0.000000, 270.67565917969); //object (bevman3_law2) (2)
    CreateObject(16613, -2674.2749023438, 496.8293762207, 46.9765625, 0.000000, 0.000000, 0.000000); //object (des_bigtelescope) (1)
    CreateObject(3092, -2600.3979492188, 698.20166015625, 29.109493255615, 0.000000, 0.000000, 0.000000); //object (dead_tied_cop) (1)
    CreateObject(3092, -2615.1359863281, 698.20172119141, 28.966924667358, 0.000000, 0.000000, 0.000000); //object (dead_tied_cop) (2)
    CreateObject(9833, -2599.3107910156, 678.68267822266, 30.015043258667, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (1)
    CreateObject(9833, -2599.408203125, 691.66314697266, 30.00874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (2)
    CreateObject(9833, -2612.0080566406, 678.10626220703, 30.015043258667, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (3)
    CreateObject(9833, -2599.5632324219, 689.79052734375, 23.25874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (5)
    CreateObject(9833, -2599.8703613281, 687.85754394531, 23.50874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (6)
    CreateObject(9833, -2600.0778808594, 686.03601074219, 23.25874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (7)
    CreateObject(9833, -2600.3146972656, 684.23321533203, 23.25874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (8)
    CreateObject(9833, -2600.4990234375, 682.41296386719, 23.50874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (9)
    CreateObject(9833, -2600.8403320313, 680.52404785156, 23.50874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (10)
    CreateObject(5507, -2567.662109375, 523.85675048828, 39.37361907959, 0.000000, 344.11926269531, 90.041625976563); //object (laeroad42) (1)
    CreateObject(987, -2647.7270507813, 537.75402832031, 46.9765625, 0.000000, 0.000000, 92.009521484375); //object (elecfence_bar) (22)
    CreateObject(987, -2648.1433105469, 549.69293212891, 46.9765625, 0.000000, 0.000000, 92.005004882813); //object (elecfence_bar) (22)
    CreateObject(987, -2648.23046875, 549.72283935547, 51.9765625, 0.000000, 0.000000, 92.005004882813); //object (elecfence_bar) (22)
    CreateObject(987, -2647.6877441406, 537.86291503906, 51.907981872559, 0.000000, 0.000000, 92.005004882813); //object (elecfence_bar) (22)
    CreateObject(987, -2667.0148925781, 549.56134033203, 46.9765625, 0.000000, 0.000000, 265.41625976563); //object (elecfence_bar) (22)
    CreateObject(987, -2666.9211425781, 549.61206054688, 51.9765625, 0.000000, 0.000000, 265.41320800781); //object (elecfence_bar) (22)
    CreateObject(987, -2666.9416503906, 553.00463867188, 47.653732299805, 0.000000, 0.000000, 265.41320800781); //object (elecfence_bar) (22)
    CreateObject(987, -2666.9067382813, 552.88366699219, 52.420082092285, 0.000000, 0.000000, 265.41320800781); //object (elecfence_bar) (22)

    // VEHICLES
    CreateVehicle(483,-2544.8479003906,654.12194824219,27.908096313477,89.324340820313,6,106,VEHICLE_RESPAWN); //0
    CreateVehicle(483,-2544.8298339844,648.87646484375,27.908096313477,89.324340820313,6,106,VEHICLE_RESPAWN); //1
    CreateVehicle(483,-2544.8081054688,643.78216552734,27.908096313477,89.324340820313,6,106,VEHICLE_RESPAWN); //2
    CreateVehicle(483,-2544.7873535156,638.65179443359,27.908096313477,89.324340820313,6,106,VEHICLE_RESPAWN); //3
    CreateVehicle(483,-2544.8132324219,633.4482421875,27.908096313477,89.324340820313,6,106,VEHICLE_RESPAWN); //4
    CreateVehicle(483,-2544.8566894531,659.51055908203,27.90180015564,89.324340820313,6,106,VEHICLE_RESPAWN); //5
    CreateVehicle(541,-2591.7570800781,634.84002685547,27.512500762939,270.63061523438,6,106,VEHICLE_RESPAWN); //6
    CreateVehicle(541,-2591.9311523438,640.05548095703,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //7
    CreateVehicle(541,-2591.8957519531,645.27410888672,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //8
    CreateVehicle(541,-2591.8688964844,650.36413574219,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //9
    CreateVehicle(541,-2591.9377441406,655.74688720703,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //10
    CreateVehicle(541,-2591.8010253906,660.99102783203,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //11
    CreateVehicle(541,-2591.8811035156,666.02038574219,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //12
    CreateVehicle(545,-2583.9291992188,627.00726318359,27.762500762939,0.000000,6,106,VEHICLE_RESPAWN); //13
    CreateVehicle(545,-2552.5935058594,626.56707763672,27.762500762939,0.000000,6,106,VEHICLE_RESPAWN); //14
    CreateVehicle(487,-2545.4482421875,547.06677246094,48.046249389648,89.324340820313,6,106,VEHICLE_RESPAWN); //15
    CreateVehicle(487,-2545.6169433594,534.43908691406,48.046249389648,89.324340820313,6,106,VEHICLE_RESPAWN); //16
    CreateVehicle(487,-2545.8464355469,521.86975097656,48.046249389648,89.324340820313,6,106,VEHICLE_RESPAWN); //17
    CreateVehicle(487,-2553.2541503906,499.99395751953,48.046249389648,43.669677734375,6,106,VEHICLE_RESPAWN); //18
    CreateVehicle(487,-2580.9406738281,497.86727905273,48.046249389648,320.29577636719,6,106,VEHICLE_RESPAWN); //19
    CreateVehicle(487,-2565.6833496094,495.28268432617,48.046249389648,359.9951171875,6,106,VEHICLE_RESPAWN); //20

    // GATE CREATER
    pfgate = CreateObject(980, -2607.64453125, 697.7021484375, 29.585891723633, 0.000000, 0.000000, 0.000000); //gate closed
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{

    if (strcmp(cmdtext, "/closepfgate", true) == 0) {
        MoveObject(pfgate, -2607.64453125, 697.7021484375, 29.585891723633, 8);
        SendClientMessage(playerid, COLOR_RED,"P&F Gate closed");
        return 1;
    }

    if (strcmp(cmdtext, "/openpfgate", true) == 0) {
        MoveObject(pfgate, -2607.64453125, 697.7021484375, 24.085891723633, 8);
        SendClientMessage(playerid, COLOR_YELLOW,"P&F Gate opened");
        return 1;
    }
   
return 0;
}
and at the 2nd last line, return 0;, it says: warning 217: loose indentation.
What is wrong?
Btw: Someone made the same filterscript but with only different places of the gates. I only edited the CreateVehicle and CreateObject.
Reply
#2

Код:
/*
*********************************
* FILTERSCRIPT MADE BY RUBEN B *
*********************************
*/

#include <a_samp>

#define COLOR_YELLOW 	0xFFFF00AA
#define COLOR_RED 		0xFF0000AA
#define VEHICLE_RESPAWN 60

new pfgate;

public OnFilterScriptInit()
{
	print("\n*********************************");
	print("* FILTERSCRIPT MADE BY RUBEN B *");
	print("*********************************\n");
	
	//OBJECTS
	CreateObject(3749, -2607.7124023438, 696.10217285156, 32.670913696289, 0.000000, 0.000000, 0.000000); //object (clubgate01_lax) (1)
	CreateObject(987, -2611.6684570313, 632.18572998047, 13.475664138794, 0.000000, 0.000000, 0.000000); //object (elecfence_bar) (1)
	CreateObject(987, -2616.6801757813, 631.86688232422, 14.842746734619, 0.000000, 0.000000, 0.000000); //object (elecfence_bar) (2)
	CreateObject(987, -2586.0754394531, 698.04663085938, 27.953125, 0.000000, 0.000000, 179.36633300781); //object (elecfence_bar) (4)
	CreateObject(987, -2574.23046875, 698.00012207031, 27.953125, 0.000000, 0.000000, 179.36279296875); //object (elecfence_bar) (5)
	CreateObject(987, -2562.28125, 697.88262939453, 27.953125, 0.000000, 0.000000, 179.36279296875); //object (elecfence_bar) (6)
	CreateObject(987, -2550.3215332031, 697.81323242188, 27.953125, 0.000000, 0.000000, 179.36279296875); //object (elecfence_bar) (7)
	CreateObject(987, -2538.4184570313, 697.72937011719, 27.953125, 0.000000, 0.000000, 179.36279296875); //object (elecfence_bar) (8)
	CreateObject(987, -2536.7749023438, 685.94500732422, 27.953125, 0.000000, 0.000000, 97.978271484375); //object (elecfence_bar) (9)
	CreateObject(987, -2536.7443847656, 673.99188232422, 27.953125, 0.000000, 0.000000, 90.0361328125); //object (elecfence_bar) (10)
	CreateObject(987, -2536.8566894531, 662.08807373047, 27.953125, 0.000000, 0.000000, 90.032958984375); //object (elecfence_bar) (11)
	CreateObject(987, -2536.9392089844, 650.17315673828, 27.958675384521, 0.000000, 0.000000, 90.032958984375); //object (elecfence_bar) (12)
	CreateObject(987, -2537.0305175781, 638.18579101563, 27.958475112915, 0.000000, 0.000000, 90.032958984375); //object (elecfence_bar) (13)
	CreateObject(987, -2536.904296875, 626.18115234375, 27.958755493164, 0.000000, 0.000000, 90.032958984375); //object (elecfence_bar) (14)
	CreateObject(987, -2537.1018066406, 616.97119140625, 27.960105895996, 0.000000, 0.000000, 90.032958984375); //object (elecfence_bar) (15)
	CreateObject(987, -2548.8955078125, 617.47424316406, 27.953125, 0.000000, 0.000000, 358.72338867188); //object (elecfence_bar) (16)
	CreateObject(987, -2560.9526367188, 617.53540039063, 27.953125, 0.000000, 0.000000, 358.72009277344); //object (elecfence_bar) (17)
	CreateObject(987, -2584.7021484375, 619.0341796875, 27.953125, 0.000000, 0.000000, 356.72607421875); //object (elecfence_bar) (19)
	CreateObject(987, -2596.6081542969, 619.88037109375, 27.953125, 0.000000, 0.000000, 356.73156738281); //object (elecfence_bar) (20)
	CreateObject(987, -2601.4790039063, 620.10235595703, 27.953125, 0.000000, 0.000000, 356.73156738281); //object (elecfence_bar) (21)
	CreateObject(987, -2601.2294921875, 631.9697265625, 27.953125, 0.000000, 0.000000, 269.39025878906); //object (elecfence_bar) (22)
	CreateObject(987, -2601.1511230469, 643.935546875, 27.953125, 0.000000, 0.000000, 269.39025878906); //object (elecfence_bar) (23)
	CreateObject(987, -2601.3959960938, 655.82214355469, 27.953125, 0.000000, 0.000000, 271.37524414063); //object (elecfence_bar) (24)
	CreateObject(987, -2601.7158203125, 667.75030517578, 27.953125, 0.000000, 0.000000, 271.37329101563); //object (elecfence_bar) (25)
	CreateObject(987, -2601.615234375, 673.93090820313, 27.953125, 0.000000, 0.000000, 271.37329101563); //object (elecfence_bar) (26)
	CreateObject(5507, -2567.529296875, 583.8720703125, 39.736122131348, 0.000000, 344.11926269531, 270.67565917969); //object (laeroad42) (1)
	CreateObject(5507, -2568.1848144531, 634.49963378906, 25.15244102478, 358.01501464844, 344.11926269531, 270.67565917969); //object (laeroad42) (2)
	CreateObject(13593, -2595.4150390625, 527.412109375, 47.524108886719, 0.000000, 0.000000, 89.324493408203); //object (kickramp03) (1)
	CreateObject(13593, -2595.4638671875, 530.05651855469, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (2)
	CreateObject(13593, -2595.4965820313, 532.8310546875, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (3)
	CreateObject(13593, -2595.5341796875, 535.6298828125, 47.524108886719, 0.000000, 0.000000, 89.31884765625); //object (kickramp03) (4)
	CreateObject(13593, -2595.5732421875, 538.45208740234, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (5)
	CreateObject(13593, -2595.6147460938, 541.19677734375, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (6)
	CreateObject(13593, -2595.642578125, 543.90252685547, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (7)
	CreateObject(13593, -2616.9892578125, 546.51678466797, 47.719421386719, 0.000000, 0.000000, 268.69067382813); //object (kickramp03) (8)
	CreateObject(13593, -2616.9606933594, 543.79730224609, 47.719421386719, 0.000000, 0.000000, 268.69067382813); //object (kickramp03) (9)
	CreateObject(13593, -2616.9379882813, 541.0205078125, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (10)
	CreateObject(13593, -2616.9201660156, 538.28918457031, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (11)
	CreateObject(13593, -2616.9135742188, 535.51837158203, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (12)
	CreateObject(13593, -2616.9147949219, 532.74670410156, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (13)
	CreateObject(13593, -2616.9157714844, 529.97454833984, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (14)
	CreateObject(13593, -2616.9077148438, 527.27416992188, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (15)
	CreateObject(13593, -2616.9118652344, 524.49792480469, 47.719421386719, 0.000000, 0.000000, 268.68713378906); //object (kickramp03) (16)
	CreateObject(13593, -2595.3764648438, 524.59985351563, 47.524108886719, 0.000000, 0.000000, 89.324340820313); //object (kickramp03) (18)
	CreateObject(13562, -2601.4877929688, 620.05889892578, 33.953125, 0.000000, 0.000000, 0.000000); //object (bigsprunkpole) (1)
	CreateObject(13562, -2537.2153320313, 616.87805175781, 34.165782928467, 0.000000, 0.000000, 0.000000); //object (bigsprunkpole) (2)
	CreateObject(987, -2578.5432128906, 629.84185791016, 26.8125, 0.000000, 0.000000, 271.37170410156); //object (elecfence_bar) (19)
	CreateObject(987, -2558.005859375, 617.029296875, 26.378784179688, 0.000000, 0.000000, 90.732971191406); //object (elecfence_bar) (19)
	CreateObject(3074, -2611.287109375, 595.3935546875, 19.963619232178, 0.000000, 0.000000, 0.000000); //object (d9_runway) (1)
	CreateObject(5507, -2658.0073242188, 552.89440917969, 52.342845916748, 0.000000, 332.20935058594, 90.041625976563); //object (laeroad42) (1)
	CreateObject(13593, -2649.5095214844, 585.61328125, 65.836608886719, 0.000000, 0.000000, 178.64379882813); //object (kickramp03) (4)
	CreateObject(13593, -2652.2319335938, 585.60870361328, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
	CreateObject(13593, -2654.9714355469, 585.60009765625, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
	CreateObject(13593, -2657.7280273438, 585.58758544922, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
	CreateObject(13593, -2660.486328125, 585.58325195313, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
	CreateObject(13593, -2663.2265625, 585.5791015625, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
	CreateObject(13593, -2665.9675292969, 585.57318115234, 65.836608886719, 0.000000, 0.000000, 178.64318847656); //object (kickramp03) (4)
	CreateObject(5507, -2658.1005859375, 526.97082519531, 43.822799682617, 0.000000, 344.11450195313, 90.038452148438); //object (laeroad42) (1)
	CreateObject(10832, -2592.404296875, 702.02593994141, 28.760711669922, 0.000000, 0.000000, 268.69067382813); //object (gatehouse2_sfse) (1)
	CreateObject(9227, -2732.2182617188, 642.81420898438, 66.753623962402, 0.000000, 0.000000, 179.36633300781); //object (moresfnshit20) (1)
	CreateObject(9227, -2732.0751953125, 654.96649169922, 66.753623962402, 0.000000, 0.000000, 179.36279296875); //object (moresfnshit20) (2)
	CreateObject(9227, -2731.9594726563, 667.12731933594, 66.753623962402, 0.000000, 0.000000, 179.36279296875); //object (moresfnshit20) (3)
	CreateObject(9227, -2731.8129882813, 679.19750976563, 66.753623962402, 0.000000, 0.000000, 179.36279296875); //object (moresfnshit20) (4)
	CreateObject(3605, -2636.1535644531, 672.53344726563, 71.199363708496, 0.000000, 0.000000, 270.67565917969); //object (bevman3_law2) (1)
	CreateObject(3605, -2636.1313476563, 632.57635498047, 71.199363708496, 0.000000, 0.000000, 270.67565917969); //object (bevman3_law2) (2)
	CreateObject(16613, -2674.2749023438, 496.8293762207, 46.9765625, 0.000000, 0.000000, 0.000000); //object (des_bigtelescope) (1)
	CreateObject(3092, -2600.3979492188, 698.20166015625, 29.109493255615, 0.000000, 0.000000, 0.000000); //object (dead_tied_cop) (1)
	CreateObject(3092, -2615.1359863281, 698.20172119141, 28.966924667358, 0.000000, 0.000000, 0.000000); //object (dead_tied_cop) (2)
	CreateObject(9833, -2599.3107910156, 678.68267822266, 30.015043258667, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (1)
	CreateObject(9833, -2599.408203125, 691.66314697266, 30.00874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (2)
	CreateObject(9833, -2612.0080566406, 678.10626220703, 30.015043258667, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (3)
	CreateObject(9833, -2599.5632324219, 689.79052734375, 23.25874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (5)
	CreateObject(9833, -2599.8703613281, 687.85754394531, 23.50874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (6)
	CreateObject(9833, -2600.0778808594, 686.03601074219, 23.25874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (7)
	CreateObject(9833, -2600.3146972656, 684.23321533203, 23.25874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (8)
	CreateObject(9833, -2600.4990234375, 682.41296386719, 23.50874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (9)
	CreateObject(9833, -2600.8403320313, 680.52404785156, 23.50874710083, 0.000000, 0.000000, 0.000000); //object (fountain_sfw) (10)
	CreateObject(5507, -2567.662109375, 523.85675048828, 39.37361907959, 0.000000, 344.11926269531, 90.041625976563); //object (laeroad42) (1)
	CreateObject(987, -2647.7270507813, 537.75402832031, 46.9765625, 0.000000, 0.000000, 92.009521484375); //object (elecfence_bar) (22)
	CreateObject(987, -2648.1433105469, 549.69293212891, 46.9765625, 0.000000, 0.000000, 92.005004882813); //object (elecfence_bar) (22)
	CreateObject(987, -2648.23046875, 549.72283935547, 51.9765625, 0.000000, 0.000000, 92.005004882813); //object (elecfence_bar) (22)
	CreateObject(987, -2647.6877441406, 537.86291503906, 51.907981872559, 0.000000, 0.000000, 92.005004882813); //object (elecfence_bar) (22)
	CreateObject(987, -2667.0148925781, 549.56134033203, 46.9765625, 0.000000, 0.000000, 265.41625976563); //object (elecfence_bar) (22)
	CreateObject(987, -2666.9211425781, 549.61206054688, 51.9765625, 0.000000, 0.000000, 265.41320800781); //object (elecfence_bar) (22)
	CreateObject(987, -2666.9416503906, 553.00463867188, 47.653732299805, 0.000000, 0.000000, 265.41320800781); //object (elecfence_bar) (22)
	CreateObject(987, -2666.9067382813, 552.88366699219, 52.420082092285, 0.000000, 0.000000, 265.41320800781); //object (elecfence_bar) (22)

	// VEHICLES
	CreateVehicle(483,-2544.8479003906,654.12194824219,27.908096313477,89.324340820313,6,106,VEHICLE_RESPAWN); //0
	CreateVehicle(483,-2544.8298339844,648.87646484375,27.908096313477,89.324340820313,6,106,VEHICLE_RESPAWN); //1
	CreateVehicle(483,-2544.8081054688,643.78216552734,27.908096313477,89.324340820313,6,106,VEHICLE_RESPAWN); //2
	CreateVehicle(483,-2544.7873535156,638.65179443359,27.908096313477,89.324340820313,6,106,VEHICLE_RESPAWN); //3
	CreateVehicle(483,-2544.8132324219,633.4482421875,27.908096313477,89.324340820313,6,106,VEHICLE_RESPAWN); //4
	CreateVehicle(483,-2544.8566894531,659.51055908203,27.90180015564,89.324340820313,6,106,VEHICLE_RESPAWN); //5
	CreateVehicle(541,-2591.7570800781,634.84002685547,27.512500762939,270.63061523438,6,106,VEHICLE_RESPAWN); //6
	CreateVehicle(541,-2591.9311523438,640.05548095703,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //7
	CreateVehicle(541,-2591.8957519531,645.27410888672,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //8
	CreateVehicle(541,-2591.8688964844,650.36413574219,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //9
	CreateVehicle(541,-2591.9377441406,655.74688720703,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //10
	CreateVehicle(541,-2591.8010253906,660.99102783203,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //11
	CreateVehicle(541,-2591.8811035156,666.02038574219,27.512500762939,270.62622070313,6,106,VEHICLE_RESPAWN); //12
	CreateVehicle(545,-2583.9291992188,627.00726318359,27.762500762939,0.000000,6,106,VEHICLE_RESPAWN); //13
	CreateVehicle(545,-2552.5935058594,626.56707763672,27.762500762939,0.000000,6,106,VEHICLE_RESPAWN); //14
	CreateVehicle(487,-2545.4482421875,547.06677246094,48.046249389648,89.324340820313,6,106,VEHICLE_RESPAWN); //15
	CreateVehicle(487,-2545.6169433594,534.43908691406,48.046249389648,89.324340820313,6,106,VEHICLE_RESPAWN); //16
	CreateVehicle(487,-2545.8464355469,521.86975097656,48.046249389648,89.324340820313,6,106,VEHICLE_RESPAWN); //17
	CreateVehicle(487,-2553.2541503906,499.99395751953,48.046249389648,43.669677734375,6,106,VEHICLE_RESPAWN); //18
	CreateVehicle(487,-2580.9406738281,497.86727905273,48.046249389648,320.29577636719,6,106,VEHICLE_RESPAWN); //19
	CreateVehicle(487,-2565.6833496094,495.28268432617,48.046249389648,359.9951171875,6,106,VEHICLE_RESPAWN); //20

	// GATE CREATER
	pfgate = CreateObject(980, -2607.64453125, 697.7021484375, 29.585891723633, 0.000000, 0.000000, 0.000000); //gate closed
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmdtext, "/closepfgate", true) == 0)
	{
		MoveObject(pfgate, -2607.6445, 697.7021, 29.5858, 8);
		SendClientMessage(playerid, COLOR_RED,"P&F Gate closed");
		return 1;
	}
	if(strcmp(cmdtext, "/openpfgate", true) == 0)
	{
		MoveObject(pfgate, -2607.6445, 697.7021, 24.0858, 8);
		SendClientMessage(playerid, COLOR_YELLOW,"P&F Gate opened");
		return 1;
	}
	return 0;
}
Reply
#3

@ Flatman
Oh lol.
Just had to add a tab before return 0;.
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)