Advertisement
Guest User

RedB

a guest
Oct 31st, 2009
709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.14 KB | None | 0 0
  1. #include <a_samp>
  2. #include <a_players>
  3.  
  4. #define COLOR_RED 0xFF0000FF
  5. #define COLOR_GREEN 0x00FF00FF
  6. #define COLOR_SYSGREY 0xC6BEBDFF
  7. #define COLOR_YELLOW 0xFFFF00FF
  8. #define COLOR_GREY 0x999999FF
  9. #define COLOR_WHITE 0xFFFFFFFF
  10. #define COLOR_BLUE 0x0000BBAA
  11. #define COLOR_LIGHTBLUE 0x33CCFFAA
  12. #define COLOR_ORANGE 0xFF9900AA
  13. #define COLOR_BLACK 0x000000AA
  14. #define COLOR_TRANS 0xFFFFFF00
  15.  
  16. // Please keep the credit! This Useful Stunt Scipt is made by m47. You can edit what you want, but please keep the credit. ok? ;D
  17. // Oh Yes and remember this is my 1st Filterscript! Maybe its not good enough. ENJOY!
  18. // uncomment the line below if you want to write a filterscript
  19. //#define FILTERSCRIPT
  20.  
  21. #if defined FILTERSCRIPT
  22.  
  23. public OnFilterScriptInit()
  24. {
  25. print("\n--------------------------------------");
  26. print(" Teleport Script by m47 loaded!");
  27. print("--------------------------------------\n");
  28. return 1;
  29. }
  30.  
  31. public OnFilterScriptExit()
  32. {
  33. print("\n--------------------------------------");
  34. print(" Teleport Script by m47 unloaded!");
  35. print("--------------------------------------\n");
  36. return 1;
  37. }
  38.  
  39. #else
  40.  
  41. main()
  42. {
  43. print("\n----------------------------------");
  44. print(" Blank Gamemode by your name here");
  45. print("----------------------------------\n");
  46. }
  47.  
  48. #endif
  49.  
  50. public OnPlayerConnect(playerid)
  51. {
  52. SendClientMessage(playerid, COLOR_RED,"Filterscript by m47 loaded!. See /mcmds");
  53. return 1;
  54. }
  55.  
  56. public OnPlayerDisconnect(playerid, reason)
  57. {
  58. return 1;
  59. }
  60.  
  61. public OnPlayerSpawn(playerid)
  62. {
  63. return 1;
  64. }
  65.  
  66. public OnPlayerDeath(playerid, killerid, reason)
  67. {
  68. return 1;
  69. }
  70.  
  71. public OnVehicleSpawn(vehicleid)
  72. {
  73. return 1;
  74. }
  75.  
  76. public OnVehicleDeath(vehicleid, killerid)
  77. {
  78. return 1;
  79. }
  80.  
  81. public OnPlayerText(playerid, text[])
  82. {
  83. return 1;
  84. }
  85.  
  86. public OnPlayerPrivmsg(playerid, recieverid, text[])
  87. {
  88. return 1;
  89. }
  90.  
  91. public OnPlayerCommandText(playerid, cmdtext[])
  92. {
  93. if (strcmp("/tele", cmdtext, true, 10) == 0)
  94. {
  95. SendClientMessage(playerid, COLOR_RED, "--------------------------Teleports--------------------------");
  96. SendClientMessage(playerid, COLOR_RED, "/lv,/sf,/ls,/aa,/lvair,/sfair,/lsair,/chilliad");
  97. SendClientMessage(playerid, COLOR_RED, "--------------------------Teleports--------------------------");
  98. return 1;
  99. }
  100. if (strcmp("/mcmds", cmdtext, true, 10) == 0)
  101. {
  102. SendClientMessage(playerid, COLOR_GREEN, "--------------------------m47 Stunt Commands--------------------------");
  103. SendClientMessage(playerid, COLOR_GREEN, "/tele,/colors,/gunshop,/vehspawner");
  104. SendClientMessage(playerid, COLOR_GREEN, "Credits: m47");
  105. SendClientMessage(playerid, COLOR_GREEN, "--------------------------m47 Stunt Commands--------------------------");
  106. return 1;
  107. }
  108. if (strcmp("/COLORS", cmdtext, true, 10) == 0)
  109. {
  110. SendClientMessage(playerid, COLOR_YELLOW, "--------------------------Colors--------------------------");
  111. SendClientMessage(playerid, COLOR_YELLOW, "/blue,/red,/green,/grey,/yellow,/orange");
  112. SendClientMessage(playerid, COLOR_YELLOW, "/white");
  113. SendClientMessage(playerid, COLOR_YELLOW, "--------------------------Colors--------------------------");
  114. return 1;
  115. }
  116. if (strcmp("/GUNSHOP", cmdtext, true, 10) == 0)
  117. {
  118. SendClientMessage(playerid, COLOR_BLUE, "--------------------------Gun Shop--------------------------");
  119. SendClientMessage(playerid, COLOR_BLUE, "/m4,/ak47,/armour,/health,/shotgun,/grenade");
  120. SendClientMessage(playerid, COLOR_BLUE, "--------------------------Gun Shop--------------------------");
  121. return 1;
  122. }
  123. if (strcmp("/VEHSPAWNER", cmdtext, true, 10) == 0)
  124. {
  125. SendClientMessage(playerid, COLOR_LIGHTBLUE, "--------------------------Vehicle Spawner--------------------------");
  126. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Bike: /nrg,/bf400,/pcj,/sanchez,/fcr,/faggio");
  127. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Car: /infernus,/turismo,/buffalo,/sultan,/banshee,/jester,");
  128. SendClientMessage(playerid, COLOR_LIGHTBLUE, " /uranus");
  129. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Boat: /speeder,/reefer,/tropic,/coastguard,/dinghy");
  130. SendClientMessage(playerid, COLOR_LIGHTBLUE, "--------------------------Vehcile Spawner--------------------------");
  131. return 1;
  132. }
  133. //-------------------------------------------------------TELEPORTS-----------------------------------
  134. if(!strcmp(cmdtext,"/lv",true)) {
  135. SetPlayerPos(playerid, 2025.075, 1627.977, 15);
  136. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Las Venturas");
  137. return 1;
  138. }
  139. if(!strcmp(cmdtext,"/SF",true)) {
  140. SetPlayerPos(playerid, -1984.9027,264.8299,35.1794);
  141. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to San Fierro");
  142. return 1;
  143. }
  144. if(!strcmp(cmdtext,"/LS",true)) {
  145. SetPlayerPos(playerid, 2470.997, -1670.019, 15);
  146. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Los Santos");
  147. return 1;
  148. }
  149. if(!strcmp(cmdtext,"/AA",true)) {
  150. SetPlayerPos(playerid, 338.6584, 2510.743, 15);
  151. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Abandonded Airport");
  152. return 1;
  153. }
  154. if(!strcmp(cmdtext,"/LVAIR",true)) {
  155. SetPlayerPos(playerid, 1330.013, 1573.824, 15);
  156. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Las Venturas Airport");
  157. return 1;
  158. }
  159. if(!strcmp(cmdtext,"/SFAIR",true)) {
  160. SetPlayerPos(playerid, -1378.797, -222.5459, 15);
  161. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to San Fierro Airport");
  162. return 1;
  163. }
  164. if(!strcmp(cmdtext,"/LSAIR",true)) {
  165. SetPlayerPos(playerid, 1641.979, -2467.462, 15);
  166. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Los Santos Airport");
  167. return 1;
  168. }
  169. if(!strcmp(cmdtext,"/CHILLIAD",true)) {
  170. SetPlayerPos(playerid,-2327.7019,-1631.3575,483.7007);
  171. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Mount Chilliad");
  172. return 1;
  173. }
  174. if(!strcmp(cmdtext,"/BEACH",true)) {
  175. SetPlayerPos(playerid, 288.169, -1820.033, 15);
  176. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to the Beach");
  177. return 1;
  178. }
  179. if(!strcmp(cmdtext,"/VINEWOOD",true)) {
  180. SetPlayerPos(playerid, 1451.837, -856.7839, 15);
  181. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to the Vinewood sign");
  182. return 1;
  183. }
  184. //-------------------------------------------Color Command----------------------------------------
  185. if(strcmp(cmdtext, "/grey", true) == 0) {
  186. SetPlayerColor(playerid, COLOR_GREY);
  187. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to grey");
  188. return 1;
  189. }
  190. if(strcmp(cmdtext, "/green", true) == 0) {
  191. SetPlayerColor(playerid, COLOR_GREEN);
  192. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to green");
  193. return 1;
  194. }
  195. if(strcmp(cmdtext, "/red", true) == 0) {
  196. SetPlayerColor(playerid, COLOR_RED);
  197. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to red");
  198. return 1;
  199. }
  200. if(strcmp(cmdtext, "/yellow", true) == 0) {
  201. SetPlayerColor(playerid, COLOR_YELLOW);
  202. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to yellow");
  203. return 1;
  204. }
  205. if(strcmp(cmdtext, "/white", true) == 0) {
  206. SetPlayerColor(playerid, COLOR_WHITE);
  207. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to white");
  208. return 1;
  209. }
  210. if(strcmp(cmdtext, "/blue", true) == 0) {
  211. SetPlayerColor(playerid, COLOR_BLUE);
  212. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to blue");
  213. return 1;
  214. }
  215. if(strcmp(cmdtext, "/orange", true) == 0) {
  216. SetPlayerColor(playerid, COLOR_ORANGE);
  217. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to orange");
  218. return 1;
  219. }
  220. //----------------------------------------------Weapon Shop-----------------------------------------
  221. if (strcmp("/m4", cmdtext, true, 10) == 0)
  222. {
  223. SendClientMessage(playerid,COLOR_GREEN,"[INFO] You have buy a m4a1 for $5000");
  224. GivePlayerWeapon(playerid,31,400);
  225. GivePlayerMoney(playerid,-5000);
  226. return 1;
  227. }
  228. if (strcmp("/ak47", cmdtext, true, 10) == 0)
  229. {
  230. SendClientMessage(playerid,COLOR_GREEN,"[INFO] You have buy a ak47 for $5000");
  231. GivePlayerWeapon(playerid,30,400);
  232. GivePlayerMoney(playerid,-5000);
  233. return 1;
  234. }
  235. if (strcmp("/armour", cmdtext, true, 10) == 0)
  236. {
  237. SendClientMessage(playerid,COLOR_RED,"[INFO] You have buy an armour for $300");
  238. SetPlayerArmour(playerid,100);
  239. GivePlayerMoney(playerid,-300);
  240. return 1;
  241. }
  242. if (strcmp("/health", cmdtext, true, 10) == 0)
  243. {
  244. SendClientMessage(playerid,COLOR_GREEN,"[INFO] You have a 100 health for $1000");
  245. SetPlayerHealth(playerid,100);
  246. GivePlayerMoney(playerid,-1000);
  247. return 1;
  248. }
  249. if (strcmp("/shotgun", cmdtext, true, 10) == 0)
  250. {
  251. SendClientMessage(playerid,COLOR_GREEN,"[INFO] You have buy a shotgun for $2500");
  252. GivePlayerWeapon(playerid,25,100);
  253. GivePlayerMoney(playerid,-2500);
  254. return 1;
  255. }
  256. if (strcmp("/grenade", cmdtext, true, 10) == 0)
  257. {
  258. SendClientMessage(playerid,COLOR_GREEN,"[INFO] You have buy a grenade for $500");
  259. GivePlayerWeapon(playerid,16,10);
  260. GivePlayerMoney(playerid,-500);
  261. return 1;
  262. }
  263. //-----------------------------------------Vehicle Spawner-----------------------------------------
  264. if(strcmp("/speeder", cmdtext, true, 10) == 0)
  265. {
  266. SpawnVehicle(playerid, 452);
  267. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Speeder");
  268. return 1;
  269. }
  270. if(strcmp("/reefer", cmdtext, true, 10) == 0)
  271. {
  272. SpawnVehicle(playerid, 453);
  273. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Reefer");
  274. return 1;
  275. }
  276. if(strcmp("/tropic", cmdtext, true, 10) == 0)
  277. {
  278. SpawnVehicle(playerid, 454);
  279. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Tropic");
  280. return 1;
  281. }
  282. if(strcmp("/dinghy", cmdtext, true, 10) == 0)
  283. {
  284. SpawnVehicle(playerid, 473);
  285. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a dinghy");
  286. return 1;
  287. }
  288. if(strcmp("/coastguard", cmdtext, true, 10) == 0)
  289. {
  290. SpawnVehicle(playerid, 472);
  291. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Coast Guard");
  292. return 1;
  293. }
  294. if(strcmp("/nrg", cmdtext, true, 10) == 0)
  295. {
  296. SpawnVehicle(playerid, 522);
  297. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a NRG-500");
  298. return 1;
  299. }
  300. if(strcmp("/bf400", cmdtext, true, 10) == 0)
  301. {
  302. SpawnVehicle(playerid, 581);
  303. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a BF-400");
  304. return 1;
  305. }
  306. if(strcmp("/pcj", cmdtext, true, 10) == 0)
  307. {
  308. SpawnVehicle(playerid, 461);
  309. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a PCJ-600");
  310. return 1;
  311. }
  312. if(strcmp("/fcr", cmdtext, true, 10) == 0)
  313. {
  314. SpawnVehicle(playerid, 522);
  315. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a NRG-500");
  316. return 1;
  317. }
  318. if(strcmp("/sanchez", cmdtext, true, 10) == 0)
  319. {
  320. SpawnVehicle(playerid, 468);
  321. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Sanchez");
  322. return 1;
  323. }
  324. if(strcmp("/faggio", cmdtext, true, 10) == 0)
  325. {
  326. SpawnVehicle(playerid, 462);
  327. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Faggio");
  328. return 1;
  329. }
  330. if(strcmp("/freeway", cmdtext, true, 10) == 0)
  331. {
  332. SpawnVehicle(playerid, 463);
  333. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Freeway");
  334. return 1;
  335. }
  336. if(strcmp("/infernus", cmdtext, true, 10) == 0)
  337. {
  338. SpawnVehicle(playerid, 411);
  339. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Infernus");
  340. return 1;
  341. }
  342. if(strcmp("/turismo", cmdtext, true, 10) == 0)
  343. {
  344. SpawnVehicle(playerid, 451);
  345. SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Turismo");
  346. return 1;
  347. }
  348. if(strcmp("/sultan", cmdtext, true, 10) == 0)
  349. {
  350. SpawnVehicle(playerid, 560);
  351. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have sucessfully spawned a Sultan");
  352. return 1;
  353. }
  354. if(strcmp("/jester", cmdtext, true, 10) == 0)
  355. {
  356. SpawnVehicle(playerid, 559);
  357. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have sucessfully spawned a Jester");
  358. return 1;
  359. }
  360. if(strcmp("/uranus", cmdtext, true, 10) == 0)
  361. {
  362. SpawnVehicle(playerid, 558);
  363. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have sucessfully spawned a Uranus");
  364. return 1;
  365. }
  366. if(strcmp("/banshee", cmdtext, true, 10) == 0)
  367. {
  368. SpawnVehicle(playerid, 429);
  369. SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have sucessfully spawned a Banshee");
  370. return 1;
  371. }
  372. return 0;
  373. }
  374.  
  375. public OnPlayerInfoChange(playerid)
  376. {
  377. return 1;
  378. }
  379.  
  380. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  381. {
  382. return 1;
  383. }
  384.  
  385. public OnPlayerExitVehicle(playerid, vehicleid)
  386. {
  387. return 1;
  388. }
  389.  
  390. public OnPlayerStateChange(playerid, newstate, oldstate)
  391. {
  392. return 1;
  393. }
  394.  
  395. public OnPlayerEnterCheckpoint(playerid)
  396. {
  397. return 1;
  398. }
  399.  
  400. public OnPlayerLeaveCheckpoint(playerid)
  401. {
  402. return 1;
  403. }
  404.  
  405. public OnPlayerEnterRaceCheckpoint(playerid)
  406. {
  407. return 1;
  408. }
  409.  
  410. public OnPlayerLeaveRaceCheckpoint(playerid)
  411. {
  412. return 1;
  413. }
  414.  
  415. public OnRconCommand(cmd[])
  416. {
  417. return 1;
  418. }
  419.  
  420. public OnObjectMoved(objectid)
  421. {
  422. return 1;
  423. }
  424.  
  425. public OnPlayerObjectMoved(playerid, objectid)
  426. {
  427. return 1;
  428. }
  429.  
  430. public OnPlayerPickUpPickup(playerid, pickupid)
  431. {
  432. return 1;
  433. }
  434.  
  435. public OnPlayerSelectedMenuRow(playerid, row)
  436. {
  437. return 1;
  438. }
  439.  
  440. public OnPlayerExitedMenu(playerid)
  441. {
  442. return 1;
  443. }
  444. SpawnVehicle(playerid, vehicleid)
  445. {
  446. new Float:X, Float:Y, Float:Z, Float:A;
  447. new Vehicle;
  448. GetPlayerPos(playerid, X, Y, Z);
  449. GetPlayerFacingAngle(playerid, A); //Gets your Angle
  450.  
  451. Vehicle = CreateVehicle(vehicleid, X, Y, Z, A, 1, 169, -1);
  452. PutPlayerInVehicle(playerid, Vehicle, 0);
  453. return 1;
  454. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement