Guest User

Untitled

a guest
Jan 15th, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.24 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. //Credits:MaX
  5. #include <a_samp>
  6.  
  7. new Text:S;
  8. new Text:R;
  9. new Text:B;
  10. new Text:Serverporukebox;
  11. new Text:Serverporukelinija;
  12. new Text:Serverporukelinija2;
  13. new Text:Textdraw0;
  14.  
  15. public OnFilterScriptInit()
  16. {
  17. print("\n--------------------------------------");
  18. print(" Blank Filterscript by your name here");
  19. print("--------------------------------------\n");
  20.  
  21. return 1;
  22. }
  23.  
  24. public OnFilterScriptExit()
  25. {
  26.  
  27. return 1;
  28. }
  29.  
  30.  
  31. main()
  32. {
  33. print("\n----------------------------------");
  34. print(" Blank Gamemode by your name here");
  35. print("----------------------------------\n");
  36. }
  37.  
  38.  
  39.  
  40. forward RandomMessage();
  41. new RandomMessages[][] =
  42. {
  43. "~r~Balkan ~b~Zone: ~w~Ukoliko vam treba pomoc koristite /pitaj",
  44. "~r~Balkan ~b~Zone: ~w~Ukoliko vidite citera prijavite ga na /prijaviigraca",
  45. "~r~Balkan ~b~Zone: ~w~Pomoc oko komandi mozete naci na /help",
  46. "~r~Balkan ~b~Zone: ~w~Morate Biti minimalan level 3 da udjete u neku organizaciju.",
  47. "~r~Balkan ~b~Zone: ~w~Koristite GPS da se snadjete u gradu ne smarajte admine!!",
  48. "~r~Balkan ~b~Zone: ~w~Reklamirajte server i postanite Promoter."
  49. };
  50.  
  51. public RandomMessage()
  52. {
  53. TextDrawSetString(Textdraw0, RandomMessages[random(sizeof(RandomMessages))]);
  54. return 1;
  55. }
  56.  
  57. public OnGameModeInit()
  58. {
  59. // Don't use these lines if it's a filterscript
  60. SetGameModeText("proba");
  61. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  62. SetTimer("RandomMessage",10000,1);
  63. /////////////////////textdraw/////////////////////////////////////////////////////
  64. S = TextDrawCreate(2.000000, 10.000000, "S");
  65. TextDrawBackgroundColor(S, 255);
  66. TextDrawFont(S, 1);
  67. TextDrawLetterSize(S, 0.919999, 2.299999);
  68. TextDrawColor(S, -1);
  69. TextDrawUseBox(S, 1);
  70. TextDrawBoxColor(S, -16776961);
  71. TextDrawTextSize(S, 25.000000, 140.000000);
  72.  
  73. R = TextDrawCreate(2.000000, 35.000000, "R");
  74. TextDrawBackgroundColor(R, 255);
  75. TextDrawFont(R, 1);
  76. TextDrawLetterSize(R, 0.919999, 2.299999);
  77. TextDrawColor(R, -1);
  78. TextDrawUseBox(R, 1);
  79. TextDrawBoxColor(R, 65535);
  80. TextDrawTextSize(R, 25.000000, 140.000000);
  81.  
  82. B = TextDrawCreate(2.000000, 60.000000, "B");
  83. TextDrawBackgroundColor(B, 255);
  84. TextDrawFont(B, 1);
  85. TextDrawLetterSize(B, 0.919999, 2.299999);
  86. TextDrawColor(B, -1);
  87. TextDrawUseBox(B, 1);
  88. TextDrawBoxColor(B, -1);
  89. TextDrawTextSize(B, 25.000000, 140.000000);
  90.  
  91. Serverporukebox = TextDrawCreate(2.000000, 427.000000, "a");
  92. TextDrawBackgroundColor(Serverporukebox, 255);
  93. TextDrawFont(Serverporukebox, 1);
  94. TextDrawLetterSize(Serverporukebox, 0.500000, 6.399998);
  95. TextDrawColor(Serverporukebox, -1);
  96. TextDrawUseBox(Serverporukebox, 1);
  97. TextDrawBoxColor(Serverporukebox, 1074589014);
  98. TextDrawTextSize(Serverporukebox, 641.000000, -224.000000);
  99.  
  100. Serverporukelinija = TextDrawCreate(648.000000, 427.000000, ".");
  101. TextDrawBackgroundColor(Serverporukelinija, 255);
  102. TextDrawFont(Serverporukelinija, 1);
  103. TextDrawLetterSize(Serverporukelinija, 0.500000, -0.700000);
  104. TextDrawColor(Serverporukelinija, -1);
  105. TextDrawUseBox(Serverporukelinija, 1);
  106. TextDrawBoxColor(Serverporukelinija, 16711935);
  107. TextDrawTextSize(Serverporukelinija, -3.000000, 104.000000);
  108.  
  109. Serverporukelinija2 = TextDrawCreate(648.000000, 450.000000, ".");
  110. TextDrawBackgroundColor(Serverporukelinija2, 255);
  111. TextDrawFont(Serverporukelinija2, 1);
  112. TextDrawLetterSize(Serverporukelinija2, 0.500000, -0.700000);
  113. TextDrawColor(Serverporukelinija2, -1);
  114. TextDrawUseBox(Serverporukelinija2, 1);
  115. TextDrawBoxColor(Serverporukelinija2, 16711935);
  116. TextDrawTextSize(Serverporukelinija2, -3.000000, 104.000000);
  117.  
  118. Textdraw0 = TextDrawCreate(4.000000, 423.000000, "~r~Balkan ~b~Zone:");
  119. TextDrawBackgroundColor(Textdraw0, 255);
  120. TextDrawFont(Textdraw0, 2);
  121. TextDrawLetterSize(Textdraw0, 0.300000, 2.699999);///na prvo je bilo 5 a na drugo 2
  122. TextDrawColor(Textdraw0, -1);
  123. TextDrawSetOutline(Textdraw0, 1);// 0
  124. TextDrawSetProportional(Textdraw0, 1);
  125. TextDrawSetShadow(Textdraw0, 1);
  126. return 1;
  127. }
  128.  
  129. public OnGameModeExit()
  130. {
  131. return 1;
  132. }
  133.  
  134. public OnPlayerRequestClass(playerid, classid)
  135. {
  136. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  137. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  138. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  139. return 1;
  140. }
  141.  
  142. public OnPlayerConnect(playerid)
  143. {
  144.  
  145. return 1;
  146. }
  147.  
  148. public OnPlayerDisconnect(playerid, reason)
  149. {
  150. return 1;
  151. }
  152.  
  153. public OnPlayerSpawn(playerid)
  154. {
  155. TextDrawShowForPlayer(playerid,S);
  156. TextDrawShowForPlayer(playerid,R);
  157. TextDrawShowForPlayer(playerid,B);
  158. TextDrawShowForPlayer(playerid,Serverporukebox);
  159. TextDrawShowForPlayer(playerid,Serverporukelinija);
  160. TextDrawShowForPlayer(playerid,Serverporukelinija2);
  161. TextDrawShowForPlayer(playerid, Textdraw0);
  162.  
  163.  
  164.  
  165.  
  166. return 1;
  167. }
  168.  
  169. public OnPlayerDeath(playerid, killerid, reason)
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnVehicleSpawn(vehicleid)
  175. {
  176. return 1;
  177. }
  178.  
  179. public OnVehicleDeath(vehicleid, killerid)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnPlayerText(playerid, text[])
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerCommandText(playerid, cmdtext[])
  190. {
  191. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  192. {
  193. // Do something here
  194. return 1;
  195. }
  196. return 0;
  197. }
  198.  
  199. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnPlayerExitVehicle(playerid, vehicleid)
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnPlayerStateChange(playerid, newstate, oldstate)
  210. {
  211. return 1;
  212. }
  213.  
  214. public OnPlayerEnterCheckpoint(playerid)
  215. {
  216. return 1;
  217. }
  218.  
  219. public OnPlayerLeaveCheckpoint(playerid)
  220. {
  221. return 1;
  222. }
  223.  
  224. public OnPlayerEnterRaceCheckpoint(playerid)
  225. {
  226. return 1;
  227. }
  228.  
  229. public OnPlayerLeaveRaceCheckpoint(playerid)
  230. {
  231. return 1;
  232. }
  233.  
  234. public OnRconCommand(cmd[])
  235. {
  236. return 1;
  237. }
  238.  
  239. public OnPlayerRequestSpawn(playerid)
  240. {
  241. return 1;
  242. }
  243.  
  244. public OnObjectMoved(objectid)
  245. {
  246. return 1;
  247. }
  248.  
  249. public OnPlayerObjectMoved(playerid, objectid)
  250. {
  251. return 1;
  252. }
  253.  
  254. public OnPlayerPickUpPickup(playerid, pickupid)
  255. {
  256. return 1;
  257. }
  258.  
  259. public OnVehicleMod(playerid, vehicleid, componentid)
  260. {
  261. return 1;
  262. }
  263.  
  264. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  265. {
  266. return 1;
  267. }
  268.  
  269. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  270. {
  271. return 1;
  272. }
  273.  
  274. public OnPlayerSelectedMenuRow(playerid, row)
  275. {
  276. return 1;
  277. }
  278.  
  279. public OnPlayerExitedMenu(playerid)
  280. {
  281. return 1;
  282. }
  283.  
  284. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  285. {
  286. return 1;
  287. }
  288.  
  289. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  290. {
  291. return 1;
  292. }
  293.  
  294. public OnRconLoginAttempt(ip[], password[], success)
  295. {
  296. return 1;
  297. }
  298.  
  299. public OnPlayerUpdate(playerid)
  300. {
  301. return 1;
  302. }
  303.  
  304. public OnPlayerStreamIn(playerid, forplayerid)
  305. {
  306. return 1;
  307. }
  308.  
  309. public OnPlayerStreamOut(playerid, forplayerid)
  310. {
  311. return 1;
  312. }
  313.  
  314. public OnVehicleStreamIn(vehicleid, forplayerid)
  315. {
  316. return 1;
  317. }
  318.  
  319. public OnVehicleStreamOut(vehicleid, forplayerid)
  320. {
  321. return 1;
  322. }
  323.  
  324. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  325. {
  326. return 1;
  327. }
  328.  
  329. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  330. {
  331. return 1;
  332. }
  333.  
  334. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  335. {
  336.  
  337. return 1;
  338. }
  339. //Credits:MaX
Advertisement
Add Comment
Please, Sign In to add comment