Advertisement
Guest User

HQ cia criada por Vinicius_TroLL

a guest
Nov 29th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. //HQ cia, creditos a Vinicius_TroLL ou Style_MagnaTa
  2. #include <a_samp>
  3.  
  4. new PortaoCia;
  5. new PortaoCia2;
  6. forward PortoesCia();
  7. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. Create3DTextLabel("Cia\n{FFFFFF}Digite /Cia para passar",0x0077F6AA,1386.3472,-2893.2156,12.1800,25.0,0);
  12. Create3DTextLabel("Cia\n{FFFFFF}Digite /Cia para passar",0x0077F6AA,1411.2500,-2746.4653,5.8008,25.0,0);
  13. //HQ da Cia
  14. CreateObject(18753, 1361.91, -2947.01, 10.68, 0.00, 0.00, 351.54);
  15. CreateObject(19313, 1429.43, -2915.83, 14.26, 0.00, 0.00, 261.56);
  16. CreateObject(19313, 1398.09, -2889.79, 14.26, 0.00, 0.00, 351.09);
  17. CreateObject(19313, 1411.92, -2891.90, 14.26, 0.00, 0.00, 351.09);
  18. CreateObject(19313, 1425.69, -2894.03, 14.26, 0.00, 0.00, 351.09);
  19. CreateObject(19313, 1431.51, -2901.97, 14.26, 0.00, 0.00, 261.56);
  20. CreateObject(19313, 1427.33, -2929.68, 14.26, 0.00, 0.00, 261.56);
  21. CreateObject(19313, 1425.26, -2943.51, 14.26, 0.00, 0.00, 261.56);
  22. CreateObject(19313, 1423.18, -2957.33, 14.26, 0.00, 0.00, 261.56);
  23. CreateObject(19313, 1421.12, -2971.15, 14.26, 0.00, 0.00, 261.56);
  24. CreateObject(19313, 1419.06, -2984.94, 14.26, 0.00, 0.00, 261.56);
  25. CreateObject(19313, 1417.02, -2998.73, 14.26, 0.00, 0.00, 261.56);
  26. CreateObject(19313, 1415.26, -3010.97, 14.26, 0.00, 0.00, 261.56);
  27. CreateObject(19313, 1407.48, -3016.60, 14.26, 0.00, 0.00, 172.22);
  28. CreateObject(19313, 1393.67, -3014.69, 14.26, 0.00, 0.00, 171.61);
  29. CreateObject(19313, 1379.91, -3012.66, 14.26, 0.00, 0.00, 171.61);
  30. CreateObject(19313, 1366.12, -3010.58, 14.26, 0.00, 0.00, 171.61);
  31. CreateObject(19313, 1352.33, -3008.50, 14.26, 0.00, 0.00, 171.61);
  32. CreateObject(19313, 1338.55, -3006.43, 14.26, 0.00, 0.00, 171.61);
  33. CreateObject(19313, 1324.74, -3004.38, 14.26, 0.00, 0.00, 171.61);
  34. CreateObject(19313, 1310.92, -3002.34, 14.26, 0.00, 0.00, 171.61);
  35. CreateObject(19313, 1298.24, -3000.47, 14.26, 0.00, 0.00, 171.61);
  36. CreateObject(19313, 1292.44, -2992.49, 14.26, 0.00, 0.00, 81.34);
  37. CreateObject(19313, 1294.57, -2978.66, 14.26, 0.00, 0.00, 81.34);
  38. CreateObject(19313, 1296.74, -2964.89, 14.26, 0.00, 0.00, 81.34);
  39. CreateObject(19313, 1298.80, -2951.05, 14.26, 0.00, 0.00, 81.34);
  40. CreateObject(19313, 1300.75, -2937.22, 14.26, 0.00, 0.00, 81.34);
  41. CreateObject(19313, 1302.96, -2923.50, 14.26, 0.00, 0.00, 81.34);
  42. CreateObject(19313, 1305.11, -2909.64, 14.26, 0.00, 0.00, 81.34);
  43. CreateObject(19313, 1307.23, -2895.82, 14.26, 0.00, 0.00, 81.34);
  44. CreateObject(19313, 1309.13, -2883.50, 14.26, 0.00, 0.00, 81.34);
  45. CreateObject(19313, 1317.08, -2877.68, 14.26, 0.00, 0.00, 351.09);
  46. CreateObject(19313, 1330.91, -2879.85, 14.26, 0.00, 0.00, 351.09);
  47. CreateObject(19313, 1344.68, -2882.06, 14.26, 0.00, 0.00, 351.09);
  48. CreateObject(19313, 1358.41, -2884.25, 14.26, 0.00, 0.00, 351.09);
  49. CreateObject(19313, 1372.60, -2885.87, 14.26, 0.00, 0.00, 355.90);
  50. CreateObject(3976, 1338.56, -2920.44, 31.83, 0.00, 0.00, 171.29);
  51. CreateObject(972, 1315.65, -2951.44, 6.10, 0.00, 0.00, 262.15);
  52. AddStaticVehicleEx(490, 1418.5911, -2957.8911, 12.2420, 82.3103, 0, 0, -1);
  53. AddStaticVehicleEx(490, 1417.2078, -2970.3020, 12.2420, 82.3103, 0, 0, -1);
  54. AddStaticVehicleEx(490, 1417.6992, -2966.3337, 12.2420, 82.3103, 0, 0, -1);
  55. AddStaticVehicleEx(490, 1418.1379, -2962.1831, 12.2420, 82.3103, 0, 0, -1);
  56. AddStaticVehicleEx(493, 1436.2137, -2781.0889, 0.5423, 175.6843, 0, 0, -1);
  57. AddStaticVehicleEx(493, 1442.4314, -2780.9275, 0.5423, 175.6843, 0, 0, -1);
  58. AddStaticVehicleEx(493, 1429.6204, -2781.1743, 0.5423, 175.6843, 0, 0, -1);
  59. AddStaticVehicleEx(497, 1343.8363, -2972.6440, 12.4293, 262.9472, 0, 0, -1);
  60. AddStaticVehicleEx(497, 1314.6572, -2992.0056, 12.4293, 262.9472, 0, 0, -1);
  61. AddStaticVehicleEx(497, 1318.3893, -2968.6404, 12.4293, 262.9472, 0, 0, -1);
  62. AddStaticVehicleEx(497, 1341.4510, -2994.9263, 12.4293, 262.9472, 0, 0, -1);
  63. AddStaticVehicleEx(523, 1421.3804, -2951.0925, 11.6657, 80.1196, 0, 0, -1);
  64. AddStaticVehicleEx(523, 1420.9427, -2953.3110, 11.6657, 80.1196, 0, 0, -1);
  65. AddStaticVehicleEx(523, 1421.8406, -2948.6892, 11.6657, 80.1196, 0, 0, -1);
  66. AddStaticVehicleEx(523, 1422.3519, -2946.2656, 11.6657, 80.1196, 0, 0, -1);
  67. AddStaticVehicleEx(522, 1423.0347, -2943.5493, 11.9457, 84.1760, 0, 0, -1);
  68. AddStaticVehicleEx(522, 1423.2634, -2941.5972, 11.9457, 84.1760, 0, 0, -1);
  69. AddStaticVehicleEx(522, 1423.4476, -2939.7375, 11.9457, 84.1760, 0, 0, -1);
  70. AddStaticVehicleEx(522, 1423.6608, -2937.6670, 11.9457, 84.1760, 0, 0, -1);
  71. AddStaticVehicleEx(596, 1423.5326, -2934.2939, 12.1282, 83.7150, 0, 0, -1);
  72. AddStaticVehicleEx(596, 1424.0304, -2930.4546, 12.1282, 83.7150, 0, 0, -1);
  73. AddStaticVehicleEx(596, 1424.5425, -2926.7422, 12.1282, 83.7150, 0, 0, -1);
  74. AddStaticVehicleEx(596, 1425.0143, -2923.3281, 12.1282, 83.7150, 0, 0, -1);
  75. //FimHQCia
  76. //Portoes
  77. PortaoCia = CreateObject(980, 1385.30, -2887.73, 13.92, 0.00, 0.00, 350.76);
  78. PortaoCia2 = CreateObject(18789, 1399.29, -2813.86, -11.04, 0.72, -5.16, 260.40);
  79. //FimPortoes
  80. print("\n--------------------------------------");
  81. print(" HQ Cia criado por Style_MagnaTa");
  82. print("--------------------------------------\n");
  83. return 1;
  84. }
  85. public OnPlayerCommandText(playerid, cmdtext[])
  86. {
  87. new cmd[128];
  88. if(strcmp(cmd, "/cia", true) == 0)
  89. {
  90. if (PlayerToPoint(20.0, playerid, 1386.3472,-2893.2156,12.1800) || PlayerToPoint(20.0, playerid, 1411.2500,-2746.4653,5.8008))
  91. {
  92. MoveObject( PortaoCia, 1385.30, -2887.73, 20.82,5);
  93. MoveObject( PortaoCia2, 1399.58, -2814.27, 4.14,5);
  94. SetTimer("PortoesCia", 10000, false);
  95. }
  96. }
  97. return 0;
  98. }
  99. public PortoesCia()
  100. {
  101. MoveObject(PortaoCia,1385.30, -2887.73, 13.92, 2);
  102. MoveObject(PortaoCia2,1399.29, -2813.86, -11.04, 2);
  103. return true;
  104. }
  105. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  106. {
  107. if(IsPlayerConnected(playerid))
  108. {
  109. new Float:oldposx, Float:oldposy, Float:oldposz;
  110. new Float:tempposx, Float:tempposy, Float:tempposz;
  111. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  112. tempposx = (oldposx -x);
  113. tempposy = (oldposy -y);
  114. tempposz = (oldposz -z);
  115. if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  116. {
  117. return true;
  118. }
  119. }
  120. return 0;
  121. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement