Guest User

Untitled

a guest
Oct 29th, 2011
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.84 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new TogDistrict;
  4.  
  5.  
  6.  
  7. #define TEAM_HIT_COLOR 0xFFFFFF00
  8. #define BOJA_NARANCASTA 0xFF7700AA
  9. #define BOJA_BILA 0xFFFFFFAA
  10. #define COLOR_GRAD2 0xBFC0C2FF
  11. #define COLOR_LIGHTRED 0xFF6347AA
  12. #define COLOR_LIGHTBLUE 0x33CCFFAA
  13.  
  14. #if defined FILTERSCRIPT
  15.  
  16.  
  17.  
  18. public OnFilterScriptInit()
  19. {
  20. print("\n--------------------------------------");
  21. print(" Blank Filterscript by your name here");
  22. print("--------------------------------------\n");
  23. return 1;
  24. }
  25.  
  26. public OnFilterScriptExit()
  27. {
  28. return 1;
  29. }
  30.  
  31. #else
  32.  
  33. main()
  34. {
  35. print("\n----------------------------------");
  36. print(" Blank Gamemode by your name here");
  37. print("----------------------------------\n");
  38. }
  39.  
  40. #endif
  41.  
  42. public OnGameModeInit()
  43. {
  44. return 1;
  45. }
  46.  
  47. public OnGameModeExit()
  48. {
  49. return 1;
  50. }
  51.  
  52. public OnPlayerRequestClass(playerid, classid)
  53. {
  54. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  55. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  56. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  57. return 1;
  58. }
  59.  
  60. public OnPlayerConnect(playerid)
  61. {
  62. return 1;
  63. }
  64.  
  65. public OnPlayerDisconnect(playerid, reason)
  66. {
  67. return 1;
  68. }
  69.  
  70. public OnPlayerSpawn(playerid)
  71. {
  72. return 1;
  73. }
  74.  
  75. public OnPlayerDeath(playerid, killerid, reason)
  76. {
  77. SetPlayerColor(playerid, COLOR_GRAD2);
  78. return 1;
  79. }
  80.  
  81. public OnVehicleSpawn(vehicleid)
  82. {
  83. return 1;
  84. }
  85.  
  86. public OnVehicleDeath(vehicleid, killerid)
  87. {
  88. return 1;
  89. }
  90.  
  91. public OnPlayerText(playerid, text[])
  92. {
  93. return 1;
  94. }
  95.  
  96. public OnPlayerCommandText(playerid, cmdtext[])
  97. {
  98. if(strcmp("/districtoff", cmdtext, true, 10) == 0)
  99. {
  100. if(IsPlayerAdmin(playerid))
  101. {
  102. for(new i=0; i < MAX_PLAYERS; i++)
  103. {
  104. if(IsPlayerConnected(i))
  105. {
  106. TogDistrict = 0;
  107. }
  108. }
  109. }
  110. return 1;
  111. }
  112. if(strcmp("/districton", cmdtext, true, 10) == 0)
  113. {
  114. if(IsPlayerAdmin(playerid))
  115. {
  116. TogDistrict = 1;
  117. SendClientMessageToAll(BOJA_NARANCASTA, "DISTRICT: Server je aktivirao District. Molimo utipkajte /district da se pridruzite.");
  118. }
  119. return 1;
  120. }
  121. if (strcmp("/districtcount", cmdtext, true, 10) == 0)
  122. {
  123. if(IsPlayerAdmin(playerid))
  124. {
  125. TogDistrict = 0;
  126. SetTimer("district", 1000, 0);
  127. SetTimer("district1", 2000, 0);
  128. SetTimer("district2", 3000, 0);
  129. SetTimer("district3", 4000, 0);
  130. }
  131. return 1;
  132. }
  133. if (strcmp("/district", cmdtext, true, 10) == 0)
  134. {
  135. if(TogDistrict == 1)
  136. {
  137. TogglePlayerControllable(playerid,0);
  138. SetPlayerInterior(playerid, 0);
  139. GivePlayerWeapon(playerid, 31, 450);
  140. GivePlayerWeapon(playerid, 24, 200);
  141. GivePlayerWeapon(playerid, 25, 200);
  142. SetPlayerHealth(playerid, 100);
  143. SetPlayerArmour(playerid, 100);
  144.  
  145. new var = random(1);
  146. switch (var)
  147. {
  148. case 0:{ SetPlayerPos(playerid, 2502.9434,-6515.5977,5.0418); ResetPlayerWeapons(playerid); SetPlayerColor(playerid, COLOR_LIGHTRED); SetPlayerSkin(playerid, 143);}
  149. case 1:{SetPlayerPos(playerid, 2528.0913,-6400.8398,5.0418); ResetPlayerWeapons(playerid); SetPlayerColor(playerid, COLOR_LIGHTBLUE); SetPlayerSkin(playerid, 121);}
  150. }
  151. }
  152.  
  153. return 1;
  154. }
  155. return 0;
  156. }
  157.  
  158. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  159. {
  160. return 1;
  161. }
  162.  
  163. public OnPlayerExitVehicle(playerid, vehicleid)
  164. {
  165. return 1;
  166. }
  167.  
  168. public OnPlayerStateChange(playerid, newstate, oldstate)
  169. {
  170. return 1;
  171. }
  172.  
  173. public OnPlayerEnterCheckpoint(playerid)
  174. {
  175. return 1;
  176. }
  177.  
  178. public OnPlayerLeaveCheckpoint(playerid)
  179. {
  180. return 1;
  181. }
  182.  
  183. public OnPlayerEnterRaceCheckpoint(playerid)
  184. {
  185. return 1;
  186. }
  187.  
  188. public OnPlayerLeaveRaceCheckpoint(playerid)
  189. {
  190. return 1;
  191. }
  192.  
  193. public OnRconCommand(cmd[])
  194. {
  195. return 1;
  196. }
  197.  
  198. public OnPlayerRequestSpawn(playerid)
  199. {
  200. return 1;
  201. }
  202.  
  203. public OnObjectMoved(objectid)
  204. {
  205. return 1;
  206. }
  207.  
  208. public OnPlayerObjectMoved(playerid, objectid)
  209. {
  210. return 1;
  211. }
  212.  
  213. public OnPlayerPickUpPickup(playerid, pickupid)
  214. {
  215. return 1;
  216. }
  217.  
  218. public OnVehicleMod(playerid, vehicleid, componentid)
  219. {
  220. return 1;
  221. }
  222.  
  223. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  224. {
  225. return 1;
  226. }
  227.  
  228. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  229. {
  230. return 1;
  231. }
  232.  
  233. public OnPlayerSelectedMenuRow(playerid, row)
  234. {
  235. return 1;
  236. }
  237.  
  238. public OnPlayerExitedMenu(playerid)
  239. {
  240. return 1;
  241. }
  242.  
  243. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  244. {
  245. return 1;
  246. }
  247.  
  248. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  249. {
  250. return 1;
  251. }
  252.  
  253. public OnRconLoginAttempt(ip[], password[], success)
  254. {
  255. return 1;
  256. }
  257.  
  258. public OnPlayerUpdate(playerid)
  259. {
  260. return 1;
  261. }
  262.  
  263. public OnPlayerStreamIn(playerid, forplayerid)
  264. {
  265. return 1;
  266. }
  267.  
  268. public OnPlayerStreamOut(playerid, forplayerid)
  269. {
  270. return 1;
  271. }
  272.  
  273. public OnVehicleStreamIn(vehicleid, forplayerid)
  274. {
  275. return 1;
  276. }
  277.  
  278. public OnVehicleStreamOut(vehicleid, forplayerid)
  279. {
  280. return 1;
  281. }
  282.  
  283. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  284. {
  285. return 1;
  286. }
  287.  
  288. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  289. {
  290. return 1;
  291. }
  292. forward district(playerid);
  293. forward district1(playerid);
  294. forward district2(playerid);
  295. forward district3(playerid);
  296.  
  297. public district(playerid)
  298. {
  299. GameTextForAll("~w~3",2000,3);
  300. PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
  301. return 1;
  302. }
  303.  
  304. public district1(playerid)
  305. {
  306. GameTextForAll("~w~2",2000,3);
  307. PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
  308. return 1;
  309. }
  310.  
  311. public district2(playerid)
  312. {
  313. GameTextForAll("~w~1",2000,3);
  314. PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
  315. return 1;
  316. }
  317.  
  318. public district3(playerid)
  319. {
  320. for(new i=0; i < MAX_PLAYERS; i++)
  321. {
  322. GameTextForAll("~r~GO! GO! GO!",3000,3);
  323. TogglePlayerControllable(i,1);
  324. PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  325. }
  326. {
  327. SendClientMessageToAll(BOJA_NARANCASTA, "DISTRICT: Server je startao District event.Krenite u borbu (plavi vs crveni / crveni vs plavi).");
  328. }
  329. return 1;
  330. }
  331.  
  332.  
Advertisement
Add Comment
Please, Sign In to add comment