Advertisement
Guest User

Sergio...

a guest
Aug 12th, 2010
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.08 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. #define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. new DoorL;
  10. new GateXt;
  11. new GateXtx;
  12. new PrincipalgateR;
  13. new PrincipalgateL;
  14. new ligth1;
  15. new ligth2;
  16. new MisselEntrance;
  17. new rocket;
  18. new radarGate;
  19. new GatesClosed = 0;
  20. new DoorR;
  21. forward OpelAll();
  22.  
  23. public OnFilterScriptInit()
  24. {
  25. print("\n--------------------------------------");
  26. print(" New Area 51 by sergio Loaded");
  27. print("--------------------------------------\n");
  28. DoorL = CreateObject(10184,266.67074585,1883.49304199,16.16238785,359.93017578,271.99877930,0.00125122);
  29. DoorR = CreateObject(10184,271.66687012,1883.66796875,16.16238785,359.92858887,271.99401855,180.00000000); //portao direito fexado
  30. GateXt = CreateObject(2951,297.81250000,1821.69628906,10.07812500,0.00000000,0.00000000,0.00000000); //portao xt aberto
  31. GateXtx = CreateObject(2951,277.24218750,1821.73925781,9.82812500,0.00000000,0.00000000,0.00000000); //portao xtx aberto
  32. PrincipalgateL = CreateObject(2929,219.65823364,1875.56335449,13.93899250,0.00000000,0.00000000,0.00000000); //portao principal esquerdo aberto
  33. PrincipalgateR = CreateObject(2927,208.04905701,1875.60437012,13.93899250,0.00000000,0.00000000,0.00000000); //portao principal direito aberto
  34. MisselEntrance = CreateObject(2951,268.22851562,1863.91992188,10.00781250,0.00000000,0.00000000,0.00000000); //portao entrada do missel aberto
  35. rocket = CreateObject(17050,268.78613281,1883.78320312,-31.09375000,0.00000000,0.00000000,0.00000000); //foguete
  36. radarGate = CreateObject(2951,233.68019104,1823.38232422,6.41406250,0.00000000,0.00000000,270.00000000); //portao do radar aberto
  37. return 1;
  38. }
  39.  
  40. public OnFilterScriptExit()
  41. {
  42. return 1;
  43. }
  44.  
  45. #else
  46.  
  47. main()
  48. {
  49. print("\n----------------------------------");
  50. print(" New Area 51 by sergio Unloaded");
  51. print("----------------------------------\n");
  52. }
  53.  
  54. #endif
  55.  
  56. public OnPlayerCommandText(playerid, cmdtext[])
  57. {
  58. if (strcmp("/prepare", cmdtext, true, 10) == 0)
  59. {
  60. MoveObject(DoorL, 261.95645142,1882.90307617,16.16238785, 2.00);
  61. SetObjectRot(DoorL, 359.92858887,271.99401855,0.00000000);
  62. MoveObject(DoorR, 275.41372681,1883.79980469,16.16238785, 2.00);
  63. SetObjectRot(DoorR, 359.92309570,271.98852539,179.99450684);
  64. MoveObject(GateXt, 297.81304932,1821.69714355,6.82812500, 2.00);
  65. MoveObject(GateXtx, 277.24304199,1821.74011230,6.82812500, 2.00);
  66. MoveObject(PrincipalgateL, 215.87507629,1875.56689453,13.93899250, 2.00);
  67. MoveObject(PrincipalgateR, 211.79904175,1875.57324219,13.93899250, 2.00);
  68. MoveObject(MisselEntrance, 268.22900391,1863.92028809,7.75781250, 2.00);
  69. MoveObject(radarGate, 233.67968750,1823.38183594,8.41406250, 2.00);
  70. SendClientMessage(playerid,0xAAAAAAAA,"All doors will close in 2 seconds ...");
  71. SetObjectRot(radarGate, 0.00000000,0.00000000,270.00000000);
  72. ligth1 = CreateObject(3666,272.99337769,1888.38159180,17.15431023,0.00000000,0.00000000,0.00000000); //criar qnd abrir
  73. ligth2 = CreateObject(3666,264.22760010,1879.76318359,17.15431023,0.00000000,0.00000000,0.00000000); //object(airuntest_las) (3)
  74. GatesClosed = 1;
  75. return 1;
  76. }
  77. if (strcmp("/lauch", cmdtext, true, 10) == 0)
  78. {
  79. if(GatesClosed == 1)
  80. {
  81. MoveObject(rocket,268.78613281,1883.78320312,864.84967041,40.0);
  82. SetObjectRot(rocket,0.00000000,0.00000000,0.00000000);
  83. CreateExplosion(268.78613281,1883.78320312,-31.09375000, 12, 15.0);
  84. SendClientMessageToAll(0xAAAAAAAA, "space shuttle has just been released from area 51....");
  85. SendClientMessage(playerid,0xAAAAAAAA,"you launch the shuttle ... All gates will be opened in 10 seconds ...");
  86. GatesClosed = 0;
  87. SetTimer("OpelAll",10000,false);
  88. }
  89. return 1;
  90. }
  91. if (strcmp("/cancel", cmdtext, true, 10) == 0)
  92. {
  93. if(GatesClosed == 1)
  94. {
  95. MoveObject(DoorL, 266.67074585,1883.49304199,16.16238785, 2.00);//ok
  96. SetObjectRot(DoorL, 359.92858887,271.99401855,0.00000000);
  97. MoveObject(DoorR, 271.66687012,1883.66796875,16.16238785, 2.00);//ok
  98. SetObjectRot(DoorR, 359.92309570,271.98852539,179.99450684);
  99. MoveObject(GateXt, 297.81250000,1821.69628906,10.07812500, 2.00);//ok
  100. MoveObject(GateXtx, 277.24218750,1821.73925781,9.82812500, 2.00);//ok
  101. MoveObject(PrincipalgateL, 219.65823364,1875.56335449,13.93899250, 2.00);
  102. MoveObject(PrincipalgateR, 208.04905701,1875.60437012,13.93899250, 2.00);
  103. MoveObject(MisselEntrance, 268.22851562,1863.91992188,10.00781250, 2.00);
  104. MoveObject(radarGate, 233.68019104,1823.38232422,8.4140625, 2.00);
  105. SetObjectRot(radarGate, 0.00000000,0.00000000,270.00000000);
  106. SendClientMessage(playerid,0xAAAAAAAA,"You canceled the mission..");
  107. DestroyObject(ligth2);
  108. DestroyObject(ligth1);
  109. DestroyObject(rocket);
  110. rocket = CreateObject(17050,268.78613281,1883.78320312,-31.09375000,0.00000000,0.00000000,0.00000000); //foguete
  111. }
  112. return 1;
  113. }
  114. if (strcmp("/gotoA51", cmdtext, true, 10) == 0)
  115. {
  116. SetPlayerPos(playerid,94.5749,1919.9810,18.0819);
  117. return 1;
  118. }
  119. return 0;
  120. }
  121. public OpelAll()
  122. {
  123. MoveObject(DoorL, 266.67074585,1883.49304199,16.16238785, 2.00);//ok
  124. SetObjectRot(DoorL, 359.92858887,271.99401855,0.00000000);
  125. MoveObject(DoorR, 271.66687012,1883.66796875,16.16238785, 2.00);//ok
  126. SetObjectRot(DoorR, 359.92309570,271.98852539,179.99450684);
  127. MoveObject(GateXt, 297.81250000,1821.69628906,10.07812500, 2.00);//ok
  128. MoveObject(GateXtx, 277.24218750,1821.73925781,9.82812500, 2.00);//ok
  129. MoveObject(PrincipalgateL, 219.65823364,1875.56335449,13.93899250, 2.00);
  130. MoveObject(PrincipalgateR, 208.04905701,1875.60437012,13.93899250, 2.00);
  131. MoveObject(MisselEntrance, 268.22851562,1863.91992188,10.00781250, 2.00);
  132. MoveObject(radarGate, 233.68019104,1823.38232422,8.4140625, 2.00);
  133. SetObjectRot(radarGate, 0.00000000,0.00000000,270.00000000);
  134. DestroyObject(ligth2);
  135. DestroyObject(ligth1);
  136. DestroyObject(rocket);
  137. rocket = CreateObject(17050,268.78613281,1883.78320312,-31.09375000,0.00000000,0.00000000,0.00000000); //foguete
  138. return 1;
  139. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement