Advertisement
Guest User

Untitled

a guest
Sep 30th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.20 KB | None | 0 0
  1. //***************************************
  2. // Croatia Sky RolePlay
  3. // By
  4. // David
  5. //***************************************
  6.  
  7. #include <a_samp>
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. //-0.3c BOJE
  12. #define COL_MYCOL "{FF7F24}"
  13. #define COL_LIGHTRED "{FF6347}"
  14. #define COL_ZELENA "{48E31C}"
  15. #define Zln "{48E31C}"
  16. #define COL_RADIO "{108291}"
  17. #define COL_PLAVKASTA "{157DEC}"
  18. #define COL_EASY "{FFF1AF}"
  19. #define COL_WHITE "{FFFFFF}"
  20. #define COL_BLACK "{0E0101}"
  21. #define COL_GREY "{C3C3C3}"
  22. #define COL_GREEN "{6EF83C}"
  23. #define COL_RED "{F81414}"
  24. #define rd "{F81414}"
  25. #define COL_YELLOW "{F3FF02}"
  26. #define COL_ORANGE "{FFAF00}"
  27. #define COL_LIME "{B7FF00}"
  28. #define COL_CYAN "{00FFEE}"
  29. #define COL_SVPLAVA "{00C0FF}"
  30. #define svpl "{00C0FF}"
  31. #define COL_BLUE "{0049FF}"
  32. #define COL_MAGENTA "{F300FF}"
  33. #define COL_VIOLET "{B700FF}"
  34. #define COL_PINK "{FF00EA}"
  35. #define COL_MARONE "{A90202}"
  36. #define COL_CMD "{B8FF02}"
  37. #define COL_PARAM "{3FCD02}"
  38. #define COL_SERVER "{AFE7FF}"
  39. #define COL_VALUE "{A3E4FF}"
  40. #define COL_RULE "{F9E8B7}"
  41. #define COL_RULE2 "{FBDF89}"
  42. #define COL_RWHITE "{FFFFFF}"
  43. #define COL_LGREEN "{C9FFAB}"
  44. #define COL_LRED "{FFA1A1}"
  45. #define COL_LRED2 "{C77D87}"
  46. //-OBICNE BOJE
  47. #define COLOR_SAPTANJE 0xFFE4A4AA
  48. #define COLOR_POSLOVICE 0x6A98B5AA
  49. #define COLOR_SMS 0x00FF94AA
  50. #define COLOR_TOMATO 0xFF6347AA
  51. #define WHITE 0xFFFFFFFF
  52. #define COLOR_SEA 0x00808000
  53. #define COLOR_MYORANGE 0xFF7F24FF
  54. #define COLOR_ZELENKASTA 0x48E31CFF
  55. #define ZELENKASTA2 0x48E31CAA
  56. #define COLOR_MOJABOJA 0x5F9EA0FF
  57. #define COLOR_LJUBICASTA 0xC2A2DAAA
  58. #define COLOR_CHAT1 0xF9B7FFAA
  59. #define COLOR_CHAT2 0xE6A9ECAA
  60. #define COLOR_CHAT3 0xC38EC7AA
  61. #define COLOR_CHAT4 0xD2B9D3AA
  62. #define COLOR_CHAT5 0xC6AEC7AA
  63. #define COLOR_IVORY 0xFFFF82AA
  64. #define COLOR_ORANGE 0xFF9900AA
  65. #define COLOR_DRED 0xFF0000FF
  66. #define COLOR_DPLAVA 0x995F2BFF
  67. #define ADMCRVENA 0xFF6347AA
  68. #define NICERED 0xFF0000FF
  69. #define NICERE 0xFF0000FF
  70. #define OOC 0xE0FFFFAA
  71. #define CRNA 0x0F0000FF
  72. #define ZELENO 0x33AA33AA
  73. #define SIVA 0xAFAFAFAA
  74. #define ZUTA 0xFFFF00AA
  75. #define LJUBICASTA 0xC2A2DAAA
  76. #define ZLATNA 0xB8860BAA
  77. #define BRAON 0xA52A2AAA
  78. #define CRVENA 0xAA3333AA
  79. #define ZELENA 0xA5FF00FF
  80. #define BELA 0xFFFFFFAA
  81. #define ZELENKASTA 0x48E31CFF
  82. #define zelenkasta 0x48E31CFF
  83. #define PLAVA 0x0000BBAA
  84. #define SVETLOPLAVA 0x33CCFFAA
  85. #define SVETLOZELENA 0x80FF80FF
  86. #define NARANDZASTA 0xFF9900AA
  87. #define YELLOW 0xFFFF00AA
  88. #define ORANGE 0xF97804FF
  89. #define GRAY 0xCECECEFF
  90. #define LIGHTBLUE 0x00C2ECFF
  91. #define siva 0xAFAFAFAA
  92. #define COLOR_GREY 0xAFAFAFAA
  93. #define COLOR_RED 0xAA3333AA
  94. #define COLOR_ODG 0xFF0000AA
  95. #define COLOR_GREEN 0x9EC73DAA
  96. #define COLOR_GROVE 0x00FF00FF
  97. #define COLOR_GRAD1 0xB4B5B7FF
  98. #define COLOR_GRAD2 0xBFC0C2FF
  99. #define COLOR_GRAD3 0xCBCCCEFF
  100. #define COLOR_GRAD4 0xD8D8D8FF
  101. #define COLOR_GRAD5 0xE3E3E3FF
  102. #define COLOR_GRAD6 0xF0F0F0FF
  103. #define LIGHTRED 0xFF6347AA
  104. #define COLOR_LIGHTRED 0xFF6347AA
  105. #define COLOR_LIGHTBLUE 0x33CCFFAA
  106. #define COLOR_LIGHTGREEN 0x9ACD32AA
  107. #define COLOR_BLACK 0x000000FF
  108. #define COLOR_ZELENA 0x00FF00E2
  109. #define COLOR_Text 0xF5D9C1F6
  110. #define COLOR_SVETLOPLAVA 0x33CCFFAA
  111. #define NICERED 0xFF0000FF
  112. #define COLOR_NICERED 0xFF0000FF
  113. #define COLOR_INVIS 0xAFAFAF00
  114. #define COLOR_SPEC 0xBFC0C200
  115. #define COLOR_ADD 0x63FF60AA
  116. #define COLOR_YELLOW 0xFFFF00AA
  117. #define COLOR_YELLOW2 0xF5DEB3AA
  118. #define COLOR_WHITE 0xFFFFFFAA
  119. #define COLOR_FADE1 0xE6E6E6E6
  120. #define COLOR_FADE2 0xC8C8C8C8
  121. #define COLOR_FADE3 0xAAAAAAAA
  122. #define COLOR_FADE4 0x8C8C8C8C
  123. #define COLOR_FADE5 0x6E6E6E6E
  124. #define COLOR_PURPLE 0xC2A2DAAA
  125. #define COLOR_DBLUE 0x2641FEAA
  126. #define COLOR_ALLDEPT 0xFF8282AA
  127. #define COLOR_NEWS 0x458E1DAA
  128. #define COLOR_OOC 0xE0FFFFAA
  129. #define OBJECTIVE_COLOR 0x64000064
  130. #define TEAM_GREEN_COLOR 0xFFFFFFAA
  131. #define TEAM_JOB_COLOR 0xFFB6C1AA
  132. #define TEAM_HIT_COLOR 0xFFFFFF00
  133. #define TEAM_BLUE_COLOR 0x8D8DFF00
  134. #define TEAM_RADIO_COLOR 0xF2D068FF
  135. #define TEAM_GROVE_COLOR 0x00D900C8
  136. #define TEAM_VAGOS_COLOR 0xFF00EBFF
  137. #define TEAM_TSC_COLOR 0xD900D3C8
  138. #define TEAM_AZTECAS_COLOR 0x01FCFFC8
  139. #define TEAM_CYAN_COLOR 0xFF8282AA
  140. #define TEAM_ORANGE_COLOR 0xFF830000
  141. #define TEAM_COR_COLOR 0x39393900
  142. #define TEAM_BAR_COLOR 0x00D90000
  143. #define TEAM_TAT_COLOR 0xBDCB9200
  144. #define TEAM_CUN_COLOR 0xD900D300
  145. #define TEAM_STR_COLOR 0x01FCFF00
  146. #define TEAM_ADMIN_COLOR 0x00808000
  147. #define cop_color 0xC2A2DAFF
  148. #define zelena 0x33AA33AA
  149. #define zuta 0xFFFF00AA
  150. #define narancasta 0xFF9900AA
  151. #define COLOR_BLUE 0x2641FEAA
  152. #define COLOR_DARKNICERED 0x9D000096
  153. #define COLOR_LIGHT_BLUE 0x9FB1EEAA
  154. //--------------KRAJ BOJA----------------------------------------------
  155.  
  156. public OnFilterScriptInit()
  157. {
  158. print("\n--------------------------------------");
  159. print(" Blank Filterscript by your name here");
  160. print("--------------------------------------\n");
  161. return 1;
  162. }
  163.  
  164. public OnFilterScriptExit()
  165. {
  166. return 1;
  167. }
  168.  
  169. #else
  170.  
  171. main()
  172. {
  173. print("\n----------------------------------");
  174. print(" Blank Gamemode by your name here");
  175. print("----------------------------------\n");
  176. }
  177.  
  178. #endif
  179.  
  180. public OnGameModeInit()
  181. {
  182. print(" ");
  183. print("*****************************");
  184. print("Croatia Sky RolePlay by David");
  185. print("*****************************");
  186. print(" ");
  187. return 1;
  188. }
  189.  
  190. public OnGameModeExit()
  191. {
  192. print(" ");
  193. print("*****************************");
  194. print("Croatia Sky RolePlay by David");
  195. print("*****************************");
  196. print(" ");
  197. return 1;
  198. }
  199.  
  200. public OnPlayerRequestClass(playerid, classid)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnPlayerConnect(playerid)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnPlayerDisconnect(playerid, reason)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnPlayerSpawn(playerid)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnPlayerDeath(playerid, killerid, reason)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnVehicleSpawn(vehicleid)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnVehicleDeath(vehicleid, killerid)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnPlayerText(playerid, text[])
  236. {
  237. new string[128];
  238. new sendername[MAX_PLAYER_NAME];
  239. GetPlayerName(playerid, sendername, sizeof(sendername));
  240. format(string, sizeof(string), "%s kaze: %s", sendername, text);
  241. SetPlayerChatBubble(playerid, text, 0x33CCFFAA, 100.0, 10000);
  242. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  243. return 0;
  244. }
  245.  
  246. public OnPlayerCommandText(playerid, cmdtext[])
  247. {
  248. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  249. {
  250. // Do something here
  251. return 1;
  252. }
  253. return 0;
  254. }
  255.  
  256. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  257. {
  258. return 1;
  259. }
  260.  
  261. public OnPlayerExitVehicle(playerid, vehicleid)
  262. {
  263. return 1;
  264. }
  265.  
  266. public OnPlayerStateChange(playerid, newstate, oldstate)
  267. {
  268. return 1;
  269. }
  270.  
  271. public OnPlayerEnterCheckpoint(playerid)
  272. {
  273. return 1;
  274. }
  275.  
  276. public OnPlayerLeaveCheckpoint(playerid)
  277. {
  278. return 1;
  279. }
  280.  
  281. public OnPlayerEnterRaceCheckpoint(playerid)
  282. {
  283. return 1;
  284. }
  285.  
  286. public OnPlayerLeaveRaceCheckpoint(playerid)
  287. {
  288. return 1;
  289. }
  290.  
  291. public OnRconCommand(cmd[])
  292. {
  293. return 1;
  294. }
  295.  
  296. public OnPlayerRequestSpawn(playerid)
  297. {
  298. return 1;
  299. }
  300.  
  301. public OnObjectMoved(objectid)
  302. {
  303. return 1;
  304. }
  305.  
  306. public OnPlayerObjectMoved(playerid, objectid)
  307. {
  308. return 1;
  309. }
  310.  
  311. public OnPlayerPickUpPickup(playerid, pickupid)
  312. {
  313. return 1;
  314. }
  315.  
  316. public OnVehicleMod(playerid, vehicleid, componentid)
  317. {
  318. return 1;
  319. }
  320.  
  321. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  322. {
  323. return 1;
  324. }
  325.  
  326. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  327. {
  328. return 1;
  329. }
  330.  
  331. public OnPlayerSelectedMenuRow(playerid, row)
  332. {
  333. return 1;
  334. }
  335.  
  336. public OnPlayerExitedMenu(playerid)
  337. {
  338. return 1;
  339. }
  340.  
  341. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  342. {
  343. return 1;
  344. }
  345.  
  346. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  347. {
  348. return 1;
  349. }
  350.  
  351. public OnRconLoginAttempt(ip[], password[], success)
  352. {
  353. return 1;
  354. }
  355.  
  356. public OnPlayerUpdate(playerid)
  357. {
  358. return 1;
  359. }
  360.  
  361. public OnPlayerStreamIn(playerid, forplayerid)
  362. {
  363. return 1;
  364. }
  365.  
  366. public OnPlayerStreamOut(playerid, forplayerid)
  367. {
  368. return 1;
  369. }
  370.  
  371. public OnVehicleStreamIn(vehicleid, forplayerid)
  372. {
  373. return 1;
  374. }
  375.  
  376. public OnVehicleStreamOut(vehicleid, forplayerid)
  377. {
  378. return 1;
  379. }
  380.  
  381. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  382. {
  383. return 1;
  384. }
  385.  
  386. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  387. {
  388. return 1;
  389. }
  390. //Stocks
  391. stock ProxDetectorS(Float:radi, playerid, targetid)
  392. {
  393. if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
  394. {
  395. new Float:posx, Float:posy, Float:posz;
  396. new Float:oldposx, Float:oldposy, Float:oldposz;
  397. new Float:tempposx, Float:tempposy, Float:tempposz;
  398. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  399. GetPlayerPos(targetid, posx, posy, posz);
  400. tempposx = (oldposx -posx);
  401. tempposy = (oldposy -posy);
  402. tempposz = (oldposz -posz);
  403. if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  404. {
  405. return 1;
  406. }
  407. }
  408. return 0;
  409. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement