Advertisement
CARLBERMAN

bandaszin

Dec 4th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 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. #include <beaZone>
  7. #include <zcmd>
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. print("\n--------------------------------------");
  14. print(" Blank Filterscript by your name here");
  15. print("--------------------------------------\n");
  16. return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21. return 1;
  22. }
  23.  
  24. #else
  25.  
  26. main()
  27. {
  28. print("\n----------------------------------");
  29. print(" Blank Gamemode by your name here");
  30. print("----------------------------------\n");
  31. }
  32.  
  33. #endif
  34. new CRIPS;
  35. new BLOODS;
  36. new MAFFIA;
  37. public OnGameModeInit()
  38. {
  39. // Don't use these lines if it's a filterscript
  40. SetGameModeText("Blank Script");
  41. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  42. return 1;
  43. }
  44.  
  45. CMD:bandaszin(playerid,params[])
  46. {
  47. if(IsPlayerAdmin(playerid))
  48. {
  49. SendClientMessage(playerid, -1,"Bandaterületek megjelenítve!");
  50. CRIPS = GangZoneCreateEx(-865.8336,1600, -919.5016, 1500, 0, 0);
  51. BLOODS = GangZoneCreateEx(-765.8998,1470, -621.6441, 1380, 0, 0);
  52. MAFFIA = GangZoneCreateEx(-350.4691,2350, -475.0416, 2125, 0, 0);
  53. GangZoneShowForPlayer(playerid, CRIPS, 0x00c4ffAA);
  54. GangZoneShowForPlayer(playerid, BLOODS, 0xff00f7AA);
  55. GangZoneShowForPlayer(playerid, MAFFIA, 0xffffffAA);
  56. }
  57. else
  58. {
  59. SendClientMessage(playerid, -1,"Nem vagy rCon Admin!");
  60. }
  61. return 1;
  62. }
  63.  
  64. CMD:bandaszinoff(playerid,params[])
  65. {
  66. GangZoneDestroyEx(CRIPS);
  67. GangZoneDestroyEx(BLOODS);
  68. GangZoneDestroyEx(MAFFIA);
  69. SendClientMessage(playerid, -1, "Bandaterületek eltávolítva!");
  70. return 1;
  71. }
  72.  
  73.  
  74. public OnGameModeExit()
  75. {
  76. return 1;
  77. }
  78.  
  79. public OnPlayerRequestClass(playerid, classid)
  80. {
  81. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  82. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  83. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  84. return 1;
  85. }
  86.  
  87. public OnPlayerConnect(playerid)
  88. {
  89. GangZoneShowForPlayer(playerid, CRIPS, 0x00c4ffAA);
  90. GangZoneShowForPlayer(playerid, BLOODS, 0xff00f7AA);
  91. GangZoneShowForPlayer(playerid, MAFFIA, 0xffffffAA);
  92. return 1;
  93. }
  94.  
  95. public OnPlayerDisconnect(playerid, reason)
  96. {
  97. return 1;
  98. }
  99.  
  100. public OnPlayerSpawn(playerid)
  101. {
  102. return 1;
  103. }
  104.  
  105. public OnPlayerDeath(playerid, killerid, reason)
  106. {
  107. return 1;
  108. }
  109.  
  110. public OnVehicleSpawn(vehicleid)
  111. {
  112. return 1;
  113. }
  114.  
  115. public OnVehicleDeath(vehicleid, killerid)
  116. {
  117. return 1;
  118. }
  119.  
  120. public OnPlayerText(playerid, text[])
  121. {
  122. return 1;
  123. }
  124.  
  125. public OnPlayerCommandText(playerid, cmdtext[])
  126. {
  127. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  128. {
  129. // Do something here
  130. return 1;
  131. }
  132. return 0;
  133. }
  134.  
  135. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  136. {
  137. return 1;
  138. }
  139.  
  140. public OnPlayerExitVehicle(playerid, vehicleid)
  141. {
  142. return 1;
  143. }
  144.  
  145. public OnPlayerStateChange(playerid, newstate, oldstate)
  146. {
  147. return 1;
  148. }
  149.  
  150. public OnPlayerEnterCheckpoint(playerid)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnPlayerLeaveCheckpoint(playerid)
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerEnterRaceCheckpoint(playerid)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnPlayerLeaveRaceCheckpoint(playerid)
  166. {
  167. return 1;
  168. }
  169.  
  170. public OnRconCommand(cmd[])
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnPlayerRequestSpawn(playerid)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnObjectMoved(objectid)
  181. {
  182. return 1;
  183. }
  184.  
  185. public OnPlayerObjectMoved(playerid, objectid)
  186. {
  187. return 1;
  188. }
  189.  
  190. public OnPlayerPickUpPickup(playerid, pickupid)
  191. {
  192. return 1;
  193. }
  194.  
  195. public OnVehicleMod(playerid, vehicleid, componentid)
  196. {
  197. return 1;
  198. }
  199.  
  200. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnPlayerSelectedMenuRow(playerid, row)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnPlayerExitedMenu(playerid)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnRconLoginAttempt(ip[], password[], success)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnPlayerUpdate(playerid)
  236. {
  237. return 1;
  238. }
  239.  
  240. public OnPlayerStreamIn(playerid, forplayerid)
  241. {
  242. return 1;
  243. }
  244.  
  245. public OnPlayerStreamOut(playerid, forplayerid)
  246. {
  247. return 1;
  248. }
  249.  
  250. public OnVehicleStreamIn(vehicleid, forplayerid)
  251. {
  252. return 1;
  253. }
  254.  
  255. public OnVehicleStreamOut(vehicleid, forplayerid)
  256. {
  257. return 1;
  258. }
  259.  
  260. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  261. {
  262. return 1;
  263. }
  264.  
  265. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  266. {
  267. return 1;
  268. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement