Advertisement
Guest User

LSTW

a guest
Dec 4th, 2009
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. /*
  2. [FS] By nick15
  3. */
  4.  
  5.  
  6. #include <a_samp>
  7.  
  8. #define COLOR_YELLOW 0xFFFF00AA
  9. #define COLOR_BLUE 0x2641FEAA
  10. #define COLOR_PURPLE 0x800080AA
  11. #define FILTERSCRIPT
  12. forward GateClose();
  13. new gate;
  14. public OnFilterScriptInit()
  15. {
  16. gate = CreateObject(976,2216.932373,-1143.772338,24.796875,1.000000,-1.000000,345.000000); /// middle balla hq gate
  17. CreateObject(976,2209.210693,-1141.437622,24.812583,0.000000,0.000000,345.000000); /// right balla hq gate
  18. CreateObject(976,2224.618408,-1145.802001,24.796875,1.000000,0.000000,343.000000); /// left balla hq gate
  19. CreateObject(975,2236.124755,-1149.183227,25.796875,0.000000,0.000000,342.000000); /// balla hq blockoff
  20. print("\n--------------------------------------");
  21. print("--------------BALLA HQ GATES-------------");
  22. print("---------------BY HARRI----------------");
  23. print("--------------------------------------\n");
  24. return 1;
  25. }
  26.  
  27. public OnFilterScriptExit()
  28. {
  29. return 1;
  30. }
  31.  
  32. public OnPlayerCommandText(playerid, cmdtext[])
  33. {
  34. if (strcmp(cmdtext, "/ballahq", true)==0)
  35. {
  36. MoveObject(gate,2224.618408,-1145.802001,24.796875,1.000000,0.000000,343.000000, 6.5);
  37. SetTimer("GateClose", 15000, 0);
  38. SendClientMessage(playerid, COLOR_PURPLE,"BALLA GATE OPENING - CLOSING IN 15 SECONDS");
  39. return 1;
  40. }
  41.  
  42. return 0;
  43. }
  44.  
  45. public GateClose()
  46. {
  47. MoveObject (gate,2216.932373,-1143.772338,24.796875,1.000000,-1.000000,345.000000, 3.5);
  48. return 1;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement