Advertisement
gargy001

Skripta

Jul 24th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.89 KB | None | 0 0
  1. #include <a_samp>
  2. #include <YSI\y_ini>
  3.  
  4. //////////////////////////////////////////////////////////////////////////////// Define
  5. #define PATH "/Korisnici/%s.ini"
  6. //////////////////////////////////////////////////////////////////////////////// New
  7. new Text:Prijava[0][MAX_PLAYERS];
  8. new Text:Prijava[1][MAX_PLAYERS];
  9. new Text:Prijava[2][MAX_PLAYERS];
  10. new Text:Prijava[3][MAX_PLAYERS];
  11. new Text:Prijava[4][MAX_PLAYERS];
  12. new Text:Prijava[5][MAX_PLAYERS];
  13. new Text:Prijava[6][MAX_PLAYERS];
  14. new Text:Prijava[7][MAX_PLAYERS];
  15. new Text:Prijava[8][MAX_PLAYERS];
  16. new Text:Prijava[9][MAX_PLAYERS];
  17. new Text:Prijava[10][MAX_PLAYERS];
  18. new Text:Prijava[11][MAX_PLAYERS];
  19. new Text:registracija[0][MAX_PLAYERS];
  20. new Text:registracija[1][MAX_PLAYERS];
  21. new Text:registracija[2][MAX_PLAYERS];
  22. new Text:registracija[3][MAX_PLAYERS];
  23. new Text:registracija[4][MAX_PLAYERS];
  24. new Text:registracija[5][MAX_PLAYERS];
  25. new Text:registracija[6][MAX_PLAYERS];
  26. new Text:registracija[7][MAX_PLAYERS];
  27. new Text:registracija[8][MAX_PLAYERS];
  28. new Text:registracija[9][MAX_PLAYERS];
  29. new Text:registracija[10][MAX_PLAYERS];
  30. new Text:registracija[11][MAX_PLAYERS];
  31. new Text:registracija[12][MAX_PLAYERS];
  32. new Text:registracija[13][MAX_PLAYERS];
  33. new Text:registracija[14][MAX_PLAYERS];
  34. new Text:registracija[15][MAX_PLAYERS];
  35. ////////////////////////////////////////////////////////////////////////////////
  36. main()
  37. {
  38. print("\n----------------------------------");
  39. print(" Blank Gamemode by your name here");
  40. print("----------------------------------\n");
  41. }
  42. enum pInfo
  43. {
  44. pLozinka,
  45. pNovac,
  46. pAdmin,
  47. pUbistva,
  48. pSmrti
  49. };
  50. new PlayerInfo[MAX_PLAYERS][pInfo];
  51. forward LoadUser_data(playerid,name[],value[]);
  52. public LoadUser_data(playerid,name[],value[])
  53. {
  54. INI_Int("Lozinka",PlayerInfo[playerid][pLozinka]);
  55. INI_Int("Novac",PlayerInfo[playerid][pNovac]);
  56. INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  57. INI_Int("Ubistva",PlayerInfo[playerid][pUbistva]);
  58. INI_Int("Smrti",PlayerInfo[playerid][pSmrti]);
  59. return 1;
  60. }
  61. stock UserPath(playerid)
  62. {
  63. new string[128],playername[MAX_PLAYER_NAME];
  64. GetPlayerName(playerid,playername,sizeof(playername));
  65. format(string,sizeof(string),PATH,playername);
  66. return string;
  67. }
  68. stock udb_hash(buf[])
  69. {
  70. new length=strlen(buf);
  71. new s1 = 1;
  72. new s2 = 0;
  73. new n;
  74. for (n=0; n<length; n++)
  75. {
  76. s1 = (s1 + buf[n]) % 65521;
  77. s2 = (s2 + s1) % 65521;
  78. }
  79. return (s2 << 16) + s1;
  80. }
  81.  
  82. public OnGameModeInit()
  83. {
  84. // Don't use these lines if it's a filterscript
  85. SetGameModeText("Blank Script");
  86. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  87. return 1;
  88. }
  89.  
  90. public OnGameModeExit()
  91. {
  92. return 1;
  93. }
  94.  
  95. public OnPlayerRequestClass(playerid, classid)
  96. {
  97. SetSpawnInfo(playerid, 188, 0, 823.9326,-1341.4829,13.5158,92.8218, 0, 0, 0, 0, 0, 0);// Ovde stavite koordinate svog spawna
  98. SpawnPlayer(playerid);
  99. return 1;
  100. }
  101.  
  102. public OnPlayerConnect(playerid)
  103. {
  104. Prijava[0][playerid] = CreatePlayerTextDraw(playerid, 453.875000, 111.166671, "usebox");
  105. PlayerTextDrawLetterSize(playerid, Prijava[0][playerid], 0.000000, 26.711112);
  106. PlayerTextDrawTextSize(playerid, Prijava[0][playerid], 173.625000, 0.000000);
  107. PlayerTextDrawAlignment(playerid, Prijava[0][playerid], 1);
  108. PlayerTextDrawColor(playerid, Prijava[0][playerid], 0);
  109. PlayerTextDrawUseBox(playerid, Prijava[0][playerid], true);
  110. PlayerTextDrawBoxColor(playerid, Prijava[0][playerid], 102);
  111. PlayerTextDrawSetShadow(playerid, Prijava[0][playerid], 0);
  112. PlayerTextDrawSetOutline(playerid, Prijava[0][playerid], 0);
  113. PlayerTextDrawFont(playerid, Prijava[0][playerid], 0);
  114.  
  115. Prijava[1][playerid] = CreatePlayerTextDraw(playerid, 196.250000, 120.166656, "Crystal");
  116. PlayerTextDrawLetterSize(playerid, Prijava[1][playerid], 0.603124, 2.329165);
  117. PlayerTextDrawAlignment(playerid, Prijava[1][playerid], 1);
  118. PlayerTextDrawColor(playerid, Prijava[1][playerid], -5963521);
  119. PlayerTextDrawSetShadow(playerid, Prijava[1][playerid], 0);
  120. PlayerTextDrawSetOutline(playerid, Prijava[1][playerid], 1);
  121. PlayerTextDrawBackgroundColor(playerid, Prijava[1][playerid], 51);
  122. PlayerTextDrawFont(playerid, Prijava[1][playerid], 3);
  123. PlayerTextDrawSetProportional(playerid, Prijava[1][playerid], 1);
  124.  
  125. Prijava[2][playerid] = CreatePlayerTextDraw(playerid, 287.500000, 120.750000, "life");
  126. PlayerTextDrawLetterSize(playerid, Prijava[2][playerid], 0.598750, 2.095833);
  127. PlayerTextDrawAlignment(playerid, Prijava[2][playerid], 1);
  128. PlayerTextDrawColor(playerid, Prijava[2][playerid], -1);
  129. PlayerTextDrawSetShadow(playerid, Prijava[2][playerid], 0);
  130. PlayerTextDrawSetOutline(playerid, Prijava[2][playerid], 1);
  131. PlayerTextDrawBackgroundColor(playerid, Prijava[2][playerid], 51);
  132. PlayerTextDrawFont(playerid, Prijava[2][playerid], 3);
  133. PlayerTextDrawSetProportional(playerid, Prijava[2][playerid], 1);
  134.  
  135. Prijava[3][playerid] = CreatePlayerTextDraw(playerid, 336.250000, 121.333305, "roleplay");
  136. PlayerTextDrawLetterSize(playerid, Prijava[3][playerid], 0.520000, 1.920833);
  137. PlayerTextDrawAlignment(playerid, Prijava[3][playerid], 1);
  138. PlayerTextDrawColor(playerid, Prijava[3][playerid], -1);
  139. PlayerTextDrawSetShadow(playerid, Prijava[3][playerid], 0);
  140. PlayerTextDrawSetOutline(playerid, Prijava[3][playerid], 1);
  141. PlayerTextDrawBackgroundColor(playerid, Prijava[3][playerid], 51);
  142. PlayerTextDrawFont(playerid, Prijava[3][playerid], 3);
  143. PlayerTextDrawSetProportional(playerid, Prijava[3][playerid], 1);
  144.  
  145. Prijava[4][playerid] = CreatePlayerTextDraw(playerid, 438.250000, 205.666656, "usebox");
  146. PlayerTextDrawLetterSize(playerid, Prijava[4][playerid], 0.000000, 3.572223);
  147. PlayerTextDrawTextSize(playerid, Prijava[4][playerid], 290.500000, 0.000000);
  148. PlayerTextDrawAlignment(playerid, Prijava[4][playerid], 1);
  149. PlayerTextDrawColor(playerid, Prijava[4][playerid], 0);
  150. PlayerTextDrawUseBox(playerid, Prijava[4][playerid], true);
  151. PlayerTextDrawBoxColor(playerid, Prijava[4][playerid], 102);
  152. PlayerTextDrawSetShadow(playerid, Prijava[4][playerid], 0);
  153. PlayerTextDrawSetOutline(playerid, Prijava[4][playerid], 0);
  154. PlayerTextDrawFont(playerid, Prijava[4][playerid], 0);
  155.  
  156. Prijava[5][playerid] = CreatePlayerTextDraw(playerid, 438.250000, 258.166625, "usebox");
  157. PlayerTextDrawLetterSize(playerid, Prijava[5][playerid], 0.000000, 3.507406);
  158. PlayerTextDrawTextSize(playerid, Prijava[5][playerid], 292.375000, 0.000000);
  159. PlayerTextDrawAlignment(playerid, Prijava[5][playerid], 1);
  160. PlayerTextDrawColor(playerid, Prijava[5][playerid], 0);
  161. PlayerTextDrawUseBox(playerid, Prijava[5][playerid], true);
  162. PlayerTextDrawBoxColor(playerid, Prijava[5][playerid], 102);
  163. PlayerTextDrawSetShadow(playerid, Prijava[5][playerid], 0);
  164. PlayerTextDrawSetOutline(playerid, Prijava[5][playerid], 0);
  165. PlayerTextDrawFont(playerid, Prijava[5][playerid], 0);
  166.  
  167. Prijava[6][playerid] = CreatePlayerTextDraw(playerid, 188.687500, 212.800003, "Vase ime :");
  168. PlayerTextDrawLetterSize(playerid, Prijava[6][playerid], 0.449999, 1.600000);
  169. PlayerTextDrawAlignment(playerid, Prijava[6][playerid], 1);
  170. PlayerTextDrawColor(playerid, Prijava[6][playerid], -1);
  171. PlayerTextDrawSetShadow(playerid, Prijava[6][playerid], 0);
  172. PlayerTextDrawSetOutline(playerid, Prijava[6][playerid], 1);
  173. PlayerTextDrawBackgroundColor(playerid, Prijava[6][playerid], 51);
  174. PlayerTextDrawFont(playerid, Prijava[6][playerid], 2);
  175. PlayerTextDrawSetProportional(playerid, Prijava[6][playerid], 1);
  176.  
  177. Prijava[7][playerid] = CreatePlayerTextDraw(playerid, 194.375000, 264.833343, "Lozinka :");
  178. PlayerTextDrawLetterSize(playerid, Prijava[7][playerid], 0.449999, 1.600000);
  179. PlayerTextDrawAlignment(playerid, Prijava[7][playerid], 1);
  180. PlayerTextDrawColor(playerid, Prijava[7][playerid], -1);
  181. PlayerTextDrawSetShadow(playerid, Prijava[7][playerid], 0);
  182. PlayerTextDrawSetOutline(playerid, Prijava[7][playerid], 1);
  183. PlayerTextDrawBackgroundColor(playerid, Prijava[7][playerid], 51);
  184. PlayerTextDrawFont(playerid, Prijava[7][playerid], 2);
  185. PlayerTextDrawSetProportional(playerid, Prijava[7][playerid], 1);
  186.  
  187. Prijava[8][playerid] = CreatePlayerTextDraw(playerid, 365.625000, 215.833343, "John_Smith");
  188. PlayerTextDrawLetterSize(playerid, Prijava[8][playerid], 0.310000, 1.255833);
  189. PlayerTextDrawAlignment(playerid, Prijava[8][playerid], 2);
  190. PlayerTextDrawColor(playerid, Prijava[8][playerid], -1);
  191. PlayerTextDrawSetShadow(playerid, Prijava[8][playerid], 0);
  192. PlayerTextDrawSetOutline(playerid, Prijava[8][playerid], 1);
  193. PlayerTextDrawBackgroundColor(playerid, Prijava[8][playerid], 51);
  194. PlayerTextDrawFont(playerid, Prijava[8][playerid], 3);
  195. PlayerTextDrawSetProportional(playerid, Prijava[8][playerid], 1);
  196.  
  197. Prijava[9][playerid] = CreatePlayerTextDraw(playerid, 367.500000, 268.916625, "Unesi");
  198. PlayerTextDrawLetterSize(playerid, Prijava[9][playerid], 0.334374, 1.104166);
  199. PlayerTextDrawAlignment(playerid, Prijava[9][playerid], 2);
  200. PlayerTextDrawColor(playerid, Prijava[9][playerid], -1);
  201. PlayerTextDrawSetShadow(playerid, Prijava[9][playerid], 0);
  202. PlayerTextDrawSetOutline(playerid, Prijava[9][playerid], 1);
  203. PlayerTextDrawBackgroundColor(playerid, Prijava[9][playerid], 51);
  204. PlayerTextDrawFont(playerid, Prijava[9][playerid], 3);
  205. PlayerTextDrawSetProportional(playerid, Prijava[9][playerid], 1);
  206. PlayerTextDrawSetSelectable(playerid, Prijava[9][playerid], true);
  207.  
  208. Prijava[10][playerid] = CreatePlayerTextDraw(playerid, 274.375000, 317.916656, "Prijava");
  209. PlayerTextDrawLetterSize(playerid, Prijava[10][playerid], 0.449999, 1.600000);
  210. PlayerTextDrawAlignment(playerid, Prijava[10][playerid], 1);
  211. PlayerTextDrawColor(playerid, Prijava[10][playerid], -1);
  212. PlayerTextDrawSetShadow(playerid, Prijava[10][playerid], 0);
  213. PlayerTextDrawSetOutline(playerid, Prijava[10][playerid], 1);
  214. PlayerTextDrawBackgroundColor(playerid, Prijava[10][playerid], 51);
  215. PlayerTextDrawFont(playerid, Prijava[10][playerid], 2);
  216. PlayerTextDrawSetProportional(playerid, Prijava[10][playerid], 1);
  217. PlayerTextDrawSetSelectable(playerid, Prijava[10][playerid], true);
  218.  
  219. Prijava[11][playerid] = CreatePlayerTextDraw(playerid, 383.250000, 303.666687, "usebox");
  220. PlayerTextDrawLetterSize(playerid, Prijava[11][playerid], 0.000000, 4.803701);
  221. PlayerTextDrawTextSize(playerid, Prijava[11][playerid], 248.000000, 0.000000);
  222. PlayerTextDrawAlignment(playerid, Prijava[11][playerid], 1);
  223. PlayerTextDrawColor(playerid, Prijava[11][playerid], 0);
  224. PlayerTextDrawUseBox(playerid, Prijava[11][playerid], true);
  225. PlayerTextDrawBoxColor(playerid, Prijava[11][playerid], 102);
  226. PlayerTextDrawSetShadow(playerid, Prijava[11][playerid], 0);
  227. PlayerTextDrawSetOutline(playerid, Prijava[11][playerid], 0);
  228. PlayerTextDrawFont(playerid, Prijava[11][playerid], 0);
  229.  
  230. egistracija[0][playerid] = CreatePlayerTextDraw(playerid, 252.000000, -5.500000, "usebox");
  231. PlayerTextDrawLetterSize(playerid, registracija[0][playerid], 0.000000, 99.518981);
  232. PlayerTextDrawTextSize(playerid, registracija[0][playerid], -9.375000, 0.000000);
  233. PlayerTextDrawAlignment(playerid, registracija[0][playerid], 1);
  234. PlayerTextDrawColor(playerid, registracija[0][playerid], -208);
  235. PlayerTextDrawUseBox(playerid, registracija[0][playerid], true);
  236. PlayerTextDrawBoxColor(playerid, registracija[0][playerid], 102);
  237. PlayerTextDrawSetShadow(playerid, registracija[0][playerid], 0);
  238. PlayerTextDrawSetOutline(playerid, registracija[0][playerid], 0);
  239. PlayerTextDrawFont(playerid, registracija[0][playerid], 0);
  240.  
  241. registracija[1][playerid] = CreatePlayerTextDraw(playerid, 73.125000, 100.916671, "CRYSTAL");
  242. PlayerTextDrawLetterSize(playerid, registracija[1][playerid], 0.684374, 2.504167);
  243. PlayerTextDrawAlignment(playerid, registracija[1][playerid], 2);
  244. PlayerTextDrawColor(playerid, registracija[1][playerid], -5963521);
  245. PlayerTextDrawSetShadow(playerid, registracija[1][playerid], 0);
  246. PlayerTextDrawSetOutline(playerid, registracija[1][playerid], 0);
  247. PlayerTextDrawBackgroundColor(playerid, registracija[1][playerid], 51);
  248. PlayerTextDrawFont(playerid, registracija[1][playerid], 3);
  249. PlayerTextDrawSetProportional(playerid, registracija[1][playerid], 1);
  250.  
  251. registracija[2][playerid] = CreatePlayerTextDraw(playerid, 145.000000, 101.499961, "LIFE");
  252. PlayerTextDrawLetterSize(playerid, registracija[2][playerid], 0.690625, 2.404999);
  253. PlayerTextDrawAlignment(playerid, registracija[2][playerid], 2);
  254. PlayerTextDrawColor(playerid, registracija[2][playerid], -1);
  255. PlayerTextDrawSetShadow(playerid, registracija[2][playerid], 0);
  256. PlayerTextDrawSetOutline(playerid, registracija[2][playerid], 1);
  257. PlayerTextDrawBackgroundColor(playerid, registracija[2][playerid], 51);
  258. PlayerTextDrawFont(playerid, registracija[2][playerid], 3);
  259. PlayerTextDrawSetProportional(playerid, registracija[2][playerid], 1);
  260.  
  261. registracija[3][playerid] = CreatePlayerTextDraw(playerid, 220.687500, 143.191909, "usebox");
  262. PlayerTextDrawLetterSize(playerid, registracija[3][playerid], 0.000000, 4.671760);
  263. PlayerTextDrawTextSize(playerid, registracija[3][playerid], 19.812500, 0.000000);
  264. PlayerTextDrawAlignment(playerid, registracija[3][playerid], 1);
  265. PlayerTextDrawColor(playerid, registracija[3][playerid], 0);
  266. PlayerTextDrawUseBox(playerid, registracija[3][playerid], true);
  267. PlayerTextDrawBoxColor(playerid, registracija[3][playerid], 102);
  268. PlayerTextDrawSetShadow(playerid, registracija[3][playerid], 0);
  269. PlayerTextDrawSetOutline(playerid, registracija[3][playerid], 0);
  270. PlayerTextDrawFont(playerid, registracija[3][playerid], 0);
  271.  
  272. registracija[4][playerid] = CreatePlayerTextDraw(playerid, 220.750000, 197.499923, "usebox");
  273. PlayerTextDrawLetterSize(playerid, registracija[4][playerid], 0.000000, 4.613887);
  274. PlayerTextDrawTextSize(playerid, registracija[4][playerid], 19.875000, 0.000000);
  275. PlayerTextDrawAlignment(playerid, registracija[4][playerid], 1);
  276. PlayerTextDrawColor(playerid, registracija[4][playerid], 0);
  277. PlayerTextDrawUseBox(playerid, registracija[4][playerid], true);
  278. PlayerTextDrawBoxColor(playerid, registracija[4][playerid], 102);
  279. PlayerTextDrawSetShadow(playerid, registracija[4][playerid], 0);
  280. PlayerTextDrawSetOutline(playerid, registracija[4][playerid], 0);
  281. PlayerTextDrawFont(playerid, registracija[4][playerid], 1);
  282.  
  283. registracija[5][playerid] = CreatePlayerTextDraw(playerid, 122.500000, 158.083389, "Lozinka");
  284. PlayerTextDrawLetterSize(playerid, registracija[5][playerid], 0.299998, 1.191666);
  285. PlayerTextDrawAlignment(playerid, registracija[5][playerid], 2);
  286. PlayerTextDrawColor(playerid, registracija[5][playerid], -1);
  287. PlayerTextDrawSetShadow(playerid, registracija[5][playerid], 0);
  288. PlayerTextDrawSetOutline(playerid, registracija[5][playerid], 1);
  289. PlayerTextDrawBackgroundColor(playerid, registracija[5][playerid], 51);
  290. PlayerTextDrawFont(playerid, registracija[5][playerid], 2);
  291. PlayerTextDrawSetProportional(playerid, registracija[5][playerid], 1);
  292. PlayerTextDrawSetSelectable(playerid, registracija[5][playerid], true);
  293.  
  294. registracija[6][playerid] = CreatePlayerTextDraw(playerid, 122.499984, 208.833328, "MAIL");
  295. PlayerTextDrawLetterSize(playerid, registracija[6][playerid], 0.299997, 1.191666);
  296. PlayerTextDrawAlignment(playerid, registracija[6][playerid], 2);
  297. PlayerTextDrawColor(playerid, registracija[6][playerid], -1);
  298. PlayerTextDrawSetShadow(playerid, registracija[6][playerid], 0);
  299. PlayerTextDrawSetOutline(playerid, registracija[6][playerid], 1);
  300. PlayerTextDrawBackgroundColor(playerid, registracija[6][playerid], 51);
  301. PlayerTextDrawFont(playerid, registracija[6][playerid], 2);
  302. PlayerTextDrawSetProportional(playerid, registracija[6][playerid], 1);
  303. PlayerTextDrawSetSelectable(playerid, registracija[6][playerid], true);
  304.  
  305. registracija[7][playerid] = CreatePlayerTextDraw(playerid, 220.750000, 251.749832, "usebox");
  306. PlayerTextDrawLetterSize(playerid, registracija[7][playerid], 0.000000, 4.544445);
  307. PlayerTextDrawTextSize(playerid, registracija[7][playerid], 20.500000, 0.000000);
  308. PlayerTextDrawAlignment(playerid, registracija[7][playerid], 1);
  309. PlayerTextDrawColor(playerid, registracija[7][playerid], 0);
  310. PlayerTextDrawUseBox(playerid, registracija[7][playerid], true);
  311. PlayerTextDrawBoxColor(playerid, registracija[7][playerid], 102);
  312. PlayerTextDrawSetShadow(playerid, registracija[7][playerid], 0);
  313. PlayerTextDrawSetOutline(playerid, registracija[7][playerid], 0);
  314. PlayerTextDrawFont(playerid, registracija[7][playerid], 0);
  315.  
  316. registracija[8][playerid] = CreatePlayerTextDraw(playerid, 122.500000, 264.250000, "godine");
  317. PlayerTextDrawLetterSize(playerid, registracija[8][playerid], 0.299997, 1.191666);
  318. PlayerTextDrawAlignment(playerid, registracija[8][playerid], 2);
  319. PlayerTextDrawColor(playerid, registracija[8][playerid], -1);
  320. PlayerTextDrawSetShadow(playerid, registracija[8][playerid], 0);
  321. PlayerTextDrawSetOutline(playerid, registracija[8][playerid], 1);
  322. PlayerTextDrawBackgroundColor(playerid, registracija[8][playerid], 51);
  323. PlayerTextDrawFont(playerid, registracija[8][playerid], 2);
  324. PlayerTextDrawSetProportional(playerid, registracija[8][playerid], 1);
  325. PlayerTextDrawSetSelectable(playerid, registracija[8][playerid], true);
  326.  
  327. registracija[9][playerid] = CreatePlayerTextDraw(playerid, 220.750000, 306.583709, "usebox");
  328. PlayerTextDrawLetterSize(playerid, registracija[9][playerid], 0.000000, 4.477316);
  329. PlayerTextDrawTextSize(playerid, registracija[9][playerid], 20.500000, 0.000000);
  330. PlayerTextDrawAlignment(playerid, registracija[9][playerid], 1);
  331. PlayerTextDrawColor(playerid, registracija[9][playerid], 0);
  332. PlayerTextDrawUseBox(playerid, registracija[9][playerid], true);
  333. PlayerTextDrawBoxColor(playerid, registracija[9][playerid], 102);
  334. PlayerTextDrawSetShadow(playerid, registracija[9][playerid], 0);
  335. PlayerTextDrawSetOutline(playerid, registracija[9][playerid], 0);
  336. PlayerTextDrawFont(playerid, registracija[9][playerid], 0);
  337.  
  338. registracija[10][playerid] = CreatePlayerTextDraw(playerid, 122.500000, 318.500000, "Pol");
  339. PlayerTextDrawLetterSize(playerid, registracija[10][playerid], 0.299997, 1.191666);
  340. PlayerTextDrawAlignment(playerid, registracija[10][playerid], 2);
  341. PlayerTextDrawColor(playerid, registracija[10][playerid], -1);
  342. PlayerTextDrawSetShadow(playerid, registracija[10][playerid], -1);
  343. PlayerTextDrawSetOutline(playerid, registracija[10][playerid], 0);
  344. PlayerTextDrawBackgroundColor(playerid, registracija[10][playerid], 51);
  345. PlayerTextDrawFont(playerid, registracija[10][playerid], 2);
  346. PlayerTextDrawSetProportional(playerid, registracija[10][playerid], 1);
  347. PlayerTextDrawSetSelectable(playerid, registracija[10][playerid], true);
  348.  
  349. registracija[11][playerid] = CreatePlayerTextDraw(playerid, 220.750000, 362.000305, "usebox");
  350. PlayerTextDrawLetterSize(playerid, registracija[11][playerid], 0.000000, 4.412498);
  351. PlayerTextDrawTextSize(playerid, registracija[11][playerid], 20.500000, 0.000000);
  352. PlayerTextDrawAlignment(playerid, registracija[11][playerid], 1);
  353. PlayerTextDrawColor(playerid, registracija[11][playerid], 0);
  354. PlayerTextDrawUseBox(playerid, registracija[11][playerid], true);
  355. PlayerTextDrawBoxColor(playerid, registracija[11][playerid], 102);
  356. PlayerTextDrawSetShadow(playerid, registracija[11][playerid], 0);
  357. PlayerTextDrawSetOutline(playerid, registracija[11][playerid], 0);
  358. PlayerTextDrawFont(playerid, registracija[11][playerid], 0);
  359. PlayerTextDrawSetSelectable(playerid, registracija[11][playerid], true);
  360.  
  361. registracija[12][playerid] = CreatePlayerTextDraw(playerid, 122.500000, 377.416717, "Drzava");
  362. PlayerTextDrawLetterSize(playerid, registracija[12][playerid], 0.299997, 1.191666);
  363. PlayerTextDrawAlignment(playerid, registracija[12][playerid], 2);
  364. PlayerTextDrawColor(playerid, registracija[12][playerid], -1);
  365. PlayerTextDrawSetShadow(playerid, registracija[12][playerid], 0);
  366. PlayerTextDrawSetOutline(playerid, registracija[12][playerid], 1);
  367. PlayerTextDrawBackgroundColor(playerid, registracija[12][playerid], 51);
  368. PlayerTextDrawFont(playerid, registracija[12][playerid], 2);
  369. PlayerTextDrawSetProportional(playerid, registracija[12][playerid], 1);
  370. PlayerTextDrawSetSelectable(playerid, registracija[12][playerid], true);
  371.  
  372. registracija[13][playerid] = CreatePlayerTextDraw(playerid, 645.125000, 408.666748, "usebox");
  373. PlayerTextDrawLetterSize(playerid, registracija[13][playerid], 0.000000, 6.488887);
  374. PlayerTextDrawTextSize(playerid, registracija[13][playerid], 533.000000, 0.000000);
  375. PlayerTextDrawAlignment(playerid, registracija[13][playerid], 1);
  376. PlayerTextDrawColor(playerid, registracija[13][playerid], 0);
  377. PlayerTextDrawUseBox(playerid, registracija[13][playerid], true);
  378. PlayerTextDrawBoxColor(playerid, registracija[13][playerid], 102);
  379. PlayerTextDrawSetShadow(playerid, registracija[13][playerid], 0);
  380. PlayerTextDrawSetOutline(playerid, registracija[13][playerid], 0);
  381. PlayerTextDrawFont(playerid, registracija[13][playerid], 0);
  382.  
  383. registracija[14][playerid] = CreatePlayerTextDraw(playerid, 592.500000, 421.166595, "Nastavi");
  384. PlayerTextDrawLetterSize(playerid, registracija[14][playerid], 0.449999, 1.600000);
  385. PlayerTextDrawAlignment(playerid, registracija[14][playerid], 2);
  386. PlayerTextDrawColor(playerid, registracija[14][playerid], -1);
  387. PlayerTextDrawSetShadow(playerid, registracija[14][playerid], 0);
  388. PlayerTextDrawSetOutline(playerid, registracija[14][playerid], 1);
  389. PlayerTextDrawBackgroundColor(playerid, registracija[14][playerid], 51);
  390. PlayerTextDrawFont(playerid, registracija[14][playerid], 2);
  391. PlayerTextDrawSetProportional(playerid, registracija[14][playerid], 1);
  392. PlayerTextDrawSetSelectable(playerid, registracija[14][playerid], true);
  393.  
  394. registracija[15][playerid] = CreatePlayerTextDraw(playerid, 173.750000, 93.916618, "X1 v2");
  395. PlayerTextDrawLetterSize(playerid, registracija[15][playerid], 0.252499, 1.215000);
  396. PlayerTextDrawAlignment(playerid, registracija[15][playerid], 1);
  397. PlayerTextDrawColor(playerid, registracija[15][playerid], -5963521);
  398. PlayerTextDrawSetShadow(playerid, registracija[15][playerid], 0);
  399. PlayerTextDrawSetOutline(playerid, registracija[15][playerid], 1);
  400. PlayerTextDrawBackgroundColor(playerid, registracija[15][playerid], 51);
  401. PlayerTextDrawFont(playerid, registracija[15][playerid], 3);
  402. PlayerTextDrawSetProportional(playerid, registracija[15][playerid], 1);
  403. if(fexist(UserPath(playerid)))
  404. {
  405. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  406. PlayerTextDrawShow(playerid,Prijava[0][playerid]);
  407. PlayerTextDrawShow(playerid,Prijava[1][playerid]);
  408. PlayerTextDrawShow(playerid,Prijava[2][playerid]);
  409. PlayerTextDrawShow(playerid,Prijava[3][playerid]);
  410. PlayerTextDrawShow(playerid,Prijava[4][playerid]);
  411. PlayerTextDrawShow(playerid,Prijava[5][playerid]);
  412. PlayerTextDrawShow(playerid,Prijava[6][playerid]);
  413. PlayerTextDrawShow(playerid,Prijava[7][playerid]);
  414. PlayerTextDrawShow(playerid,Prijava[8][playerid]);
  415. PlayerTextDrawShow(playerid,Prijava[9][playerid]);
  416. PlayerTextDrawShow(playerid,Prijava[10][playerid]);
  417. PlayerTextDrawShow(playerid,Prijava[11][playerid]);
  418. SelectTextDraw(playerid, 0xA3B4C5FF);
  419. }
  420. else
  421. {
  422. PlayerTextDrawShow(playerid,registracija[0][playerid]);
  423. PlayerTextDrawShow(playerid,registracija[1][playerid]);
  424. PlayerTextDrawShow(playerid,registracija[2][playerid]);
  425. PlayerTextDrawShow(playerid,registracija[3][playerid]);
  426. PlayerTextDrawShow(playerid,registracija[4][playerid]);
  427. PlayerTextDrawShow(playerid,registracija[5][playerid]);
  428. PlayerTextDrawShow(playerid,registracija[6][playerid]);
  429. PlayerTextDrawShow(playerid,registracija[7][playerid]);
  430. PlayerTextDrawShow(playerid,registracija[8][playerid]);
  431. PlayerTextDrawShow(playerid,registracija[9][playerid]);
  432. PlayerTextDrawShow(playerid,registracija[10][playerid]);
  433. PlayerTextDrawShow(playerid,registracija[11][playerid]);
  434. PlayerTextDrawShow(playerid,registracija[12][playerid]);
  435. PlayerTextDrawShow(playerid,registracija[13][playerid]);
  436. PlayerTextDrawShow(playerid,registracija[14][playerid]);
  437. PlayerTextDrawShow(playerid,registracija[15][playerid]);
  438. SelectTextDraw(playerid, 0xA3B4C5FF);
  439. }
  440. return 1;
  441. }
  442.  
  443. public OnPlayerDisconnect(playerid, reason)
  444. {
  445. return 1;
  446. }
  447.  
  448. public OnPlayerSpawn(playerid)
  449. {
  450. PlayerTextDrawHide{playerid, PlayerText:Prijava[0][playerid]);
  451. PlayerTextDrawHide{playerid, PlayerText:Prijava[1][playerid]);
  452. PlayerTextDrawHide{playerid, PlayerText:Prijava[2][playerid]);
  453. PlayerTextDrawHide{playerid, PlayerText:Prijava[3][playerid]);
  454. PlayerTextDrawHide{playerid, PlayerText:Prijava[4][playerid]);
  455. PlayerTextDrawHide{playerid, PlayerText:Prijava[5][playerid]);
  456. PlayerTextDrawHide{playerid, PlayerText:Prijava[6][playerid]);
  457. PlayerTextDrawHide{playerid, PlayerText:Prijava[7][playerid]);
  458. PlayerTextDrawHide{playerid, PlayerText:Prijava[8][playerid]);
  459. PlayerTextDrawHide{playerid, PlayerText:Prijava[9][playerid]);
  460. PlayerTextDrawHide{playerid, PlayerText:Prijava[10][playerid]);
  461. PlayerTextDrawHide{playerid, PlayerText:Prijava[11][playerid]);
  462. PlayerTextDrawHide{playerid, PlayerText:registracija[0][playerid]);
  463. PlayerTextDrawHide{playerid, PlayerText:registracija[1][playerid]);
  464. PlayerTextDrawHide{playerid, PlayerText:registracija[2][playerid]);
  465. PlayerTextDrawHide{playerid, PlayerText:registracija[3][playerid]);
  466. PlayerTextDrawHide{playerid, PlayerText:registracija[4][playerid]);
  467. PlayerTextDrawHide{playerid, PlayerText:registracija[5][playerid]);
  468. PlayerTextDrawHide{playerid, PlayerText:registracija[6][playerid]);
  469. PlayerTextDrawHide{playerid, PlayerText:registracija[7][playerid]);
  470. PlayerTextDrawHide{playerid, PlayerText:registracija[8][playerid]);
  471. PlayerTextDrawHide{playerid, PlayerText:registracija[9][playerid]);
  472. PlayerTextDrawHide{playerid, PlayerText:registracija[10][playerid]);
  473. PlayerTextDrawHide{playerid, PlayerText:registracija[11][playerid]);
  474. PlayerTextDrawHide{playerid, PlayerText:registracija[12][playerid]);
  475. PlayerTextDrawHide{playerid, PlayerText:registracija[13][playerid]);
  476. PlayerTextDrawHide{playerid, PlayerText:registracija[14][playerid]);
  477. PlayerTextDrawHide{playerid, PlayerText:registracija[15][playerid]);
  478. return 1;
  479. }
  480.  
  481. public OnPlayerDeath(playerid, killerid, reason)
  482. {
  483. return 1;
  484. }
  485.  
  486. public OnVehicleSpawn(vehicleid)
  487. {
  488. return 1;
  489. }
  490.  
  491. public OnVehicleDeath(vehicleid, killerid)
  492. {
  493. return 1;
  494. }
  495.  
  496. public OnPlayerText(playerid, text[])
  497. {
  498. return 1;
  499. }
  500.  
  501. public OnPlayerCommandText(playerid, cmdtext[])
  502. {
  503. return 0;
  504. }
  505.  
  506. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  507. {
  508. return 1;
  509. }
  510.  
  511. public OnPlayerExitVehicle(playerid, vehicleid)
  512. {
  513. return 1;
  514. }
  515.  
  516. public OnPlayerStateChange(playerid, newstate, oldstate)
  517. {
  518. return 1;
  519. }
  520.  
  521. public OnPlayerEnterCheckpoint(playerid)
  522. {
  523. return 1;
  524. }
  525.  
  526. public OnPlayerLeaveCheckpoint(playerid)
  527. {
  528. return 1;
  529. }
  530.  
  531. public OnPlayerEnterRaceCheckpoint(playerid)
  532. {
  533. return 1;
  534. }
  535.  
  536. public OnPlayerLeaveRaceCheckpoint(playerid)
  537. {
  538. return 1;
  539. }
  540.  
  541. public OnRconCommand(cmd[])
  542. {
  543. return 1;
  544. }
  545.  
  546. public OnPlayerRequestSpawn(playerid)
  547. {
  548. return 1;
  549. }
  550.  
  551. public OnObjectMoved(objectid)
  552. {
  553. return 1;
  554. }
  555.  
  556. public OnPlayerObjectMoved(playerid, objectid)
  557. {
  558. return 1;
  559. }
  560.  
  561. public OnPlayerPickUpPickup(playerid, pickupid)
  562. {
  563. return 1;
  564. }
  565.  
  566. public OnVehicleMod(playerid, vehicleid, componentid)
  567. {
  568. return 1;
  569. }
  570.  
  571. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  572. {
  573. return 1;
  574. }
  575.  
  576. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  577. {
  578. return 1;
  579. }
  580.  
  581. public OnPlayerSelectedMenuRow(playerid, row)
  582. {
  583. return 1;
  584. }
  585.  
  586. public OnPlayerExitedMenu(playerid)
  587. {
  588. return 1;
  589. }
  590.  
  591. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  592. {
  593. return 1;
  594. }
  595.  
  596. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  597. {
  598. return 1;
  599. }
  600.  
  601. public OnRconLoginAttempt(ip[], password[], success)
  602. {
  603. return 1;
  604. }
  605.  
  606. public OnPlayerUpdate(playerid)
  607. {
  608. return 1;
  609. }
  610.  
  611. public OnPlayerStreamIn(playerid, forplayerid)
  612. {
  613. return 1;
  614. }
  615.  
  616. public OnPlayerStreamOut(playerid, forplayerid)
  617. {
  618. return 1;
  619. }
  620.  
  621. public OnVehicleStreamIn(vehicleid, forplayerid)
  622. {
  623. return 1;
  624. }
  625.  
  626. public OnVehicleStreamOut(vehicleid, forplayerid)
  627. {
  628. return 1;
  629. }
  630.  
  631. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  632. {
  633. return 1;
  634. }
  635.  
  636. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  637. {
  638. return 1;
  639. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement