Advertisement
Guest User

Untitled

a guest
Jul 28th, 2014
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.03 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8. #define 0x0000FFAA
  9.  
  10. public OnFilterScriptInit()
  11. {
  12. print("\n--------------------------------------");
  13. print(" Blank Filterscript by HeallYeah");
  14. print("--------------------------------------\n");
  15. return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20. return 1;
  21. }
  22.  
  23. #else
  24.  
  25. main()
  26. {
  27. print("\n----------------------------------");
  28. print(" Blank Gamemode by MadBoY");
  29. print("----------------------------------\n");
  30. }
  31.  
  32. #endif
  33.  
  34. public OnGameModeInit()
  35. {
  36. // Don't use these lines if it's a filterscript
  37. SetGameModeText("Blank Script");
  38. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  39. return 1;
  40. }
  41.  
  42. public OnGameModeExit()
  43. {
  44. return 1;
  45. }
  46.  
  47. public OnPlayerRequestClass(playerid, classid)
  48. {
  49. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  51. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  52. return 1;
  53. }
  54.  
  55. public OnPlayerConnect(playerid)
  56. {
  57. GivePlayerMoney(playerid, 3000);
  58. return 1;
  59. }
  60.  
  61. public OnPlayerDisconnect(playerid, reason)
  62. {
  63. return 1;
  64. }
  65.  
  66. public OnPlayerSpawn(playerid)
  67. {
  68. return 1;
  69. }
  70.  
  71. public OnPlayerDeath(playerid, killerid, reason)
  72. {
  73. return 1;
  74. }
  75.  
  76. public OnVehicleSpawn(vehicleid)
  77. {
  78. return 1;
  79. }
  80.  
  81. public OnVehicleDeath(vehicleid, killerid)
  82. {
  83. return 1;
  84. }
  85.  
  86. public OnPlayerText(playerid, text[])
  87. {
  88. return 1;
  89. }
  90.  
  91. public OnPlayerCommandText(playerid, cmdtext[])
  92. {
  93. if (strcmp("/gunshop", cmdtext, true, 10) == 0)
  94. {
  95. ShowPlayerDialog(playerid, 67, DIALOG_STYLE_LIST, "Weapon shop", "Knife - 100$\nChainsaw - 100$\nGrenade - 1500$\nMolotov Cocktail - 2000$\nDesert Eagle - 1150$\nSawnoff Shotgun - 1000$\nMicro SMG - 1000$/Uzi - 500$\nMP5 - 500$\nSniper Rifle - 1000$\nFlamethower - 2000$\nSatchel Charge - 5000$\nFire Extinguisher - 5000$\nNight Vis Goggles - 1050$\nThermal Goggles - 1200$\nParachute - 100$", "Buy", "Cancel");
  96. return 1;
  97. }
  98. return 0;
  99. }
  100.  
  101. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  102. {
  103. return 1;
  104. }
  105.  
  106. public OnPlayerExitVehicle(playerid, vehicleid)
  107. {
  108. return 1;
  109. }
  110.  
  111. public OnPlayerStateChange(playerid, newstate, oldstate)
  112. {
  113. return 1;
  114. }
  115.  
  116. public OnPlayerEnterCheckpoint(playerid)
  117. {
  118. return 1;
  119. }
  120.  
  121. public OnPlayerLeaveCheckpoint(playerid)
  122. {
  123. return 1;
  124. }
  125.  
  126. public OnPlayerEnterRaceCheckpoint(playerid)
  127. {
  128. return 1;
  129. }
  130.  
  131. public OnPlayerLeaveRaceCheckpoint(playerid)
  132. {
  133. return 1;
  134. }
  135.  
  136. public OnRconCommand(cmd[])
  137. {
  138. return 1;
  139. }
  140.  
  141. public OnPlayerRequestSpawn(playerid)
  142. {
  143. return 1;
  144. }
  145.  
  146. public OnObjectMoved(objectid)
  147. {
  148. return 1;
  149. }
  150.  
  151. public OnPlayerObjectMoved(playerid, objectid)
  152. {
  153. return 1;
  154. }
  155.  
  156. public OnPlayerPickUpPickup(playerid, pickupid)
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnVehicleMod(playerid, vehicleid, componentid)
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  167. {
  168. return 1;
  169. }
  170.  
  171. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  172. {
  173. return 1;
  174. }
  175.  
  176. public OnPlayerSelectedMenuRow(playerid, row)
  177. {
  178. return 1;
  179. }
  180.  
  181. public OnPlayerExitedMenu(playerid)
  182. {
  183. return 1;
  184. }
  185.  
  186. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  187. {
  188. return 1;
  189. }
  190.  
  191. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  192. {
  193. return 1;
  194. }
  195.  
  196. public OnRconLoginAttempt(ip[], password[], success)
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnPlayerUpdate(playerid)
  202. {
  203. return 1;
  204. }
  205.  
  206. public OnPlayerStreamIn(playerid, forplayerid)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnPlayerStreamOut(playerid, forplayerid)
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnVehicleStreamIn(vehicleid, forplayerid)
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnVehicleStreamOut(vehicleid, forplayerid)
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  227. {
  228. if(dialogid == 67)
  229. {
  230. if(!response)
  231. return 1;
  232. switch(listitem)
  233. {
  234. case 0:
  235. {
  236. if(GetPlayerMoney(playerid) < 100)
  237. return SendClientMessage(playerid, 0x0000FFAA, "You don't have enough cash to buy this Weapon.");
  238. GivePlayerMoney(playerid, 00);
  239. GivePlayerWeapon(playerid, 4, 1);
  240. SendClientMessage(playerid, 0x0000FFAA, "You have succesfully buyed your weapon.");
  241. }
  242. case 1:
  243. {
  244. if(GetPlayerMoney(playerid) < 100)
  245. return SendClientMessage(playerid, 0x33FF00AA, "You don't have enough cash to buy this Weapon.");
  246. GivePlayerMoney(playerid, -100);
  247. GivePlayerWeapon(playerid, 9, 1);
  248. SendClientMessage(playerid, 0x33FF00AA, "You have succesfully buyed your weapon.");
  249. }
  250. case 2:
  251. {
  252. if(GetPlayerMoney(playerid) < 1500)
  253. return SendClientMessage(playerid, 0x00FFFFAA, "You don't have enough cash to buy this Weapon.");
  254. GivePlayerMoney(playerid, -1500);
  255. GivePlayerWeapon(playerid, 16, 100);
  256. SendClientMessage(playerid, 0x00FFFFAA, "You have succesfully buyed your weapon.");
  257. }
  258. case 3:
  259. {
  260. if(GetPlayerMoney(playerid) < 2000)
  261. return SendClientMessage(playerid, 0x6600FFAA, "You don't have enough cash to buy this Weapon.");
  262. GivePlayerMoney(playerid, -2000);
  263. GivePlayerWeapon(playerid, 18, 20);
  264. SendClientMessage(playerid, 0x6600FFAA, "You have succesfully buyed your weapon.");
  265. }
  266. case 4:
  267. {
  268. if(GetPlayerMoney(playerid) < 1150)
  269. return SendClientMessage(playerid, 0x99FF00AA, "You don't have enough cash to buy this Weapon.");
  270. GivePlayerMoney(playerid, -1150);
  271. GivePlayerWeapon(playerid, 24, 100);
  272. SendClientMessage(playerid, 0x99FF00AA, "You have succesfully buyed your weapon.");
  273. }
  274. case 5:
  275. {
  276. if(GetPlayerMoney(playerid) < 1000)
  277. return SendClientMessage(playerid, 0x999999AA, "You don't have enough cash to buy this Weapon.");
  278. GivePlayerMoney(playerid, -1000);
  279. GivePlayerWeapon(playerid, 26, 3000);
  280. SendClientMessage(playerid, 0x999999AA, "You have succesfully buyed your weapon.");
  281. }
  282. case 6:
  283. {
  284. if(GetPlayerMoney(playerid) < 1000)
  285. return SendClientMessage(playerid, 0xCC0000AA, "You don't have enough cash to buy this Weapon.");
  286. GivePlayerMoney(playerid, -1000);
  287. GivePlayerWeapon(playerid, 28, 7000);
  288. SendClientMessage(playerid, 0xCC0000AA, "You have succesfully buyed your weapon.");
  289. }
  290. case 7:
  291. {
  292. if(GetPlayerMoney(playerid) < 500)
  293. return SendClientMessage(playerid, 0xFF00FFAA, "You don't have enough cash to buy this Weapon.");
  294. GivePlayerMoney(playerid, -500);
  295. GivePlayerWeapon(playerid, 29, 1050);
  296. SendClientMessage(playerid, 0xFF00FFAA, "You have succesfully buyed your weapon.");
  297. }
  298. case 8:
  299. {
  300. if(GetPlayerMoney(playerid) < 1000)
  301. return SendClientMessage(playerid, 0xCCFF00AA, "You don't have enough cash to buy this Weapon.");
  302. GivePlayerMoney(playerid, -1000);
  303. GivePlayerWeapon(playerid, 34, 500);
  304. SendClientMessage(playerid, 0xCCFF00AA, "You have succesfully buyed your weapon.");
  305. }
  306. case 9:
  307. {
  308. if(GetPlayerMoney(playerid) < 2000)
  309. return SendClientMessage(playerid, 0xFFFFFFAA, "You don't have enough cash to buy this Weapon.");
  310. GivePlayerMoney(playerid, -2000);
  311. GivePlayerWeapon(playerid, 37, 9000);
  312. SendClientMessage(playerid, 0xFFFFFFAA, "You have succesfully buyed your weapon.");
  313. }
  314. case 10:
  315. {
  316. if(GetPlayerMoney(playerid) < 5000)
  317. return SendClientMessage(playerid, 0xCC3300AA, "You don't have enough cash to buy this Weapon.");
  318. GivePlayerMoney(playerid, -5000);
  319. GivePlayerWeapon(playerid, 39, 20);
  320. SendClientMessage(playerid, 0xCC3300AA, "You have succesfully buyed your weapon.");
  321. }
  322. case 11:
  323. {
  324. if(GetPlayerMoney(playerid) < 5000)
  325. return SendClientMessage(playerid, 0x66FF99AA, "You don't have enough cash to buy this Weapon.");
  326. GivePlayerMoney(playerid, -5000);
  327. GivePlayerWeapon(playerid, 42, 5050);
  328. SendClientMessage(playerid, 0x66FF99AA, "You have succesfully buyed your weapon.");
  329. }
  330. case 12:
  331. {
  332. if(GetPlayerMoney(playerid) < 1050)
  333. return SendClientMessage(playerid, 0xFF9966AA, "You don't have enough cash to buy this Weapon.");
  334. GivePlayerMoney(playerid, -1050);
  335. GivePlayerWeapon(playerid, 44, 1);
  336. SendClientMessage(playerid, 0xFF9966AA, "You have succesfully buyed your weapon.");
  337. }
  338. case 13:
  339. {
  340. if(GetPlayerMoney(playerid) < 1200)
  341. return SendClientMessage(playerid, 0x9900FFAA, "You don't have enough cash to buy this Weapon.");
  342. GivePlayerMoney(playerid, -1200);
  343. GivePlayerWeapon(playerid, 45, 1);
  344. SendClientMessage(playerid, 0x9900FFAA, "You have succesfully buyed your weapon.");
  345. }
  346. case 14:
  347. {
  348. if(GetPlayerMoney(playerid) < 100)
  349. return SendClientMessage(playerid, 0x33CCFFAA, "You don't have enough cash to buy this Weapon.");
  350. GivePlayerMoney(playerid, -100);
  351. GivePlayerWeapon(playerid, 46, 1);
  352. SendClientMessage(playerid, 0x33CCFFAA, "You have succesfully buyed your weapon.");
  353. }
  354. }
  355. }
  356. return 1;
  357. }
  358.  
  359. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  360. {
  361. return 1;
  362. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement