Advertisement
Gagi

Untitled

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