Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- new DoorL;
- new GateXt;
- new GateXtx;
- new PrincipalgateR;
- new PrincipalgateL;
- new ligth1;
- new ligth2;
- new MisselEntrance;
- new rocket;
- new radarGate;
- new GatesClosed = 0;
- new DoorR;
- forward OpelAll();
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" New Area 51 by sergio Loaded");
- print("--------------------------------------\n");
- DoorL = CreateObject(10184,266.67074585,1883.49304199,16.16238785,359.93017578,271.99877930,0.00125122);
- DoorR = CreateObject(10184,271.66687012,1883.66796875,16.16238785,359.92858887,271.99401855,180.00000000); //portao direito fexado
- GateXt = CreateObject(2951,297.81250000,1821.69628906,10.07812500,0.00000000,0.00000000,0.00000000); //portao xt aberto
- GateXtx = CreateObject(2951,277.24218750,1821.73925781,9.82812500,0.00000000,0.00000000,0.00000000); //portao xtx aberto
- PrincipalgateL = CreateObject(2929,219.65823364,1875.56335449,13.93899250,0.00000000,0.00000000,0.00000000); //portao principal esquerdo aberto
- PrincipalgateR = CreateObject(2927,208.04905701,1875.60437012,13.93899250,0.00000000,0.00000000,0.00000000); //portao principal direito aberto
- MisselEntrance = CreateObject(2951,268.22851562,1863.91992188,10.00781250,0.00000000,0.00000000,0.00000000); //portao entrada do missel aberto
- rocket = CreateObject(17050,268.78613281,1883.78320312,-31.09375000,0.00000000,0.00000000,0.00000000); //foguete
- radarGate = CreateObject(2951,233.68019104,1823.38232422,6.41406250,0.00000000,0.00000000,270.00000000); //portao do radar aberto
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" New Area 51 by sergio Unloaded");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/prepare", cmdtext, true, 10) == 0)
- {
- MoveObject(DoorL, 261.95645142,1882.90307617,16.16238785, 2.00);
- SetObjectRot(DoorL, 359.92858887,271.99401855,0.00000000);
- MoveObject(DoorR, 275.41372681,1883.79980469,16.16238785, 2.00);
- SetObjectRot(DoorR, 359.92309570,271.98852539,179.99450684);
- MoveObject(GateXt, 297.81304932,1821.69714355,6.82812500, 2.00);
- MoveObject(GateXtx, 277.24304199,1821.74011230,6.82812500, 2.00);
- MoveObject(PrincipalgateL, 215.87507629,1875.56689453,13.93899250, 2.00);
- MoveObject(PrincipalgateR, 211.79904175,1875.57324219,13.93899250, 2.00);
- MoveObject(MisselEntrance, 268.22900391,1863.92028809,7.75781250, 2.00);
- MoveObject(radarGate, 233.67968750,1823.38183594,8.41406250, 2.00);
- SendClientMessage(playerid,0xAAAAAAAA,"All doors will close in 2 seconds ...");
- SetObjectRot(radarGate, 0.00000000,0.00000000,270.00000000);
- ligth1 = CreateObject(3666,272.99337769,1888.38159180,17.15431023,0.00000000,0.00000000,0.00000000); //criar qnd abrir
- ligth2 = CreateObject(3666,264.22760010,1879.76318359,17.15431023,0.00000000,0.00000000,0.00000000); //object(airuntest_las) (3)
- GatesClosed = 1;
- return 1;
- }
- if (strcmp("/lauch", cmdtext, true, 10) == 0)
- {
- if(GatesClosed == 1)
- {
- MoveObject(rocket,268.78613281,1883.78320312,864.84967041,40.0);
- SetObjectRot(rocket,0.00000000,0.00000000,0.00000000);
- CreateExplosion(268.78613281,1883.78320312,-31.09375000, 12, 15.0);
- SendClientMessageToAll(0xAAAAAAAA, "space shuttle has just been released from area 51....");
- SendClientMessage(playerid,0xAAAAAAAA,"you launch the shuttle ... All gates will be opened in 10 seconds ...");
- GatesClosed = 0;
- SetTimer("OpelAll",10000,false);
- }
- return 1;
- }
- if (strcmp("/cancel", cmdtext, true, 10) == 0)
- {
- if(GatesClosed == 1)
- {
- MoveObject(DoorL, 266.67074585,1883.49304199,16.16238785, 2.00);//ok
- SetObjectRot(DoorL, 359.92858887,271.99401855,0.00000000);
- MoveObject(DoorR, 271.66687012,1883.66796875,16.16238785, 2.00);//ok
- SetObjectRot(DoorR, 359.92309570,271.98852539,179.99450684);
- MoveObject(GateXt, 297.81250000,1821.69628906,10.07812500, 2.00);//ok
- MoveObject(GateXtx, 277.24218750,1821.73925781,9.82812500, 2.00);//ok
- MoveObject(PrincipalgateL, 219.65823364,1875.56335449,13.93899250, 2.00);
- MoveObject(PrincipalgateR, 208.04905701,1875.60437012,13.93899250, 2.00);
- MoveObject(MisselEntrance, 268.22851562,1863.91992188,10.00781250, 2.00);
- MoveObject(radarGate, 233.68019104,1823.38232422,8.4140625, 2.00);
- SetObjectRot(radarGate, 0.00000000,0.00000000,270.00000000);
- SendClientMessage(playerid,0xAAAAAAAA,"You canceled the mission..");
- DestroyObject(ligth2);
- DestroyObject(ligth1);
- DestroyObject(rocket);
- rocket = CreateObject(17050,268.78613281,1883.78320312,-31.09375000,0.00000000,0.00000000,0.00000000); //foguete
- }
- return 1;
- }
- if (strcmp("/gotoA51", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,94.5749,1919.9810,18.0819);
- return 1;
- }
- return 0;
- }
- public OpelAll()
- {
- MoveObject(DoorL, 266.67074585,1883.49304199,16.16238785, 2.00);//ok
- SetObjectRot(DoorL, 359.92858887,271.99401855,0.00000000);
- MoveObject(DoorR, 271.66687012,1883.66796875,16.16238785, 2.00);//ok
- SetObjectRot(DoorR, 359.92309570,271.98852539,179.99450684);
- MoveObject(GateXt, 297.81250000,1821.69628906,10.07812500, 2.00);//ok
- MoveObject(GateXtx, 277.24218750,1821.73925781,9.82812500, 2.00);//ok
- MoveObject(PrincipalgateL, 219.65823364,1875.56335449,13.93899250, 2.00);
- MoveObject(PrincipalgateR, 208.04905701,1875.60437012,13.93899250, 2.00);
- MoveObject(MisselEntrance, 268.22851562,1863.91992188,10.00781250, 2.00);
- MoveObject(radarGate, 233.68019104,1823.38232422,8.4140625, 2.00);
- SetObjectRot(radarGate, 0.00000000,0.00000000,270.00000000);
- DestroyObject(ligth2);
- DestroyObject(ligth1);
- DestroyObject(rocket);
- rocket = CreateObject(17050,268.78613281,1883.78320312,-31.09375000,0.00000000,0.00000000,0.00000000); //foguete
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement