Advertisement
Guest User

LCS2

a guest
Oct 9th, 2012
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.48 KB | None | 0 0
  1. /* ### * ##### * ##*## # # # # # ##### #### #
  2. # # # # # # # # # # # ## # # # #
  3. # # # # ## # # #***# # #***# # # # # ## #*** #
  4. #### # ##### # # # # ##### # # # # ##### #### #####
  5.  
  6. ### # ###*
  7. # # # # # *
  8. #** #***# #***#
  9. # # # # # #
  10. #** # # # #
  11. */
  12.  
  13. #define FILTERSCRIPT
  14. #include <a_samp>
  15.  
  16. new lcsevent = 0;
  17. new lcsc1;
  18. new lcsc2;
  19. new lcsc3;
  20. new lcsc4;
  21. new lcsc5;
  22. new lcsc6;
  23. new lcsc7;
  24. new lcsc8;
  25. new lcsc9;
  26. new lcsc10;
  27.  
  28. #if defined FILTERSCRIPT
  29.  
  30. public OnFilterScriptInit()
  31. {
  32. CreateObject(8172, -440.37, 3173.10, 500.00, 0.00, 0.00, 0.00);
  33. CreateObject(8172, -480.04, 3173.09, 500.00, 0.00, 0.00, 0.00);
  34. CreateObject(3524, -499.04, 3252.73, 503.00, 0.00, 0.00, 0.00);
  35. CreateObject(3524, -421.09, 3252.58, 503.00, 0.00, 0.00, -25.00);
  36. CreateObject(3524, -421.19, 3094.76, 503.00, 0.00, 0.00, 229.00);
  37. CreateObject(3524, -499.53, 3093.28, 503.00, 0.00, 0.00, 142.00);
  38. CreateObject(8483, -460.16, 3186.73, 494.00, 0.00, -90.00, -90.00);
  39. CreateObject(3268, -460.90, 3102.36, 499.97, 0.00, 0.00, -90.00);
  40. CreateObject(11245, -447.50, 3094.11, 502.00, 0.00, -60.00, 127.00);
  41. CreateObject(11245, -474.23, 3093.96, 502.00, 0.00, -60.00, 40.00);
  42. CreateObject(18647, -463.61, 3105.07, 500.00, 0.00, 0.00, 0.00);
  43. CreateObject(18647, -462.65, 3104.10, 500.00, 0.00, 0.00, 90.00);
  44. CreateObject(18647, -461.26, 3105.10, 500.00, 0.00, 0.00, 0.00);
  45. CreateObject(18647, -460.28, 3106.09, 499.98, 0.00, 0.00, 90.00);
  46. CreateObject(18647, -460.28, 3104.12, 499.98, 0.00, 0.00, 90.00);
  47. CreateObject(18647, -457.53, 3106.08, 499.98, 0.00, 0.00, 90.00);
  48. CreateObject(18647, -457.76, 3105.31, 499.98, 0.00, 0.00, 45.00);
  49. CreateObject(18647, -458.02, 3104.31, 499.98, 0.00, 0.00, 105.00);
  50. CreateObject(18761, -461.02, 3112.47, 499.98, 0.00, 0.00, 0.00);
  51. CreateObject(13667, -461.01, 3114.19, 520.00, 0.00, 0.00, 90.00);
  52. CreateObject(18785, -430.36, 3102.39, 500.00, 0.00, 0.00, 0.00);
  53. CreateObject(18785, -435.95, 3102.39, 500.00, 0.00, 0.00, 0.00);
  54. CreateObject(18785, -485.87, 3102.39, 500.00, 0.00, 0.00, 0.00);
  55. CreateObject(18785, -489.81, 3102.39, 500.00, 0.00, 0.00, 0.00);
  56. CreateObject(18066, -460.11, 3106.51, 499.96, -90.00, 0.00, 0.00);
  57. CreateObject(8172, -440.37, 3173.10, 500.00, 0.00, 0.00, 0.00);
  58. CreateObject(8172, -480.04, 3173.09, 500.00, 0.00, 0.00, 0.00);
  59. CreateObject(3524, -499.04, 3252.73, 503.00, 0.00, 0.00, 0.00);
  60. CreateObject(3524, -421.09, 3252.58, 503.00, 0.00, 0.00, -25.00);
  61. CreateObject(3524, -421.19, 3094.76, 503.00, 0.00, 0.00, 229.00);
  62. CreateObject(3524, -496.38, 3093.62, 503.00, 0.00, 0.00, 142.00);
  63. CreateObject(8483, -460.16, 3186.73, 494.00, 0.00, -90.00, -90.00);
  64. CreateObject(3268, -460.90, 3102.36, 499.97, 0.00, 0.00, -90.00);
  65. CreateObject(11245, -447.50, 3094.11, 502.00, 0.00, -60.00, 127.00);
  66. CreateObject(11245, -474.23, 3093.96, 502.00, 0.00, -60.00, 40.00);
  67. CreateObject(18647, -463.61, 3105.07, 500.00, 0.00, 0.00, 0.00);
  68. CreateObject(18647, -462.65, 3104.10, 500.00, 0.00, 0.00, 90.00);
  69. CreateObject(18647, -461.26, 3105.10, 500.00, 0.00, 0.00, 0.00);
  70. CreateObject(18647, -460.28, 3106.09, 499.98, 0.00, 0.00, 90.00);
  71. CreateObject(18647, -460.28, 3104.12, 499.98, 0.00, 0.00, 90.00);
  72. CreateObject(18647, -457.53, 3106.08, 499.98, 0.00, 0.00, 90.00);
  73. CreateObject(18647, -457.76, 3105.31, 499.98, 0.00, 0.00, 45.00);
  74. CreateObject(18647, -458.02, 3104.31, 499.98, 0.00, 0.00, 105.00);
  75. CreateObject(18761, -461.02, 3112.47, 499.98, 0.00, 0.00, 0.00);
  76. CreateObject(13667, -461.01, 3114.19, 520.00, 0.00, 0.00, 90.00);
  77. }
  78. print("\n--------------------------------------");
  79. print(" DiGiTaL_LCS");
  80. print("--------------------------------------\n");
  81. }
  82.  
  83. public OnFilterScriptExit()
  84. {
  85. return 1;
  86. }
  87.  
  88. public OnPlayerCommandText(playerid, cmdtext[])
  89. {
  90. if(strcmp(cmd, "/lcsannc", true) == 0)
  91. {
  92. if(PlayerInfo[playerid][pAdmin] >= 1)
  93. {
  94. SendClientMessageToAll(TEAM_VAGOS_COLOR, "Eventul LCS a fost pornit! Scrie /joinlcs pentru a concura si tu!";
  95. }
  96. else
  97. {
  98. SendClientMessage(playerid, COLOR_NICERED, "Nu esti autorizat sa folosesti aceasta comanda!";
  99. }
  100. return 1;
  101. }
  102. return 1;
  103. }
  104.  
  105. if(strcmp(cmd, "/lcsjoin", true) == 0)
  106. {
  107. if(IsPlayerConnected(playerid))
  108. {
  109. if lcsevent == 1)
  110. {
  111. if (GetPlayerState(playerid) == 2)
  112. {
  113. SendClientMessage(playerid, COLOR_NICERED, "Iesi din masina si incearca iar!
  114. return 1;
  115. }
  116. if(PlayerInfo[playerid][pJailed] == 1)
  117. {
  118. SendClientMessage(playerid,COLOR_NICERED,"Esti la parnaie, nu poti concura!
  119. return 1;
  120. }
  121. if(WantedLevel[playerid] >= 1)
  122. {
  123. SendClientMessage(playerid,COLOR_NICERED,"Esti cautat de politie, n-ai timp de LCS.
  124. return 1;
  125. }
  126. if(PlayerZTied[playerid] > 0)
  127. {
  128. SendClientMessage(playerid, COLOR_NICERED, "Esti legat, nu poti concura la Last Car Standing!
  129. return 1;
  130. }
  131. else
  132. {
  133. SetPlayerPos(playerid,-460.3275,3103.0244,500.9844,0.0285);
  134. }
  135. else
  136. {
  137. SendClientMessage(playerid, COLOR_GRAD1, "Eventul LCS nu e activat!");
  138. }
  139. }
  140. return 1;
  141. }
  142. if(strcmp(cmd, "/lcs", true) == 0)
  143. {
  144. if(IsPlayerConnected(playerid))
  145. {
  146. if (PlayerInfo[playerid][pAdmin] >= 2 && (devent == 0))
  147. {
  148. lcsevent = 1;
  149. BroadCast(COLOR_NICERED, " Eventul LCS a fost activat de un Admin! Scrie /joinlcs pentru a concura!");
  150. }
  151. else if (PlayerInfo[playerid][pAdmin] >= 1 && (lcsevent == 1))
  152. {
  153. lcsevent = 0;
  154. BroadCast(COLOR_THEMAFIA, " Eventul LCS a fost oprit de un Admin!");
  155. }
  156. else
  157. {
  158. SendClientMessage(playerid, COLOR_NICERED, "Nu ai voie sa folosesti aceasta comanda, nu esti admin!");
  159. }
  160. }
  161. }
  162. }
  163. }
  164. return 1;
  165. }
  166. return 0;
  167. }
  168.  
  169. //----------------------------CARS-------------------------------
  170. lcsc1 = AddStaticVehicle(415,-448.2969,3096.9011,500.7604,358.3995,0,3); //
  171. lcsc2 = AddStaticVehicle(415,-449.4069,3110.4045,500.7560,90.7424,0,3); //
  172. lcsc3 = AddStaticVehicle(415,-449.7160,3106.0381,500.7593,89.4468,0,3); //
  173. lcsc4 = AddStaticVehicle(541,-465.3029,3096.4758,500.6092,359.4644,0,3); //
  174. lcsc5 = AddStaticVehicle(415,-451.7795,3096.2251,500.7593,357.0129,0,3); //
  175. lcsc6 = AddStaticVehicle(415,-457.5237,3095.9136,500.7604,358.4154,0,3); //
  176. lcsc7 = AddStaticVehicle(541,-472.2949,3110.2378,500.6090,271.0478,0,3); //
  177. lcsc8 = AddStaticVehicle(541,-472.9049,3106.1006,500.6091,269.1479,0,3); //
  178. lcsc9 = AddStaticVehicle(541,-473.6192,3095.7981,500.6091,359.0208,0,3); //
  179. lcsc10 = AddStaticVehicle(541,-469.5145,3095.6216,500.6093,358.2925,0,3); //
  180. //----------------------------CARS-------------------------------
  181.  
  182. #else
  183.  
  184. main()
  185. {
  186. print("\n----------------------------------");
  187. print(" DiGiTaL_LCS");
  188. print("----------------------------------\n");
  189. }
  190.  
  191. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement