Advertisement
Guest User

EMS SCRIPT

a guest
May 10th, 2010
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.53 KB | None | 0 0
  1. //=====================================================================================================================
  2. //=====================================================================================================================
  3. //=====================================================================================================================
  4. // DONT REMOVE THE CREDITS <<<<<<<<<<-------------------------------------
  5. // DONT CLAIM THIS AS YOURE'S <<<<<<<<<<----------------------------------
  6. // DON'T CHANGE ANYTHING ON THIS FS! <<<<<<<<<<---------------------------
  7. // CREDITS:
  8. // ELMO <<<<<<<<<<-------------------------------------
  9. // SA-MP FORUM <<<<<<<<<<----------------------------------
  10. //=====================================================================================================================
  11. //=====================================================================================================================
  12. //=====================================================================================================================
  13. #define FILTERSCRIPT
  14.  
  15. #include <a_samp>
  16.  
  17. #if defined FILTERSCRIPT
  18.  
  19. public OnFilterScriptInit()
  20. {
  21. AddStaticVehicle(451,1536.2253,-1678.0057,13.0897,359.4492,16,16); // Ca
  22. AddStaticVehicle(451,1535.8132,-1666.9285,13.0888,180.3453,16,16); // Car
  23. print("\n--------------------------------------");
  24. print(" EMS BY ELMO! ");
  25. print("--------------------------------------\n");
  26. return 1;
  27. }
  28.  
  29. public OnFilterScriptExit()
  30. {
  31. return 1;
  32. }
  33.  
  34. #else
  35.  
  36. main()
  37. {
  38. print("\n----------------------------------");
  39. print(" Blank Gamemode by your name here");
  40. print("----------------------------------\n");
  41. }
  42.  
  43. #endif
  44.  
  45. public OnGameModeInit()
  46. {
  47. // Don't use these lines if it's a filterscript
  48. SetGameModeText("EMS BY ELMO");
  49. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  50. return 1;
  51. }
  52.  
  53. public OnGameModeExit()
  54. {
  55. return 1;
  56. }
  57.  
  58. public OnPlayerRequestClass(playerid, classid)
  59. {
  60. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  61. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  62. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  63. return 1;
  64. }
  65.  
  66. public OnPlayerCommandText(playerid, cmdtext[])
  67. {
  68. if (strcmp("/EMS", cmdtext, true, 10) == 0)
  69. {
  70. ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Spawn Menu", "Weapons \n M4 \n Ak47 \n Sniper Rifle \n Tec9 \n Uzi \n MP5 \n Knife \n Chainsaw \n Tear Gas \n Grenades \nTeleports \n Los Santos PD \n San Fierro Wang Cars \nSportCars \n Infernus \n Hotring B \n Hotring A \n Hotring \n ZR 350 \n Super GT \n Bullet \n Turismo \n Comet \n Cheetah \n Windsor \n Banshee \n Next", "Select", "Quit");
  71. return 1;
  72. }
  73. return 0;
  74. }
  75. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  76. {
  77. if(dialogid == 3)
  78. {
  79. if(response)
  80. {
  81. if(listitem == 1)
  82. {
  83.  
  84. GivePlayerWeapon(playerid, 31, 5000);
  85. }
  86. if(listitem == 2)
  87. {
  88. GivePlayerWeapon(playerid, 30, 5000);
  89. }
  90. if(listitem == 3)
  91. {
  92. GivePlayerWeapon(playerid, 34, 5000);
  93. }
  94. if(listitem == 4)
  95. {
  96. GivePlayerWeapon(playerid, 32, 5000);
  97. }
  98. if(listitem == 5)
  99. {
  100. GivePlayerWeapon(playerid, 28, 5000);
  101. }
  102. if(listitem == 6)
  103. {
  104. GivePlayerWeapon(playerid, 29, 5000);
  105. }
  106. if(listitem == 7)
  107. {
  108. GivePlayerWeapon(playerid, 4, 5000);
  109. }
  110. if(listitem == 8)
  111. {
  112. GivePlayerWeapon(playerid, 9, 5000);
  113. }
  114. if(listitem == 9)
  115. {
  116. GivePlayerWeapon(playerid, 17, 5000);
  117. }
  118. if(listitem == 10)
  119. {
  120. GivePlayerWeapon(playerid, 16, 5000);
  121. }
  122. if(listitem == 12)
  123. {
  124. SetPlayerPos(playerid, 1543.6411,-1675.8182,13.5569);
  125. }
  126. if(listitem == 13)
  127. {
  128. SetPlayerPos(playerid, -1974.4752,264.9094,35.1719);
  129. }
  130. new Float:x, Float:y, Float:z;
  131. GetPlayerPos(playerid, x, y, z);
  132. if(listitem == 15)
  133. {
  134. CreateVehicle(411, x+5, y, z, 90, -1, -1, -1);
  135. }
  136. if(listitem == 16)
  137. {
  138. CreateVehicle(503, x+5, y, z, 90, -1, -1, -1);
  139. }
  140. if(listitem == 17)
  141. {
  142. CreateVehicle(502, x+5, y, z, 90, -1, -1, -1);
  143. }
  144. if(listitem == 18)
  145. {
  146. CreateVehicle(494, x+5, y, z, 90, -1, -1, -1);
  147. }
  148. if(listitem == 19)
  149. {
  150. CreateVehicle(477, x+5, y, z, 90, -1, -1, -1);
  151. }
  152. if(listitem == 20)
  153. {
  154. CreateVehicle(506, x+5, y, z, 90, -1, -1, -1);
  155. }
  156. if(listitem == 21)
  157. {
  158. CreateVehicle(541, x+5, y, z, 90, -1, -1, -1);
  159. }
  160. if(listitem == 22)
  161. {
  162. CreateVehicle(451, x+5, y, z, 90, -1, -1, -1);
  163. }
  164. if(listitem == 23)
  165. {
  166. CreateVehicle(480, x+5, y, z, 90, -1, -1, -1);
  167. }
  168. if(listitem == 24)
  169. {
  170. CreateVehicle(415, x+5, y, z, 90, -1, -1, -1);
  171. }
  172. if(listitem == 25)
  173. {
  174. CreateVehicle(555, x+5, y, z, 90, -1, -1, -1);
  175. }
  176. if(listitem == 26)
  177. {
  178. CreateVehicle(429, x+5, y, z, 90, -1, -1, -1);
  179. }
  180. if(listitem == 27)
  181. {
  182. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Cars 1", "Lowriders \n Blade \n Broadway \n Remmington \n Savanna \n Slamvan \n Tornado \n Voodoo \n Next", "Select", "Quit");
  183. }
  184. }
  185. }
  186. if(dialogid == 2)
  187. {
  188. new Float:x, Float:y, Float:z;
  189. GetPlayerPos(playerid, x, y, z);
  190. if(listitem == 1)
  191. {
  192. CreateVehicle(536, x+5, y, z, 90, -1, -1, -1);
  193. }
  194. if(listitem == 2)
  195. {
  196. CreateVehicle(575, x+5, y, z, 90, -1, -1, -1);
  197. }
  198. if(listitem == 3)
  199. {
  200. CreateVehicle(534, x+5, y, z, 90, -1, -1, -1);
  201. }
  202. if(listitem == 4)
  203. {
  204. CreateVehicle(567, x+5, y, z, 90, -1, -1, -1);
  205. }
  206. if(listitem == 5)
  207. {
  208. CreateVehicle(535, x+5, y, z, 90, -1, -1, -1);
  209. }
  210. if(listitem == 6)
  211. {
  212. CreateVehicle(576, x+5, y, z, 90, -1, -1, -1);
  213. }
  214. if(listitem == 7)
  215. {
  216. CreateVehicle(412, x+5, y, z, 90, -1, -1, -1);
  217. }
  218. if(listitem == 8)
  219. ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Cars 2", "Street Racers \n Elegy \n Flash \n Jester \n Stratum \n Sultan \n Uranus", "Select", "Quit");
  220. }
  221.  
  222. if(dialogid == 5)
  223. {
  224. new Float:x, Float:y, Float:z;
  225. GetPlayerPos(playerid, x, y, z);
  226. if(listitem == 1)
  227. {
  228. CreateVehicle(562, x+5, y, z, 90, -1, -1, -1);
  229. }
  230. if(listitem == 2)
  231. {
  232. CreateVehicle(565, x+5, y, z, 90, -1, -1, -1);
  233. }
  234. if(listitem == 3)
  235. {
  236. CreateVehicle(559, x+5, y, z, 90, -1, -1, -1);
  237. }
  238. if(listitem == 4)
  239. {
  240. CreateVehicle(561, x+5, y, z, 90, -1, -1, -1);
  241. }
  242. if(listitem == 5)
  243. {
  244. CreateVehicle(560, x+5, y, z, 90, -1, -1, -1);
  245. }
  246. if(listitem == 6)
  247. {
  248. CreateVehicle(558, x+5, y, z, 90, -1, -1, -1);
  249. }
  250. }
  251. if(dialogid == 4 && response)
  252. {
  253. if(listitem == 0)
  254. {
  255. ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "ChangeNick", "Type Your New Name Below:", "Change", "Cancel");
  256. SetPlayerName(playerid,inputtext);
  257. }
  258. if(listitem == 1)
  259. {
  260. ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "Announce", "Type Your Announce Below:", "Apply", "Cancel");
  261. GameTextForAll(inputtext,4000,3);
  262. }
  263. }
  264. }
  265. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  266. {
  267. return 1;
  268. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement