Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2010
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.97 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.  
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. #define DIALOG_WEPS 1
  12. #pragma tabsize 0 //removes all 217 warnings
  13.  
  14. #define COLOR_INVIS 0xAFAFAF00
  15. #define COLOR_SPEC 0xBFC0C200
  16. #define COLOR_GRAD1 0xB4B5B7FF
  17. #define COLOR_GRAD2 0xBFC0C2FF
  18. #define COLOR_GRAD3 0xCBCCCEFF
  19. #define COLOR_GRAD4 0xD8D8D8FF
  20. #define COLOR_GRAD5 0xE3E3E3FF
  21. #define COLOR_GRAD6 0xF0F0F0FF
  22. #define COLOR_GREY 0xAFAFAFAA
  23. #define COLOR_GROVE 0x00FF00FF
  24. #define COLOR_RED 0xAA3333AA
  25. #define COLOR_COOLRED 0xB35959AA
  26. #define COLOR_ORANGE 0xFF9900AA
  27. #define COLOR_PINK 0xFF66FFAA
  28. #define COLOR_DARKRED 0x660000AA
  29. #define COLOR_BRIGHTRED 0xFF0000AA
  30. #define COLOR_INDIGO 0x4B00B0AA
  31. #define COLOR_VIOLET 0x9955DEEE
  32. #define COLOR_GRAYWHITE 0xEEEEFFC4
  33. #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
  34. #define COLOR_GREENISHGOLD 0xCCFFDD56
  35. #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
  36. #define COLOR_NEUTRALBLUE 0xABCDEF01
  37. #define COLOR_LIGHTCYAN 0xAAFFCC33
  38. #define COLOR_LEMON 0xDDDD2357
  39. #define COLOR_LIGHTRED 0xFF6347AA
  40. #define COLOR_LIGHTBLUE 0x33CCFFAA
  41. #define COLOR_LIGHTGREEN 0x9ACD32AA
  42.  
  43. #define COLOR_YELLOW2 0xF5DEB3AA
  44. #define COLOR_WHITE 0xFFFFFFAA
  45. #define COLOR_FADE1 0xE6E6E6E6
  46. #define COLOR_FADE2 0xC8C8C8C8
  47. #define COLOR_FADE3 0xAAAAAAAA
  48. #define COLOR_FADE4 0x8C8C8C8C
  49. #define COLOR_FADE5 0x6E6E6E6E
  50. #define COLOR_PURPLE 0xB360FDFF
  51. #define COLOR_CHAT1 0xF9B7FFAA
  52. #define COLOR_CHAT2 0xE6A9ECAA
  53. #define COLOR_CHAT3 0xC38EC7AA
  54. #define COLOR_CHAT4 0xD2B9D3AA
  55. #define COLOR_CHAT5 0xC6AEC7AA
  56. #define COLOR_ALLDEPT 0xFF8282AA
  57. #define COLOR_NEWS 0x458E1DAA
  58. #define COLOR_OOC 0xE0FFFFAA
  59. #define COLOR_ASKQ 0xFF0000FF
  60. #define RED 0xE60000FF
  61. #define COLOR_YELLOW 0xFFFF00FF
  62. #define ORANGE 0xF97804FF
  63. #define GRAY 0xCECECEFF
  64. #define LIGHTBLUE 0x00C2ECFF
  65. #define cop_color 0xC2A2DAFF
  66. #define COLOR_BLACK 0x000000FF
  67. #define COLOR_NICERED 0xFF0000FF
  68. #define COLOR_WGREY 0xCECECEFF
  69. #define COLOR_ADMINBLUE 0x1E90FF
  70. #define COLOR_LIMEGREEN 0x33FF00
  71.  
  72.  
  73. public OnFilterScriptInit()
  74. {
  75. print("\n--------------------------------------");
  76. print(" Weps System by AzTeCaS");
  77. print("--------------------------------------\n");
  78. return 1;
  79. }
  80.  
  81. public OnFilterScriptExit()
  82. {
  83. return 1;
  84. }
  85.  
  86. #else
  87.  
  88. main()
  89. {
  90. print("\n----------------------------------");
  91. print(" Blank Gamemode by your name here");
  92. print("----------------------------------\n");
  93. }
  94.  
  95. #endif
  96.  
  97. public OnGameModeInit()
  98. {
  99. // Don't use these lines if it's a filterscript
  100. SetGameModeText("Blank Script");
  101. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  102. return 1;
  103. }
  104.  
  105. public OnGameModeExit()
  106. {
  107. return 1;
  108. }
  109.  
  110. public OnPlayerRequestClass(playerid, classid)
  111. {
  112. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  113. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  114. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  115. return 1;
  116. }
  117.  
  118. public OnPlayerConnect(playerid)
  119. {
  120. return 1;
  121. }
  122.  
  123. public OnPlayerDisconnect(playerid, reason)
  124. {
  125. return 1;
  126. }
  127.  
  128. public OnPlayerSpawn(playerid)
  129. {
  130. return 1;
  131. }
  132.  
  133. public OnPlayerDeath(playerid, killerid, reason)
  134. {
  135. return 1;
  136. }
  137.  
  138. public OnVehicleSpawn(vehicleid)
  139. {
  140. return 1;
  141. }
  142.  
  143. public OnVehicleDeath(vehicleid, killerid)
  144. {
  145. return 1;
  146. }
  147.  
  148. public OnPlayerText(playerid, text[])
  149. {
  150. return 1;
  151. }
  152.  
  153. public OnPlayerCommandText(playerid, cmdtext[])
  154. {
  155. if(!strcmp(cmdtext, "/Weps", true) && GetPlayerVirtualWorld(playerid) != 80)
  156. {
  157. ShowPlayerDialog(playerid,DIALOG_WEPS, DIALOG_STYLE_LIST, "Weps", "RW Weapon,\nWW Weapon", "Ok", "Cancel");
  158. return 1;
  159. }
  160.  
  161. return 0;
  162. }
  163.  
  164. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  165. {
  166. return 1;
  167. }
  168.  
  169. public OnPlayerExitVehicle(playerid, vehicleid)
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnPlayerStateChange(playerid, newstate, oldstate)
  175. {
  176. return 1;
  177. }
  178.  
  179. public OnPlayerEnterCheckpoint(playerid)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnPlayerLeaveCheckpoint(playerid)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerEnterRaceCheckpoint(playerid)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnPlayerLeaveRaceCheckpoint(playerid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnRconCommand(cmd[])
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnPlayerRequestSpawn(playerid)
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnObjectMoved(objectid)
  210. {
  211. return 1;
  212. }
  213.  
  214. public OnPlayerObjectMoved(playerid, objectid)
  215. {
  216. return 1;
  217. }
  218.  
  219. public OnPlayerPickUpPickup(playerid, pickupid)
  220. {
  221. return 1;
  222. }
  223.  
  224. public OnVehicleMod(playerid, vehicleid, componentid)
  225. {
  226. return 1;
  227. }
  228.  
  229. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  230. {
  231. return 1;
  232. }
  233.  
  234. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  235. {
  236. return 1;
  237. }
  238.  
  239. public OnPlayerSelectedMenuRow(playerid, row)
  240. {
  241. return 1;
  242. }
  243.  
  244. public OnPlayerExitedMenu(playerid)
  245. {
  246. return 1;
  247. }
  248.  
  249. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  250. {
  251. return 1;
  252. }
  253.  
  254. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  255. {
  256. return 1;
  257. }
  258.  
  259. public OnRconLoginAttempt(ip[], password[], success)
  260. {
  261. return 1;
  262. }
  263.  
  264. public OnPlayerUpdate(playerid)
  265. {
  266. return 1;
  267. }
  268.  
  269. public OnPlayerStreamIn(playerid, forplayerid)
  270. {
  271. return 1;
  272. }
  273.  
  274. public OnPlayerStreamOut(playerid, forplayerid)
  275. {
  276. return 1;
  277. }
  278.  
  279. public OnVehicleStreamIn(vehicleid, forplayerid)
  280. {
  281. return 1;
  282. }
  283.  
  284. public OnVehicleStreamOut(vehicleid, forplayerid)
  285. {
  286. return 1;
  287. }
  288.  
  289. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  290. {
  291.  
  292. switch(dialogid)
  293. {
  294. case DIALOG_WEPS:
  295. {
  296. if(response)
  297. {
  298. switch(listitem)
  299. {
  300. case 0:
  301. {
  302. GivePlayerWeapon(playerid, 28, 0x7F800000);
  303. GivePlayerWeapon(playerid, 26, 0x7F800000);
  304. }
  305. case 1:
  306. {
  307. GivePlayerWeapon(playerid, 24, 0x7F800000);
  308. GivePlayerWeapon(playerid, 27, 0x7F800000);
  309. GivePlayerWeapon(playerid, 34, 0x7F800000);
  310. }
  311. }
  312. }
  313. }
  314. }
  315. return 1;
  316. }
  317.  
  318. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  319. {
  320. return 1;
  321. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement