MilosKrkeljas

Login/Register

Jun 9th, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 109.21 KB | None | 0 0
  1. //---------------------------( INCLUDE )----------------------------------------
  2. #include < a_samp >
  3. #include < a_objects >
  4. #include < core >
  5. #include < float >
  6. #include < time >
  7. #include < morphinc >
  8. #include < file >
  9. #include < foreach >
  10. #include < streamer >
  11. #include < YSI\y_ini >
  12. #include < YSI\y_commands >
  13. //---------------------------( IGRACI )-----------------------------------------
  14. #undef MAX_PLAYERS
  15. #define MAX_PLAYERS 150
  16. //---------------------------( TABSIZE )----------------------------------------
  17. #pragma tabsize 0
  18. //---------------------------( BOJE )-------------------------------------------
  19. #define BELA "{FFFFFF}"
  20. #define ZELENA "{6EF83C}"
  21. #define CRVENA "{F81414}"
  22. #define ZUTA "{F3FF02}"
  23. #define ORANGE "{FFAF00}"
  24. #define SPLAVA "{00C0FF}"
  25. #define ZPLAVA "{22C7F5}"
  26. #define PLAVA "{0049FF}"
  27. #define TPLAVA "{1A94E6}"
  28. #define ROZA "{FF00EA}"
  29. #define CMDC "{B8FF02}"
  30. #define SERVER "{AFE7FF}"
  31. #define SZELENA "{C9FFAB}"
  32. #define LJUB "{EE11EE}"
  33. #define SIVA "{C0C0C0}"
  34. #define CRVENA2 "{FF6347}"
  35. #define PPLAVA "{0084e3}"
  36. #define SCRV2 "{FF6347}"
  37. #define BALLASC "{D1345B}"
  38. #define HZELENA "{04CC29}"
  39. #define ZUTA2 "{FFCC00}"
  40. #define SVETLOCRVENA "{F23A0D}"
  41. #define ZUTA3 "{FBE204}"
  42. #define BELKASTA "{FFF1AF}"
  43. #define COLOR_WHITE 0xFFFFFFAA
  44. #define GROVE 0x00D900C8
  45. #define AZUTA 0xFFC801C8
  46. #define BELA2 0xFFFFFFAA
  47. #define PROX 0xC2A2DAAA
  48. #define SCRVENA 0xFF6347AA
  49. #define COLOR_GRAD2 0xBFC0C2FF
  50. #define TEAM_HIT_COLOR 0xFFFFFF00
  51. #define COLOR_YELLOW 0xDABB3EAA
  52. #define COLOR_BLACK 0x000000FF
  53. #define COLOR_BLUE 0x0066FFFF
  54. #define PURPLE1 0xF9B7FFAA
  55. #define PURPLE2 0xE6A9ECAA
  56. #define PURPLE3 0xC38EC7AA
  57. #define PURPLE4 0xD2B9D3AA
  58. #define PURPLE5 0xC6AEC7AA
  59. //----------------------------( EVENT BOJE )------------------------------------
  60. #define COLOR_RED 0xAA3333AA
  61. #define COLOR_LIGHTRED 0xFF6347AA
  62. #define SVIJETLOPLAVA 0x33CCFFAA
  63. #define COLOR_WHITE 0xFFFFFFAA
  64. #define COL_NARANDZASTA 0xFF9933FF
  65. //---------------------------( PODESAVANJA )------------------------------------
  66. #define BAN_FOLDER "Banovani/%s.ini"
  67. #define SCM SendClientMessage
  68. #define SCMTA SendClientMessageToAll
  69. #define IPI INVALID_PLAYER_ID
  70. #define MIN_DUZINA_LOZINKE 6
  71. #define MAX_DUZINA_LOZINKE 14
  72. #define MAX_VOZILA 1000
  73. //---------------------------( SKRACENICE )-------------------------------------
  74. #define SCM SendClientMessage
  75. #define SCMTA SendClientMessageToAll
  76. #define SPD ShowPlayerDialog
  77. #define DSL DIALOG_STYLE_LIST
  78. #define DSB DIALOG_STYLE_MSGBOX
  79. #define DSI DIALOG_STYLE_INPUT
  80. #define PI PlayerInfo
  81. //---------------------------( DIALOZI )----------------------------------------
  82. #define DIALOG_REGISTER 1
  83. #define DIALOG_LOGIN 2
  84. #define REGLOG_PRAVILA 3
  85. #define PRAVILA 4
  86. #define DIALOG_PSPAWN 5
  87. #define DIALOG_SPODESAVANJA 6
  88. #define DIALOG_BANSTATUS 7
  89. #define DIALOG_RPIME 8
  90. ///////////////////////////////////////////////////
  91. //---------------------------( SPAWNOVI )---------------------------------------
  92. #define SPAWN_NORMAL 0
  93. //---------------------------( PlayerInfo )-------------------------------------
  94. #define KORISNICI "Korisnici/%s.ini"
  95. enum pInfo
  96. {
  97. pPass,
  98. pNovacDzep,
  99. pAdmin,
  100. pSupporter,
  101. pLevel,
  102. pSkin,
  103. pGodine,
  104. pDrzava,
  105. pSex,
  106. pTutorial,
  107. pEmail[128],
  108. pNovacBanka,
  109. pExp,
  110. pSatiIgre,
  111. pProveraSpawna,
  112. pBorbeniStil
  113. }
  114. new PlayerInfo[MAX_PLAYERS][pInfo];
  115. ///////////////////////////////////////////
  116. ////////////////////////////////////////////
  117. #define SERVER_FILE "Server/Podesavanja.ini"
  118. enum Server
  119. {
  120. isRegistracija
  121. };
  122. new ServerInfo[Server];
  123. ///////////////////////////////////////////////////
  124. ///////////////////////////////////
  125. new Float:HeltiIgraca[MAX_PLAYERS];
  126. //-------------( FAJOVI )--------------
  127. /////////////////////////////
  128. new TutorialTimer[MAX_PLAYERS];
  129. new TutorialTimer2[MAX_PLAYERS];
  130. new TutorialTimer3[MAX_PLAYERS];
  131. new TutorialTimer4[MAX_PLAYERS];
  132. new TutorialTimer5[MAX_PLAYERS];
  133. new TutorialTimer6[MAX_PLAYERS];
  134. new NoviRegTimer1[MAX_PLAYERS];
  135. new NoviRegTimer2[MAX_PLAYERS];
  136. new NoviRegTimer3[MAX_PLAYERS];
  137. new NoviRegTimer4[MAX_PLAYERS];
  138. new UlogovanProvera[MAX_PLAYERS];
  139. new IntroTimer[MAX_PLAYERS];
  140. new IntroTimer2[MAX_PLAYERS];
  141. new IntroTimer3[MAX_PLAYERS];
  142. new IntroTimer4[MAX_PLAYERS];
  143. new IntroTimer5[MAX_PLAYERS];
  144. new LogRegTimer[MAX_PLAYERS];
  145. /////////////////////////////////////////
  146. ////////////////////////////////////////////////////////////////////
  147. new Text:Tut[12][MAX_PLAYERS];
  148. new Text:LoginTextdraw[14];
  149. new Text:LOGINTD[2];
  150. new Text:Intro[11];
  151. new Text:tutorijal;
  152. new Text:RegLogi[13];
  153. new Text:TutorialSledi[7];
  154. new LoginPokusaji[MAX_PLAYERS];
  155. new Text:REGPRIPREMA[7];
  156. new freeze[MAX_PLAYERS];
  157. /////////////////////////////////////////////////////////////
  158. /////////////////////////////////////////////////////////////////////////
  159. new Float:RandomSpawn[3][3] =
  160. {
  161. {828.5258,-1341.4259,11.0234},
  162. {1785.4883,-1629.6973,13.6552},
  163. {1647.3142,-2330.5313,13.5837}
  164. };
  165. new Float:RandomSpawn2[3][4]=
  166. {
  167. {1785.4883,-1629.6973,13.6552},
  168. {828.5258,-1341.4259,11.0234},
  169. {1647.3142,-2330.5313,13.5837}
  170. };
  171. ///////////////////////////////////////////////////////////////////////
  172. main()
  173. {
  174. print(" Mod je uspesno startovan.");
  175. print(" Uzivajte :). ");
  176.  
  177. }
  178. ///////////////////////////////////////////////////////////////////////
  179. public OnGameModeInit()
  180. {
  181. ///////////////////////////////////////////////////////////////////
  182. REGPRIPREMA[0] = TextDrawCreate(464.000000, 264.875000, "okvir");
  183. TextDrawLetterSize(REGPRIPREMA[0], 0.000000, 0.558333);
  184. TextDrawTextSize(REGPRIPREMA[0], 196.000000, 0.000000);
  185. TextDrawAlignment(REGPRIPREMA[0], 1);
  186. TextDrawColor(REGPRIPREMA[0], 0);
  187. TextDrawUseBox(REGPRIPREMA[0], true);
  188. TextDrawBoxColor(REGPRIPREMA[0], 255);
  189. TextDrawSetShadow(REGPRIPREMA[0], 0);
  190. TextDrawSetOutline(REGPRIPREMA[0], 0);
  191. TextDrawFont(REGPRIPREMA[0], 1);
  192.  
  193. REGPRIPREMA[1] = TextDrawCreate(294.000000, 266.187500, "logprog1");
  194. TextDrawLetterSize(REGPRIPREMA[1], 0.000000, 0.259722);
  195. TextDrawTextSize(REGPRIPREMA[1], 197.500000, 0.000000);
  196. TextDrawAlignment(REGPRIPREMA[1], 1);
  197. TextDrawColor(REGPRIPREMA[1], 0);
  198. TextDrawUseBox(REGPRIPREMA[1], true);
  199. TextDrawBoxColor(REGPRIPREMA[1], -16776961);
  200. TextDrawSetShadow(REGPRIPREMA[1], 0);
  201. TextDrawSetOutline(REGPRIPREMA[1], 0);
  202. TextDrawFont(REGPRIPREMA[1], 0);
  203.  
  204. REGPRIPREMA[2] = TextDrawCreate(386.500000, 266.187500, "logprog2");
  205. TextDrawLetterSize(REGPRIPREMA[2], 0.000000, 0.266666);
  206. TextDrawTextSize(REGPRIPREMA[2], 289.000000, 0.000000);
  207. TextDrawAlignment(REGPRIPREMA[2], 1);
  208. TextDrawColor(REGPRIPREMA[2], 0);
  209. TextDrawUseBox(REGPRIPREMA[2], true);
  210. TextDrawBoxColor(REGPRIPREMA[2], -16776961);
  211. TextDrawSetShadow(REGPRIPREMA[2], 0);
  212. TextDrawSetOutline(REGPRIPREMA[2], 0);
  213. TextDrawFont(REGPRIPREMA[2], 0);
  214.  
  215. REGPRIPREMA[3] = TextDrawCreate(462.500000, 266.187500, "logprog3");
  216. TextDrawLetterSize(REGPRIPREMA[3], 0.000000, 0.266666);
  217. TextDrawTextSize(REGPRIPREMA[3], 363.000000, 0.000000);
  218. TextDrawAlignment(REGPRIPREMA[3], 1);
  219. TextDrawColor(REGPRIPREMA[3], 0);
  220. TextDrawUseBox(REGPRIPREMA[3], true);
  221. TextDrawBoxColor(REGPRIPREMA[3], -16776961);
  222. TextDrawSetShadow(REGPRIPREMA[3], 0);
  223. TextDrawSetOutline(REGPRIPREMA[3], 0);
  224. TextDrawFont(REGPRIPREMA[3], 0);
  225.  
  226. REGPRIPREMA[4] = TextDrawCreate(327.000000, 248.500000, "Kreiranje vaseg naloga ...");
  227. TextDrawLetterSize(REGPRIPREMA[4], 0.449999, 1.600000);
  228. TextDrawAlignment(REGPRIPREMA[4], 2);
  229. TextDrawColor(REGPRIPREMA[4], -1);
  230. TextDrawSetShadow(REGPRIPREMA[4], 0);
  231. TextDrawSetOutline(REGPRIPREMA[4], 1);
  232. TextDrawBackgroundColor(REGPRIPREMA[4], 51);
  233. TextDrawFont(REGPRIPREMA[4], 1);
  234. TextDrawSetProportional(REGPRIPREMA[4], 1);
  235.  
  236. REGPRIPREMA[5] = TextDrawCreate(372.500000, 436.187500, "TRENUTNA VERZIJA SA-MP KLIJENTA:");
  237. TextDrawLetterSize(REGPRIPREMA[5], 0.307499, 1.241251);
  238. TextDrawAlignment(REGPRIPREMA[5], 1);
  239. TextDrawColor(REGPRIPREMA[5], -1);
  240. TextDrawSetShadow(REGPRIPREMA[5], 0);
  241. TextDrawSetOutline(REGPRIPREMA[5], 0);
  242. TextDrawBackgroundColor(REGPRIPREMA[5], 51);
  243. TextDrawFont(REGPRIPREMA[5], 2);
  244. TextDrawSetProportional(REGPRIPREMA[5], 1);
  245.  
  246. REGPRIPREMA[6] = TextDrawCreate(603.000000, 422.625000, "0.3.7");
  247. TextDrawLetterSize(REGPRIPREMA[6], 0.449999, 1.600000);
  248. TextDrawAlignment(REGPRIPREMA[6], 1);
  249. TextDrawColor(REGPRIPREMA[6], -1);
  250. TextDrawSetShadow(REGPRIPREMA[6], 0);
  251. TextDrawSetOutline(REGPRIPREMA[6], 2);
  252. TextDrawBackgroundColor(REGPRIPREMA[6], 255);
  253. TextDrawFont(REGPRIPREMA[6], 3);
  254. TextDrawSetProportional(REGPRIPREMA[6], 1);
  255.  
  256. //////////////////////////////////////////////////////////////////
  257. tutorijal = TextDrawCreate(320.000000, 438.000000, "zek zek dadumle, dadumle dadumle !");
  258. TextDrawAlignment(tutorijal, 2);
  259. TextDrawBackgroundColor(tutorijal, 255);
  260. TextDrawFont(tutorijal, 1);
  261. TextDrawLetterSize(tutorijal, 0.500000, 1.000000);
  262. TextDrawColor(tutorijal, -1);
  263. TextDrawSetOutline(tutorijal, 0);
  264. TextDrawSetProportional(tutorijal, 1);
  265. TextDrawSetShadow(tutorijal, 1);
  266. /////////////////////////////////////////////////////////////////////
  267.  
  268. ////////////////////////////////////////////////////////////////////
  269. LOGINTD[0] = TextDrawCreate(214.500000, 434.437500, "~b~www.~w~uskoro~b~.info");
  270. TextDrawLetterSize(LOGINTD[0], 0.411999, 0.746875);
  271. TextDrawAlignment(LOGINTD[0], 1);
  272. TextDrawColor(LOGINTD[0], -1);
  273. TextDrawSetShadow(LOGINTD[0], 0);
  274. TextDrawSetOutline(LOGINTD[0], -1);
  275. TextDrawBackgroundColor(LOGINTD[0], 255);
  276. TextDrawFont(LOGINTD[0], 2);
  277. TextDrawSetProportional(LOGINTD[0], 1);
  278.  
  279. LOGINTD[1] = TextDrawCreate(190.500000, 439.250000, "online gaming community");
  280. TextDrawLetterSize(LOGINTD[1], 0.414999, 0.996251);
  281. TextDrawAlignment(LOGINTD[1], 1);
  282. TextDrawColor(LOGINTD[1], -1);
  283. TextDrawSetShadow(LOGINTD[1], 0);
  284. TextDrawSetOutline(LOGINTD[1], 1);
  285. TextDrawBackgroundColor(LOGINTD[1], 255);
  286. TextDrawFont(LOGINTD[1], 2);
  287. TextDrawSetProportional(LOGINTD[1], 1);
  288. ////////////////////////////////////////////////////////////////////
  289. RegLogi[0] = TextDrawCreate(653.000000, -6.000000, ".");
  290. TextDrawBackgroundColor(RegLogi[0], 255);
  291. TextDrawFont(RegLogi[0], 1);
  292. TextDrawLetterSize(RegLogi[0], 1.100000, 18.700006);
  293. TextDrawColor(RegLogi[0], -1);
  294. TextDrawSetOutline(RegLogi[0], 0);
  295. TextDrawSetProportional(RegLogi[0], 1);
  296. TextDrawSetShadow(RegLogi[0], 1);
  297. TextDrawUseBox(RegLogi[0], 1);
  298. TextDrawBoxColor(RegLogi[0], 96);
  299. TextDrawTextSize(RegLogi[0], -20.000000, 17.000000);
  300.  
  301. RegLogi[1] = TextDrawCreate(24.000000, 148.000000, "Prijava");
  302. TextDrawBackgroundColor(RegLogi[1], 255);
  303. TextDrawFont(RegLogi[1], 2);
  304. TextDrawLetterSize(RegLogi[1], 0.320000, 1.599999);
  305. TextDrawColor(RegLogi[1], -1);
  306. TextDrawSetOutline(RegLogi[1], 0);
  307. TextDrawSetProportional(RegLogi[1], 1);
  308. TextDrawSetShadow(RegLogi[1], 1);
  309. TextDrawSetSelectable(RegLogi[1], 1);
  310. TextDrawTextSize(RegLogi[1],100.0, 10.0);
  311.  
  312. RegLogi[2] = TextDrawCreate(120.000000, 148.000000, "Registracija");
  313. TextDrawBackgroundColor(RegLogi[2], 255);
  314. TextDrawFont(RegLogi[2], 2);
  315. TextDrawLetterSize(RegLogi[2], 0.320000, 1.599999);
  316. TextDrawColor(RegLogi[2], -1);
  317. TextDrawSetOutline(RegLogi[2], 0);
  318. TextDrawSetProportional(RegLogi[2], 1);
  319. TextDrawSetShadow(RegLogi[2], 1);
  320. TextDrawSetSelectable(RegLogi[2], 1);
  321. TextDrawTextSize(RegLogi[2], 200.0, 10.0);
  322.  
  323. RegLogi[3] = TextDrawCreate(252.000000, 148.000000, "Forum");
  324. TextDrawBackgroundColor(RegLogi[3], 255);
  325. TextDrawFont(RegLogi[3], 2);
  326. TextDrawLetterSize(RegLogi[3], 0.320000, 1.599999);
  327. TextDrawColor(RegLogi[3], -1);
  328. TextDrawSetOutline(RegLogi[3], 0);
  329. TextDrawSetProportional(RegLogi[3], 1);
  330. TextDrawSetShadow(RegLogi[3], 1);
  331. TextDrawSetSelectable(RegLogi[3], 1);
  332. TextDrawTextSize(RegLogi[3], 360.0, 10.0);
  333.  
  334. RegLogi[4] = TextDrawCreate(349.000000, 148.000000, "TeamSpeak3");
  335. TextDrawBackgroundColor(RegLogi[4], 255);
  336. TextDrawFont(RegLogi[4], 2);
  337. TextDrawLetterSize(RegLogi[4], 0.320000, 1.599999);
  338. TextDrawColor(RegLogi[4], -1);
  339. TextDrawSetOutline(RegLogi[4], 0);
  340. TextDrawSetProportional(RegLogi[4], 1);
  341. TextDrawSetShadow(RegLogi[4], 1);
  342. TextDrawSetSelectable(RegLogi[4], 1);
  343. TextDrawTextSize(RegLogi[4], 400.0, 10.0);
  344.  
  345. RegLogi[5] = TextDrawCreate(516.000000, 148.000000, "Credits");
  346. TextDrawBackgroundColor(RegLogi[5], 255);
  347. TextDrawFont(RegLogi[5], 2);
  348. TextDrawLetterSize(RegLogi[5], 0.320000, 1.599999);
  349. TextDrawColor(RegLogi[5], -1);
  350. TextDrawSetOutline(RegLogi[5], 0);
  351. TextDrawSetProportional(RegLogi[5], 1);
  352. TextDrawSetShadow(RegLogi[5], 1);
  353. TextDrawSetSelectable(RegLogi[5], 1);
  354. TextDrawTextSize(RegLogi[5], 550.0, 10.0);
  355.  
  356. RegLogi[6] = TextDrawCreate(730.000000, 165.000000, "_");
  357. TextDrawBackgroundColor(RegLogi[6], 255);
  358. TextDrawFont(RegLogi[6], 1);
  359. TextDrawLetterSize(RegLogi[6], 0.500000, -0.300000);
  360. TextDrawColor(RegLogi[6], -1);
  361. TextDrawSetOutline(RegLogi[6], 0);
  362. TextDrawSetProportional(RegLogi[6], 1);
  363. TextDrawSetShadow(RegLogi[6], 1);
  364. TextDrawUseBox(RegLogi[6], 1);
  365. TextDrawBoxColor(RegLogi[6], 255);
  366. TextDrawTextSize(RegLogi[6], -43.000000, 0.000000);
  367.  
  368. RegLogi[7] = TextDrawCreate(-14.000000, 165.000000, "loadsc13:loadsc13");
  369. TextDrawBackgroundColor(RegLogi[7], 255);
  370. TextDrawFont(RegLogi[7], 4);
  371. TextDrawLetterSize(RegLogi[7], 0.500000, 1.000000);
  372. TextDrawColor(RegLogi[7], -1);
  373. TextDrawSetOutline(RegLogi[7], 0);
  374. TextDrawSetProportional(RegLogi[7], 1);
  375. TextDrawSetShadow(RegLogi[7], 1);
  376. TextDrawUseBox(RegLogi[7], 1);
  377. TextDrawBoxColor(RegLogi[7], 255);
  378. TextDrawTextSize(RegLogi[7], 654.000000, 282.000000);
  379.  
  380. RegLogi[8] = TextDrawCreate(730.000000, 149.000000, "_");
  381. TextDrawBackgroundColor(RegLogi[8], 255);
  382. TextDrawFont(RegLogi[8], 1);
  383. TextDrawLetterSize(RegLogi[8], 0.500000, -0.300000);
  384. TextDrawColor(RegLogi[8], -1);
  385. TextDrawSetOutline(RegLogi[8], 0);
  386. TextDrawSetProportional(RegLogi[8], 1);
  387. TextDrawSetShadow(RegLogi[8], 1);
  388. TextDrawUseBox(RegLogi[8], 1);
  389. TextDrawBoxColor(RegLogi[8], 255);
  390. TextDrawTextSize(RegLogi[8], -43.000000, 0.000000);
  391.  
  392. RegLogi[9] = TextDrawCreate(670.000000, 439.000000, "_");
  393. TextDrawBackgroundColor(RegLogi[8], 255);
  394. TextDrawFont(RegLogi[9], 1);
  395. TextDrawLetterSize(RegLogi[9], 0.500000, 0.799999);
  396. TextDrawColor(RegLogi[9], -1);
  397. TextDrawSetOutline(RegLogi[9], 0);
  398. TextDrawSetProportional(RegLogi[9], 1);
  399. TextDrawSetShadow(RegLogi[9], 1);
  400. TextDrawUseBox(RegLogi[9], 1);
  401. TextDrawBoxColor(RegLogi[9], 255);
  402. TextDrawTextSize(RegLogi[9], -20.000000, 0.000000);
  403.  
  404. RegLogi[10] = TextDrawCreate(90.000000, 437.000000, "Tokom igre mozete biti izlozeni scenama nasilnog i seksualnog karaktera, konzumiranju narkotika");
  405. TextDrawBackgroundColor(RegLogi[10], 255);
  406. TextDrawFont(RegLogi[10], 2);
  407. TextDrawLetterSize(RegLogi[10], 0.200000, 1.200000);
  408. TextDrawColor(RegLogi[10], -1);
  409. TextDrawSetOutline(RegLogi[10], 0);
  410. TextDrawSetProportional(RegLogi[10], 1);
  411. TextDrawSetShadow(RegLogi[10], 1);
  412.  
  413. RegLogi[11] = TextDrawCreate(273.000000, 51.000000, "LN:RP");
  414. TextDrawBackgroundColor(RegLogi[11], 255);
  415. TextDrawFont(RegLogi[11], 2);
  416. TextDrawLetterSize(RegLogi[11], 0.649999, 5.499999);
  417. TextDrawColor(RegLogi[11], -1);
  418. TextDrawSetOutline(RegLogi[11], 1);
  419. TextDrawSetProportional(RegLogi[11], 1);
  420.  
  421. RegLogi[12] = TextDrawCreate(263.000000, 95.000000, "online gaming community");
  422. TextDrawBackgroundColor(RegLogi[12], 255);
  423. TextDrawFont(RegLogi[12], 2);
  424. TextDrawLetterSize(RegLogi[12], 0.170000, 1.200000);
  425. TextDrawColor(RegLogi[12], -16776961);
  426. TextDrawSetOutline(RegLogi[12], 0);
  427. TextDrawSetProportional(RegLogi[12], 1);
  428. TextDrawSetShadow(RegLogi[12], 1);
  429. //------------------------------------------------------------------------------
  430. //------------------------------------------------------------------------------
  431. LoginTextdraw[0] = TextDrawCreate(641.500000, 307.312500, "usebox");
  432. TextDrawLetterSize(LoginTextdraw[0], 0.000000, -0.025000);
  433. TextDrawTextSize(LoginTextdraw[0], -2.000000, 0.000000);
  434. TextDrawAlignment(LoginTextdraw[0], 1);
  435. TextDrawColor(LoginTextdraw[0], 0);
  436. TextDrawUseBox(LoginTextdraw[0], true);
  437. TextDrawBoxColor(LoginTextdraw[0], -65281);
  438. TextDrawSetShadow(LoginTextdraw[0], 0);
  439. TextDrawSetOutline(LoginTextdraw[0], 0);
  440. TextDrawFont(LoginTextdraw[0], 0);
  441.  
  442. LoginTextdraw[1] = TextDrawCreate(641.500000, 310.375000, "usebox");
  443. TextDrawLetterSize(LoginTextdraw[1], 0.000000, 5.273611);
  444. TextDrawTextSize(LoginTextdraw[1], -1.500000, 0.000000);
  445. TextDrawAlignment(LoginTextdraw[1], 1);
  446. TextDrawColor(LoginTextdraw[1], 0);
  447. TextDrawUseBox(LoginTextdraw[1], true);
  448. TextDrawBoxColor(LoginTextdraw[1], 255);
  449. TextDrawSetShadow(LoginTextdraw[1], 0);
  450. TextDrawSetOutline(LoginTextdraw[1], 0);
  451. TextDrawFont(LoginTextdraw[1], 0);
  452.  
  453. LoginTextdraw[2] = TextDrawCreate(18.000000, 364.000000, "LOADSUK:loadsc14");
  454. TextDrawLetterSize(LoginTextdraw[2], 0.000000, 0.000000);
  455. TextDrawTextSize(LoginTextdraw[2], 130.500000, 75.687500);
  456. TextDrawAlignment(LoginTextdraw[2], 1);
  457. TextDrawColor(LoginTextdraw[2], -1);
  458. TextDrawSetShadow(LoginTextdraw[2], 0);
  459. TextDrawSetOutline(LoginTextdraw[2], 0);
  460. TextDrawFont(LoginTextdraw[2], 4);
  461.  
  462. LoginTextdraw[3] = TextDrawCreate(258.000000, 364.437500, "LOADSUK:loadsc1");
  463. TextDrawLetterSize(LoginTextdraw[3], 0.000000, 0.000000);
  464. TextDrawTextSize(LoginTextdraw[3], 130.000000, 75.687500);
  465. TextDrawAlignment(LoginTextdraw[3], 1);
  466. TextDrawColor(LoginTextdraw[3], -1);
  467. TextDrawSetShadow(LoginTextdraw[3], 0);
  468. TextDrawSetOutline(LoginTextdraw[3], 0);
  469. TextDrawFont(LoginTextdraw[3], 4);
  470.  
  471. LoginTextdraw[4] = TextDrawCreate(242.500000, 357.187500, "usebox");
  472. TextDrawLetterSize(LoginTextdraw[4], 0.000000, 9.891667);
  473. TextDrawTextSize(LoginTextdraw[4], 157.500000, 0.000000);
  474. TextDrawAlignment(LoginTextdraw[4], 1);
  475. TextDrawColor(LoginTextdraw[4], 0);
  476. TextDrawUseBox(LoginTextdraw[4], true);
  477. TextDrawBoxColor(LoginTextdraw[4], 255);
  478. TextDrawSetShadow(LoginTextdraw[4], 0);
  479. TextDrawSetOutline(LoginTextdraw[4], 0);
  480. TextDrawFont(LoginTextdraw[4], 0);
  481.  
  482. LoginTextdraw[5] = TextDrawCreate(491.000000, 361.125000, "usebox");
  483. TextDrawLetterSize(LoginTextdraw[5], 0.000000, 9.454167);
  484. TextDrawTextSize(LoginTextdraw[5], 406.000000, 0.000000);
  485. TextDrawAlignment(LoginTextdraw[5], 1);
  486. TextDrawColor(LoginTextdraw[5], 0);
  487. TextDrawUseBox(LoginTextdraw[5], true);
  488. TextDrawBoxColor(LoginTextdraw[5], 255);
  489. TextDrawSetShadow(LoginTextdraw[5], 0);
  490. TextDrawSetOutline(LoginTextdraw[5], 0);
  491. TextDrawFont(LoginTextdraw[5], 0);
  492.  
  493. LoginTextdraw[6] = TextDrawCreate(500.500000, 366.625000, "LOADSUK:loadsc10");
  494. TextDrawLetterSize(LoginTextdraw[6], 0.000000, 0.000000);
  495. TextDrawTextSize(LoginTextdraw[6], 130.000000, 75.687500);
  496. TextDrawAlignment(LoginTextdraw[6], 1);
  497. TextDrawColor(LoginTextdraw[6], -1);
  498. TextDrawSetShadow(LoginTextdraw[6], 0);
  499. TextDrawSetOutline(LoginTextdraw[6], 0);
  500. TextDrawFont(LoginTextdraw[6], 4);
  501.  
  502. LoginTextdraw[7] = TextDrawCreate(220.000000, 319.375000, "~y~ Last Night roleplay~N~ONLINE GAMING COMMUNITY");
  503. TextDrawLetterSize(LoginTextdraw[7], 0.370500, 1.683123);
  504. TextDrawAlignment(LoginTextdraw[7], 1);
  505. TextDrawColor(LoginTextdraw[7], -1);
  506. TextDrawSetShadow(LoginTextdraw[7], 0);
  507. TextDrawSetOutline(LoginTextdraw[7], 1);
  508. TextDrawBackgroundColor(LoginTextdraw[7], 51);
  509. TextDrawFont(LoginTextdraw[7], 2);
  510. TextDrawSetProportional(LoginTextdraw[7], 1);
  511.  
  512. LoginTextdraw[8] = TextDrawCreate(648.000000, 113.062500, "usebox");
  513. TextDrawLetterSize(LoginTextdraw[8], 0.000000, 0.070833);
  514. TextDrawTextSize(LoginTextdraw[8], -3.000000, 0.000000);
  515. TextDrawAlignment(LoginTextdraw[8], 1);
  516. TextDrawColor(LoginTextdraw[8], 0);
  517. TextDrawUseBox(LoginTextdraw[8], true);
  518. TextDrawBoxColor(LoginTextdraw[8], -65281);
  519. TextDrawSetShadow(LoginTextdraw[8], 0);
  520. TextDrawSetOutline(LoginTextdraw[8], 0);
  521. TextDrawFont(LoginTextdraw[8], 0);
  522.  
  523. LoginTextdraw[9] = TextDrawCreate(648.500000, 1.500000, "usebox");
  524. TextDrawLetterSize(LoginTextdraw[9], 0.000000, 5.223610);
  525. TextDrawTextSize(LoginTextdraw[9], -2.500000, 0.000000);
  526. TextDrawAlignment(LoginTextdraw[9], 1);
  527. TextDrawColor(LoginTextdraw[9], 0);
  528. TextDrawUseBox(LoginTextdraw[9], true);
  529. TextDrawBoxColor(LoginTextdraw[9], 255);
  530. TextDrawSetShadow(LoginTextdraw[9], 0);
  531. TextDrawSetOutline(LoginTextdraw[9], 0);
  532. TextDrawFont(LoginTextdraw[9], 0);
  533.  
  534. LoginTextdraw[10] = TextDrawCreate(18.000000, 35.437500, "LOADSUK:loadsc8");
  535. TextDrawLetterSize(LoginTextdraw[10], 0.000000, 0.000000);
  536. TextDrawTextSize(LoginTextdraw[10], 130.000000, 75.687500);
  537. TextDrawAlignment(LoginTextdraw[10], 1);
  538. TextDrawColor(LoginTextdraw[10], -1);
  539. TextDrawSetShadow(LoginTextdraw[10], 0);
  540. TextDrawSetOutline(LoginTextdraw[10], 0);
  541. TextDrawFont(LoginTextdraw[10], 4);
  542.  
  543. LoginTextdraw[11] = TextDrawCreate(245.500000, 35.437500, "LOADSUK:loadsc7");
  544. TextDrawLetterSize(LoginTextdraw[11], 0.000000, 0.000000);
  545. TextDrawTextSize(LoginTextdraw[11], 130.000000, 75.687500);
  546. TextDrawAlignment(LoginTextdraw[11], 1);
  547. TextDrawColor(LoginTextdraw[11], -1);
  548. TextDrawSetShadow(LoginTextdraw[11], 0);
  549. TextDrawSetOutline(LoginTextdraw[11], 0);
  550. TextDrawFont(LoginTextdraw[11], 4);
  551.  
  552. LoginTextdraw[12] = TextDrawCreate(505.500000, 35.000000, "LOADSUK:loadsc2");
  553. TextDrawLetterSize(LoginTextdraw[12], 0.000000, 0.000000);
  554. TextDrawTextSize(LoginTextdraw[12], 130.000000, 75.687500);
  555. TextDrawAlignment(LoginTextdraw[12], 1);
  556. TextDrawColor(LoginTextdraw[12], -1);
  557. TextDrawSetShadow(LoginTextdraw[12], 0);
  558. TextDrawSetOutline(LoginTextdraw[12], 0);
  559. TextDrawFont(LoginTextdraw[12], 4);
  560.  
  561. LoginTextdraw[13] = TextDrawCreate(253.500000, 295.312500, "~y~www.~w~uskoro~y~.com");
  562. TextDrawLetterSize(LoginTextdraw[13], 0.300500, 0.965625);
  563. TextDrawAlignment(LoginTextdraw[13], 1);
  564. TextDrawColor(LoginTextdraw[13], -1);
  565. TextDrawSetShadow(LoginTextdraw[13], 0);
  566. TextDrawSetOutline(LoginTextdraw[13], 0);
  567. TextDrawBackgroundColor(LoginTextdraw[13], 51);
  568. TextDrawFont(LoginTextdraw[13], 2);
  569. TextDrawSetProportional(LoginTextdraw[13], 1);
  570. ///////////////////////////////////////////////////////////////
  571. TutorialSledi[0] = TextDrawCreate(409.000000, 170.000000, "_");
  572. TextDrawBackgroundColor(TutorialSledi[0], 255);
  573. TextDrawFont(TutorialSledi[0], 1);
  574. TextDrawLetterSize(TutorialSledi[0], 0.579999, 5.299997);
  575. TextDrawColor(TutorialSledi[0], -1);
  576. TextDrawSetOutline(TutorialSledi[0], 0);
  577. TextDrawSetProportional(TutorialSledi[0], 1);
  578. TextDrawSetShadow(TutorialSledi[0], 1);
  579. TextDrawUseBox(TutorialSledi[0], 1);
  580. TextDrawBoxColor(TutorialSledi[0], 000050);
  581. TextDrawTextSize(TutorialSledi[0], 212.000000, 36.000000);
  582.  
  583. TutorialSledi[1] = TextDrawCreate(230.000000, 177.000000, "Sledi tutorial");
  584. TextDrawBackgroundColor(TutorialSledi[1], 255);
  585. TextDrawFont(TutorialSledi[1], 2);
  586. TextDrawLetterSize(TutorialSledi[1], 0.500000, 1.000000);
  587. TextDrawColor(TutorialSledi[1], -1);
  588. TextDrawSetOutline(TutorialSledi[1], 0);
  589. TextDrawSetProportional(TutorialSledi[1], 1);
  590. TextDrawSetShadow(TutorialSledi[1], 1);
  591.  
  592. TutorialSledi[2] = TextDrawCreate(245.000000, 195.000000, "sacekajte...");
  593. TextDrawBackgroundColor(TutorialSledi[2], 255);
  594. TextDrawFont(TutorialSledi[2], 2);
  595. TextDrawLetterSize(TutorialSledi[2], 0.500000, 1.000000);
  596. TextDrawColor(TutorialSledi[2], -1);
  597. TextDrawSetOutline(TutorialSledi[2], 0);
  598. TextDrawSetProportional(TutorialSledi[2], 1);
  599. TextDrawSetShadow(TutorialSledi[2], 1);
  600.  
  601. TutorialSledi[3] = TextDrawCreate(405.000000, 170.000000, "_");
  602. TextDrawBackgroundColor(TutorialSledi[3], 255);
  603. TextDrawFont(TutorialSledi[3], 1);
  604. TextDrawLetterSize(TutorialSledi[3], 0.529999, -0.200002);
  605. TextDrawColor(TutorialSledi[3], -1);
  606. TextDrawSetOutline(TutorialSledi[3], 0);
  607. TextDrawSetProportional(TutorialSledi[3], 1);
  608. TextDrawSetShadow(TutorialSledi[3], 1);
  609. TextDrawUseBox(TutorialSledi[3], 1);
  610. TextDrawBoxColor(TutorialSledi[3], 848756735);
  611. TextDrawTextSize(TutorialSledi[3], 212.000000, 25.000000);
  612.  
  613. TutorialSledi[4] = TextDrawCreate(409.000000, 220.000000, "_");
  614. TextDrawBackgroundColor(TutorialSledi[4], 255);
  615. TextDrawFont(TutorialSledi[4], 1);
  616. TextDrawLetterSize(TutorialSledi[4], 0.529999, -0.200002);
  617. TextDrawColor(TutorialSledi[4], -1);
  618. TextDrawSetOutline(TutorialSledi[4], 0);
  619. TextDrawSetProportional(TutorialSledi[4], 1);
  620. TextDrawSetShadow(TutorialSledi[4], 1);
  621. TextDrawUseBox(TutorialSledi[4], 1);
  622. TextDrawBoxColor(TutorialSledi[4], 848756735);
  623. TextDrawTextSize(TutorialSledi[4], 212.000000, 25.000000);
  624.  
  625. TutorialSledi[5] = TextDrawCreate(409.000000, 170.000000, "_");
  626. TextDrawBackgroundColor(TutorialSledi[5], 255);
  627. TextDrawFont(TutorialSledi[5], 1);
  628. TextDrawLetterSize(TutorialSledi[5], 0.529999, 5.299997);
  629. TextDrawColor(TutorialSledi[5], -1);
  630. TextDrawSetOutline(TutorialSledi[5], 0);
  631. TextDrawSetProportional(TutorialSledi[5], 1);
  632. TextDrawSetShadow(TutorialSledi[5], 1);
  633. TextDrawUseBox(TutorialSledi[5], 1);
  634. TextDrawBoxColor(TutorialSledi[5], 848756735);
  635. TextDrawTextSize(TutorialSledi[5], 397.000000, 36.000000);
  636.  
  637. TutorialSledi[6] = TextDrawCreate(217.000000, 170.000000, "_");
  638. TextDrawBackgroundColor(TutorialSledi[6], 255);
  639. TextDrawFont(TutorialSledi[6], 1);
  640. TextDrawLetterSize(TutorialSledi[6], 0.129999, 5.299997);
  641. TextDrawColor(TutorialSledi[6], -1);
  642. TextDrawSetOutline(TutorialSledi[6], 0);
  643. TextDrawSetProportional(TutorialSledi[6], 1);
  644. TextDrawSetShadow(TutorialSledi[6], 1);
  645. TextDrawUseBox(TutorialSledi[6], 1);
  646. TextDrawBoxColor(TutorialSledi[6], 848756735);
  647. TextDrawTextSize(TutorialSledi[6], 216.000000, 36.000000);
  648. //////////////////////////////////////////////////////////////
  649. Intro[0] = TextDrawCreate(467.000000, 305.562500, "usebox");
  650. TextDrawLetterSize(Intro[0], 0.000000, 15.627778);
  651. TextDrawTextSize(Intro[0], 175.000000, 0.000000);
  652. TextDrawAlignment(Intro[0], 1);
  653. TextDrawColor(Intro[0], 0);
  654. TextDrawUseBox(Intro[0], true);
  655. TextDrawBoxColor(Intro[0], 0x0066FFFF);
  656. TextDrawSetShadow(Intro[0], 0);
  657. TextDrawSetOutline(Intro[0], 0);
  658. TextDrawFont(Intro[0], 0);
  659.  
  660. Intro[1] = TextDrawCreate(180.000000, 306.437500, "usebox");
  661. TextDrawLetterSize(Intro[1], 0.000000, 15.530555);
  662. TextDrawTextSize(Intro[1], 168.000000, 0.000000);
  663. TextDrawAlignment(Intro[1], 1);
  664. TextDrawColor(Intro[1], 0);
  665. TextDrawUseBox(Intro[1], true);
  666. TextDrawBoxColor(Intro[1], -65281);
  667. TextDrawSetShadow(Intro[1], 0);
  668. TextDrawSetOutline(Intro[1], 0);
  669. TextDrawFont(Intro[1], 0);
  670.  
  671. Intro[2] = TextDrawCreate(475.500000, 306.437500, "usebox");
  672. TextDrawLetterSize(Intro[2], 0.000000, 15.530555);
  673. TextDrawTextSize(Intro[2], 463.000000, 0.000000);
  674. TextDrawAlignment(Intro[2], 1);
  675. TextDrawColor(Intro[2], 0);
  676. TextDrawUseBox(Intro[2], true);
  677. TextDrawBoxColor(Intro[2], 0x0066FFFF);
  678. TextDrawSetShadow(Intro[2], 0);
  679. TextDrawSetOutline(Intro[2], 0);
  680. TextDrawFont(Intro[2], 0);
  681.  
  682. Intro[3] = TextDrawCreate(268.000000, 305.375000, "~b~L~w~ast ~b~N~w~ight ~n~ ~r~ roleplay");
  683. TextDrawLetterSize(Intro[3], 0.425999, 1.263124);
  684. TextDrawAlignment(Intro[3], 1);
  685. TextDrawColor(Intro[3], -1);
  686. TextDrawSetShadow(Intro[3], 0);
  687. TextDrawSetOutline(Intro[3], 0);
  688. TextDrawBackgroundColor(Intro[3], 51);
  689. TextDrawFont(Intro[3], 2);
  690. TextDrawSetProportional(Intro[3], 1);
  691.  
  692. Intro[4] = TextDrawCreate(179.500000, 336.875000, "~b~S~w~kripteri:~r~Corleone");
  693. TextDrawLetterSize(Intro[4], 0.306499, 1.355000);
  694. TextDrawAlignment(Intro[4], 1);
  695. TextDrawColor(Intro[4], -1);
  696. TextDrawSetShadow(Intro[4], 0);
  697. TextDrawSetOutline(Intro[4], 0);
  698. TextDrawBackgroundColor(Intro[4], 51);
  699. TextDrawFont(Intro[4], 2);
  700. TextDrawSetProportional(Intro[4], 1);
  701.  
  702. Intro[5] = TextDrawCreate(222.500000, 355.250000, "-");
  703. TextDrawLetterSize(Intro[5], 11.865000, 0.948126);
  704. TextDrawAlignment(Intro[5], 1);
  705. TextDrawColor(Intro[5], -1);
  706. TextDrawSetShadow(Intro[5], 0);
  707. TextDrawSetOutline(Intro[5], 1);
  708. TextDrawBackgroundColor(Intro[5], 51);
  709. TextDrawFont(Intro[5], 1);
  710. TextDrawSetProportional(Intro[5], 1);
  711.  
  712. Intro[6] = TextDrawCreate(180.500000, 370.125000, "~b~M~w~apper:~y~C~w~orleone");
  713. TextDrawLetterSize(Intro[6], 0.379999, 1.162501);
  714. TextDrawAlignment(Intro[6], 1);
  715. TextDrawColor(Intro[6], -1);
  716. TextDrawSetShadow(Intro[6], 0);
  717. TextDrawSetOutline(Intro[6], 0);
  718. TextDrawBackgroundColor(Intro[6], 51);
  719. TextDrawFont(Intro[6], 2);
  720. TextDrawSetProportional(Intro[6], 1);
  721.  
  722. Intro[7] = TextDrawCreate(264.500000, 279.562500, "-");
  723. TextDrawLetterSize(Intro[7], 7.455000, 0.829999);
  724. TextDrawAlignment(Intro[7], 1);
  725. TextDrawColor(Intro[7], -1);
  726. TextDrawSetShadow(Intro[7], 0);
  727. TextDrawSetOutline(Intro[7], 1);
  728. TextDrawBackgroundColor(Intro[7], 51);
  729. TextDrawFont(Intro[7], 1);
  730. TextDrawSetProportional(Intro[7], 1);
  731.  
  732. Intro[8] = TextDrawCreate(239.000000, 264.250000, "~b~v~w~erzija ~y~s~w~kripte");
  733. TextDrawLetterSize(Intro[8], 0.449999, 1.600000);
  734. TextDrawAlignment(Intro[8], 1);
  735. TextDrawColor(Intro[8], -1);
  736. TextDrawSetShadow(Intro[8], 0);
  737. TextDrawSetOutline(Intro[8], 0);
  738. TextDrawBackgroundColor(Intro[8], 51);
  739. TextDrawFont(Intro[8], 2);
  740. TextDrawSetProportional(Intro[8], 1);
  741.  
  742. Intro[9] = TextDrawCreate(304.000000, 286.562500, "~b~1.0");
  743. TextDrawLetterSize(Intro[9], 0.449999, 1.600000);
  744. TextDrawAlignment(Intro[9], 1);
  745. TextDrawColor(Intro[9], -1);
  746. TextDrawSetShadow(Intro[9], 0);
  747. TextDrawSetOutline(Intro[9], 0);
  748. TextDrawBackgroundColor(Intro[9], 51);
  749. TextDrawFont(Intro[9], 2);
  750. TextDrawSetProportional(Intro[9], 1);
  751.  
  752. Intro[10] = TextDrawCreate(369.000000, 348.000000, " ");
  753. TextDrawBackgroundColor(Intro[10] , 255);
  754. TextDrawFont(Intro[10] , 2);
  755. TextDrawLetterSize(Intro[10] , 20.040039, 1.000000);
  756. TextDrawColor(Intro[10] , -16776961);
  757. TextDrawSetOutline(Intro[10] , 0);
  758. TextDrawSetProportional(Intro[10] , 1);
  759. TextDrawSetShadow(Intro[10] , 1);
  760. ///////////////////////////////Server Podesavanja///////////////////////////////
  761. new srvFile[80]; format(srvFile,sizeof(srvFile),SERVER_FILE);
  762. if(fexist(srvFile))
  763. {
  764. INI_ParseFile(srvFile, "UcitajPodesavanja");
  765. print("Ucitana server podesavanja.");
  766. }
  767. return 1;
  768. }
  769. ///////////////////////////////////////////////////////
  770. public OnGameModeExit()
  771. {
  772. TextDrawDestroy(Intro[0]); TextDrawDestroy(Intro[1]); TextDrawDestroy(Intro[2]);
  773. TextDrawDestroy(Intro[3]); TextDrawDestroy(Intro[4]); TextDrawDestroy(Intro[5]);
  774. TextDrawDestroy(Intro[6]); TextDrawDestroy(Intro[7]); TextDrawDestroy(Intro[8]);
  775. TextDrawDestroy(Intro[9]); TextDrawDestroy(Intro[10]); TextDrawDestroy(TutorialSledi[0]);
  776. TextDrawDestroy(TutorialSledi[1]); TextDrawDestroy(TutorialSledi[2]); TextDrawDestroy(TutorialSledi[3]);
  777. TextDrawDestroy(TutorialSledi[4]); TextDrawDestroy(TutorialSledi[5]); TextDrawDestroy(TutorialSledi[6]);
  778. return 1;
  779. }
  780. ////////////////////////////////////////////////////////////////////////////////
  781. //////////////////////////////////////
  782. forward PokaziLogRegTextDraw(playerid);
  783. public PokaziLogRegTextDraw(playerid)
  784. {
  785. TextDrawShowForPlayer(playerid,RegLogi[0]);
  786. TextDrawShowForPlayer(playerid,RegLogi[1]);
  787. TextDrawShowForPlayer(playerid,RegLogi[2]);
  788. TextDrawShowForPlayer(playerid,RegLogi[3]);
  789. TextDrawShowForPlayer(playerid,RegLogi[4]);
  790. TextDrawShowForPlayer(playerid,RegLogi[5]);
  791. TextDrawShowForPlayer(playerid,RegLogi[6]);
  792. TextDrawShowForPlayer(playerid,RegLogi[7]);
  793. TextDrawShowForPlayer(playerid,RegLogi[8]);
  794. TextDrawShowForPlayer(playerid,RegLogi[9]);
  795. TextDrawShowForPlayer(playerid,RegLogi[10]);//Prijava
  796. TextDrawShowForPlayer(playerid,RegLogi[11]);//Registacija
  797. TextDrawShowForPlayer(playerid,RegLogi[12]);
  798. SelectTextDraw(playerid, 0xC83737C8);
  799. return 1;
  800. }
  801. //////////////////////////////////////
  802. forward SakrijLogRegTextDraw(playerid);
  803. public SakrijLogRegTextDraw(playerid)
  804. {
  805. TextDrawHideForPlayer(playerid,RegLogi[0]);
  806. TextDrawHideForPlayer(playerid,RegLogi[1]);
  807. TextDrawHideForPlayer(playerid,RegLogi[2]);
  808. TextDrawHideForPlayer(playerid,RegLogi[3]);
  809. TextDrawHideForPlayer(playerid,RegLogi[4]);
  810. TextDrawHideForPlayer(playerid,RegLogi[5]);
  811. TextDrawHideForPlayer(playerid,RegLogi[6]);
  812. TextDrawHideForPlayer(playerid,RegLogi[7]);
  813. TextDrawHideForPlayer(playerid,RegLogi[8]);
  814. TextDrawHideForPlayer(playerid,RegLogi[9]);
  815. TextDrawHideForPlayer(playerid,RegLogi[10]);//Prijava
  816. TextDrawHideForPlayer(playerid,RegLogi[11]);//Registacija
  817. TextDrawHideForPlayer(playerid,RegLogi[12]);
  818. return 1;
  819. }
  820. //////////////////////////////////////////////////////////////////////////
  821. public OnPlayerRequestClass(playerid, classid)
  822. {
  823. if(UlogovanProvera[playerid] == 1)
  824. {
  825. SpawnPlayer(playerid);
  826. }
  827. return 1;
  828. }
  829. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  830. public OnPlayerConnect(playerid)
  831. {
  832. //////////////////////////////////////////////////////////////////////////////////////////
  833. if(!ProveraRPImena(playerid))
  834. {
  835. StatusKonekta(playerid, 2);
  836. return 1;
  837. }
  838. OcistiChat(playerid,16); AttachObjectRemove(playerid); ObrisiObjekte(playerid);
  839. BelaBojaIgraca(playerid); KreirajTextDrawe(playerid); g_SetPlayerHealth(playerid, 99.0);
  840. //////////////////////////////////////////////////////////////////////////////////////////
  841. /////////////////////////////////////////////////////////////////////////////////////////
  842.  
  843. UlogovanProvera[playerid] = 0; LoginPokusaji[playerid] = 0;
  844. ///////////////////////////////////////////////////////////////////////////
  845. PlayerInfo[playerid][pAdmin] = 0; PlayerInfo[playerid][pSupporter] = 0; PlayerInfo[playerid][pLevel] = 0; PlayerInfo[playerid][pGodine] = 0; PlayerInfo[playerid][pDrzava] = 0; PlayerInfo[playerid][pSex] = 0;
  846. PlayerInfo[playerid][pTutorial] = 0; PlayerInfo[playerid][pExp] = 0; PlayerInfo[playerid][pSatiIgre] = 0; PlayerInfo[playerid][pProveraSpawna] = 0; PlayerInfo[playerid][pBorbeniStil] = 4;
  847. ///////////////////////////////////////////////////////////////////////////////////////////
  848. new banfile[100]; format(banfile,sizeof(banfile),BAN_FOLDER,GetName(playerid));
  849. if(fexist(banfile))
  850. {
  851. StatusKonekta(playerid, 1);
  852. return 1;
  853. }
  854. /////////////////////////////////////////////////////////////////////////////////////////
  855. if(fexist(Korisnici(playerid)))
  856. {
  857. INI_ParseFile(Korisnici(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  858. LogRegTimer[playerid] = SetTimerEx("LoginP",465, false, "i", playerid);
  859. SetPlayerPos(playerid, 2173.0852,2067.2083,27.4533);
  860. }
  861. else
  862. {
  863. IntroTimer[playerid] = SetTimerEx("Registracija1",465, false, "i", playerid);
  864. SetPlayerPos(playerid, 2173.0852,2067.2083,27.4533);
  865. }
  866. return 1;
  867. }
  868. ////////////////////////////////////////////////////////////////////////////////////////////////
  869. forward LoginP(playerid);
  870. public LoginP(playerid)
  871. {
  872. OcistiChat(playerid,16);
  873. //PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/ina1bw0yjz/BANGARANG_FT._SIRAH_-_SKRILLEX.mp3");
  874. PokaziLogRegTextDraw(playerid);
  875. InterpolateCameraPos(playerid, 2099.239501, 486.598968, -13.667785, 2595.385253, 520.451477, 115.491050, 10000);
  876. InterpolateCameraLookAt(playerid, 2104.225097, 486.278564, -13.871625, 2590.409667, 520.783874, 115.125396, 10000);
  877. //LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);
  878. return 1;
  879. }
  880.  
  881. // TEXTDRAW LOGIN
  882. forward prikazilogintd(playerid);
  883. public prikazilogintd(playerid)
  884. {
  885. TextDrawShowForPlayer(playerid, LOGINTD[0]);
  886. TextDrawShowForPlayer(playerid, LOGINTD[1]);
  887. return 1;
  888. }
  889. forward sakrijlogintd(playerid);
  890. public sakrijlogintd(playerid)
  891. {
  892. TextDrawHideForPlayer(playerid, LOGINTD[0]);
  893. TextDrawHideForPlayer(playerid, LOGINTD[1]);
  894. return 1;
  895. }
  896. ////////////////////////////////////////////////////////
  897. forward RegTimer1(playerid);
  898. public RegTimer1(playerid)
  899. {
  900. OcistiChat(playerid,16);
  901. new string[250];
  902. TextDrawShowForPlayer(playerid, REGPRIPREMA[0]);
  903. TextDrawShowForPlayer(playerid, REGPRIPREMA[1]);
  904. TextDrawShowForPlayer(playerid, REGPRIPREMA[4]);
  905. TextDrawShowForPlayer(playerid, REGPRIPREMA[5]);
  906. TextDrawShowForPlayer(playerid, REGPRIPREMA[6]);
  907. SetPlayerPos(playerid,1257.5779, -933.5733, 59.4572);
  908. InterpolateCameraPos(playerid, 1257.5779, -933.5733, 59.4572, 788.5506, -1140.7698, 42.1293, 20000);
  909. InterpolateCameraLookAt(playerid, 1256.5906, -933.7269, 59.3223,788.1172, -1141.6698, 41.9794, 20000);
  910. format(string, sizeof(string), "Ucitavam mape ...");
  911. TextDrawSetString(REGPRIPREMA[4], string);
  912. NoviRegTimer2[playerid] = SetTimerEx("RegTimer2",7000, true, "d", playerid);
  913. return 1;
  914. }
  915. /////////////////////////////////////////////////////////
  916. forward RegTimer2(playerid);
  917. public RegTimer2(playerid)
  918. {
  919. OcistiChat(playerid,16);
  920. new string[250];
  921. KillTimer(NoviRegTimer1[playerid]);
  922. TextDrawShowForPlayer(playerid, REGPRIPREMA[0]);
  923. TextDrawShowForPlayer(playerid, REGPRIPREMA[1]);
  924. TextDrawShowForPlayer(playerid, REGPRIPREMA[2]);
  925. TextDrawShowForPlayer(playerid, REGPRIPREMA[4]);
  926. TextDrawShowForPlayer(playerid, REGPRIPREMA[5]);
  927. TextDrawShowForPlayer(playerid, REGPRIPREMA[6]);
  928. format(string, sizeof(string), "Ucitavam Sisteme ...");
  929. TextDrawSetString(REGPRIPREMA[4], string);
  930. NoviRegTimer3[playerid] = SetTimerEx("RegTimer3",7000, true, "d", playerid);
  931. return 1;
  932. }
  933. ////////////////////////////////////////////////////////
  934. forward RegTimer3(playerid);
  935. public RegTimer3(playerid)
  936. {
  937. OcistiChat(playerid,16);
  938. new string[250];
  939. KillTimer(NoviRegTimer2[playerid]);
  940. TextDrawShowForPlayer(playerid, REGPRIPREMA[0]);
  941. TextDrawShowForPlayer(playerid, REGPRIPREMA[1]);
  942. TextDrawShowForPlayer(playerid, REGPRIPREMA[2]);
  943. TextDrawShowForPlayer(playerid, REGPRIPREMA[3]);
  944. TextDrawShowForPlayer(playerid, REGPRIPREMA[4]);
  945. TextDrawShowForPlayer(playerid, REGPRIPREMA[5]);
  946. TextDrawShowForPlayer(playerid, REGPRIPREMA[6]);
  947. format(string, sizeof(string), "Kreiranje vaseg naloga ...");
  948. TextDrawSetString(REGPRIPREMA[4], string);
  949. NoviRegTimer4[playerid] = SetTimerEx("RegTimer4",7000, true, "d", playerid);
  950. return 1;
  951. }
  952. ///////////////////////////////////////////////////////////
  953. forward RegTimer4(playerid);
  954. public RegTimer4(playerid)
  955. {
  956. TextDrawHideForPlayer(playerid, REGPRIPREMA[0]);
  957. TextDrawHideForPlayer(playerid, REGPRIPREMA[1]);
  958. TextDrawHideForPlayer(playerid, REGPRIPREMA[2]);
  959. TextDrawHideForPlayer(playerid, REGPRIPREMA[3]);
  960. TextDrawHideForPlayer(playerid, REGPRIPREMA[4]);
  961. TextDrawHideForPlayer(playerid, REGPRIPREMA[5]);
  962. KillTimer(NoviRegTimer3[playerid]);
  963. KillTimer(NoviRegTimer4[playerid]);
  964. TextDrawHideForPlayer(playerid, REGPRIPREMA[6]);
  965. return 1;
  966. }
  967. ////////////////////////////////////////////////////////
  968. forward Tutorial1(playerid);
  969. public Tutorial1(playerid)
  970. {
  971. OcistiChat(playerid,16);
  972. KillTimer(TutorialTimer[playerid]);
  973. if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, 240); PlayerInfo[playerid][pSkin] = 240; }
  974. if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 93); PlayerInfo[playerid][pSkin] = 93; }
  975. SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 0);
  976. SetPlayerVirtualWorld(playerid, 3475); SetPlayerPos(playerid, 1271.3105,-2348.6055,12.8548);
  977. SetPlayerFacingAngle(playerid, 0.0); SetPlayerCameraPos(playerid, 1184.32, -2426.23, 40.70);
  978. SetPlayerCameraLookAt(playerid, 1187.85, -2423.22, 38.84);
  979. SetPlayerAttachedObject(playerid, 0, 1210, 6, 0.253999, 0.077000, 0.051000, 0.000000, -98.999992, -1.400000, 1.000000, 1.000000, 1.000000, 0, 0);
  980. StopAudioStreamForPlayer(playerid);
  981. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/gqpfldaiyk/Djomla_KS_feat_Firuca_Cina_-_Kljucevi_Od_Andjela.mp3");
  982. /*SCM(playerid, -1,""SPLAVA" ~ Sada prikazujemo neka od pravila ~ ");
  983. SCM(playerid, -1,""SPLAVA" ~ Sada cemo vam prikazati neka od Pravila ~ ");
  984. SCM(playerid, -1,""CRVENA" ~ RolePlay- Simulacija stvarnog zivota ~ ");
  985. SCM(playerid, -1,""BELA" ~ DeathMatch- Ubijanje igraca bez RP razloga ~ ");
  986. SCM(playerid, -1,""SIVA" ~ MetaGaming- Mesanje IC i OOC Informacija ~ ");*/
  987. /*new string[250];
  988. format(string, sizeof(string), "~y~Vi (u sebi):~w~ Vracam se u Beograd nakon 10 godina");
  989. TextDrawSetString(tutorijal, string);*/
  990. InterpolateCameraPos(playerid, 1257.5779, -933.5733, 59.4572, 788.5506, -1140.7698, 42.1293, 20000);
  991. InterpolateCameraLookAt(playerid, 1256.5906, -933.7269, 59.3223,788.1172, -1141.6698, 41.9794, 20000);
  992. TextDrawShowForPlayer(playerid,Tut[5][playerid]); TextDrawShowForPlayer(playerid,Tut[6][playerid]);
  993. TextDrawShowForPlayer(playerid,Tut[7][playerid]); TextDrawShowForPlayer(playerid,Tut[8][playerid]);
  994. TextDrawShowForPlayer(playerid,Tut[9][playerid]); TextDrawShowForPlayer(playerid,Tut[10][playerid]);
  995. TextDrawShowForPlayer(playerid,Tut[11][playerid]); new string[50];
  996. format(string,sizeof(string), "(1/5)"); TextDrawSetString(Tut[11][playerid], string);
  997. TutorialTimer2[playerid] = SetTimerEx("Tutorial2",7000, true, "d", playerid);
  998. ApplyAnimation(playerid,"MISC","seat_lr",2.0,1,0,0,0,0);
  999. return 1;
  1000. }
  1001. ///////////////////////////////////////////////////////
  1002. forward Tutorial2(playerid);
  1003. public Tutorial2(playerid)
  1004. {
  1005. //new string[250];
  1006. KillTimer(TutorialTimer2[playerid]);
  1007. OcistiChat(playerid, 16);
  1008. //format(string, sizeof(string), "~y~Vi (u sebi):~w~ Dosta toga je moglo da se promeni");
  1009. //(tutorijal, string);
  1010. /*SCM(playerid, -1,""SPLAVA" ~ Power Gaming - Radnja koju je nemoguce izvesti u RL ~ ");
  1011. SCM(playerid, -1,""CRVENA" ~ Revange Kill - Ubijanje igraca iz osvete OOC Informacije ~ ");
  1012. SCM(playerid, -1,""BELA" ~ Spawn Kill - Ubijanje igraca na njegovom spawn mestu ~ ");
  1013. SCM(playerid, -1,""SIVA" ~ Bunny Hopping - Trcanje i skakanje u isto vreme ~ ");*/
  1014. new string[128];
  1015. format(string,sizeof(string), "~w~Sada cemo vam prikazati neka od ~y~Pravila"); TextDrawSetString(Tut[7][playerid], string);
  1016. format(string,sizeof(string), "~y~RolePlay- ~w~Simulacija stvarnog zivota."); TextDrawSetString(Tut[8][playerid], string);
  1017. format(string,sizeof(string), "~y~DeathMatch- ~w~Ubijanje igraca bez RP razloga."); TextDrawSetString(Tut[9][playerid], string);
  1018. format(string,sizeof(string), "~y~MetaGaming- ~w~Mesanje IC i OOC Informacija."); TextDrawSetString(Tut[10][playerid], string);
  1019. format(string,sizeof(string), "(2/5)"); TextDrawSetString(Tut[11][playerid], string);
  1020. TutorialTimer3[playerid] = SetTimerEx("Tutorial3",7000, true, "d", playerid);
  1021. return 1;
  1022. }
  1023. ////////////////////////////////////////////////////////
  1024. forward Tutorial3(playerid);
  1025. public Tutorial3(playerid)
  1026. {
  1027. OcistiChat(playerid,16);
  1028. KillTimer(TutorialTimer3[playerid]);
  1029. //new string[250];
  1030. //format(string, sizeof(string), "~y~SPEAKER:~w~ Stigli smo na stanicu Beograd");
  1031. //TextDrawSetString(tutorijal, string);
  1032. OcistiChat(playerid, 16);
  1033. /*SCM(playerid, -1,""SPLAVA" ~ Drive Bying - Pucanje iz vozila ili gazenje pesaka ~ ");
  1034. SCM(playerid, -1,""CRVENA" ~ Non RolePlaying - Ometanje RP-A ili krsenje RP pravila ~ ");
  1035. SCM(playerid, -1,""BELA" ~ Zabranjeno je iskoristavanje bugova/greski na skripti ~ ");
  1036. SCM(playerid, -1,""SIVA" ~ Strogo je zabranjeno hakovanje/citovanje ~ ");*/
  1037. new string[128];
  1038. format(string,sizeof(string), "~y~Power Gaming- ~w~Radnja koju je nemoguce izvesti u RL."); TextDrawSetString(Tut[7][playerid], string);
  1039. format(string,sizeof(string), "~y~Revange Kill- ~w~Ubijanje igraca iz osvete OOC Informacije."); TextDrawSetString(Tut[8][playerid], string);
  1040. format(string,sizeof(string), "~y~Spawn Kill- ~w~Ubijanje igraca na njegovom spawn mestu."); TextDrawSetString(Tut[9][playerid], string);
  1041. format(string,sizeof(string), "~y~Bunny Hopping- ~w~Trcanje i skakanje u isto vreme."); TextDrawSetString(Tut[10][playerid], string);
  1042. format(string,sizeof(string), "(3/5)"); TextDrawSetString(Tut[11][playerid], string);
  1043. TutorialTimer4[playerid] = SetTimerEx("Tutorial4",7000, true, "d", playerid);
  1044. return 1;
  1045. }
  1046. ////////////////////////////////////////////////////////
  1047. forward Tutorial4(playerid);
  1048. public Tutorial4(playerid)
  1049. {
  1050. KillTimer(TutorialTimer4[playerid]);
  1051. //new string[250];
  1052. //format(string, sizeof(string), "~y~Vi (u sebi):~w~ Jao, vec sam stigao?!");
  1053. //(tutorijal, string);
  1054. OcistiChat(playerid, 16);
  1055. /*SCM(playerid, -1,""CRVENA" ~ Procitajte jos jednom pravila na serveru /pravila ~ ");
  1056. SCM(playerid, -1,""BELA" ~ Potrudite se da postujete ova server pravila ~ ");
  1057. SCM(playerid, -1,""SIVA" ~ Ugodnu igru i boravak zeli vam LN:RP administracija ~");*/
  1058. new string[128];
  1059. format(string,sizeof(string), "~y~Drive Bying- ~w~Pucanje iz vozila ili gazenje pesaka."); TextDrawSetString(Tut[7][playerid], string);
  1060. format(string,sizeof(string), "~y~Non Role-Playing- ~w~Ometanje RP-A ili krsenje RP pravila."); TextDrawSetString(Tut[8][playerid], string);
  1061. format(string,sizeof(string), "~w~Zabranjeno je iskoristavanje ~y~bugova/greski ~w~na skripti."); TextDrawSetString(Tut[9][playerid], string);
  1062. format(string,sizeof(string), "~w~Strogo je zabranjeno ~r~hakovanje/citovanje."); TextDrawSetString(Tut[10][playerid], string);
  1063. format(string,sizeof(string), "(4/5)"); TextDrawSetString(Tut[11][playerid], string);
  1064. TutorialTimer5[playerid] = SetTimerEx("Tutorial5",7000, true, "d", playerid);
  1065. return 1;
  1066. }
  1067. ///////////////////////////////////////////////////////
  1068. forward Tutorial5(playerid);
  1069. public Tutorial5(playerid)
  1070. {
  1071. KillTimer(TutorialTimer5[playerid]);
  1072. SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 0);
  1073. SetPlayerVirtualWorld(playerid, 3475); //new string[250];
  1074. //format(string, sizeof(string), "~y~Vi (u sebi):~w~ Valjda cu ovde naci srecu!!");
  1075. //TextDrawSetString(tutorijal, string);
  1076. OcistiChat(playerid, 16);
  1077. /*SCM(playerid, -1,""SPLAVA" ~ Tutorial uspesno zavrsen ! ~");
  1078. SCM(playerid, -1,""SIVA" ~ Pristupam spawnu igraca ! ~ ");*/
  1079. new string[128];
  1080. format(string,sizeof(string), "~w~Ovo bi bio kraj tutoriala."); TextDrawSetString(Tut[7][playerid], string);
  1081. format(string,sizeof(string), "~w~Procitajte jos jednom pravila na serveru ~y~/pravila."); TextDrawSetString(Tut[8][playerid], string);
  1082. format(string,sizeof(string), "~w~Potrudite se da postujete ova server pravila."); TextDrawSetString(Tut[9][playerid], string);
  1083. format(string,sizeof(string), "~w~Ugodnu igru i boravak zeli vam ~r~LN:RP ~w~administracija."); TextDrawSetString(Tut[10][playerid], string);
  1084. format(string,sizeof(string), "(5/5)"); TextDrawSetString(Tut[11][playerid], string);
  1085. TutorialTimer6[playerid] = SetTimerEx("Tutorial6",6000, true, "d", playerid);
  1086. return 1;
  1087. }
  1088. ///////////////////////////////////////////////////////
  1089. forward Tutorial6(playerid);
  1090. public Tutorial6(playerid)
  1091. {
  1092. OcistiChat(playerid,16);
  1093. TextDrawHideForPlayer(playerid,Tut[5][playerid]); TextDrawHideForPlayer(playerid,Tut[6][playerid]);
  1094. TextDrawHideForPlayer(playerid,Tut[7][playerid]); TextDrawHideForPlayer(playerid,Tut[8][playerid]);
  1095. TextDrawHideForPlayer(playerid,Tut[9][playerid]); TextDrawHideForPlayer(playerid,Tut[10][playerid]);
  1096. TextDrawHideForPlayer(playerid,Tut[11][playerid]);
  1097. KillTimer(TutorialTimer6[playerid]);
  1098. TextDrawHideForPlayer(playerid,tutorijal); SetCameraBehindPlayer(playerid);
  1099. PlayerInfo[playerid][pLevel] = 1; PlayerInfo[playerid][pNovacBanka] = 500; PlayerInfo[playerid][pNovacDzep] = 10000; GivePlayerMoney(playerid, PlayerInfo[playerid][pNovacDzep]);
  1100. new string[512]; PlayerInfo[playerid][pTutorial] = 1;
  1101. new iskustvo;
  1102. (iskustvo = PlayerInfo[playerid][pLevel] * 2) + 2;
  1103. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1104. new adminCmdsList[2048];
  1105. new strings[308];
  1106. strdel(adminCmdsList, 0, sizeof(adminCmdsList));
  1107. strcat(adminCmdsList, ""ZUTA2"Dobrodosao, lepo te je opet videti na "BELA"serveru!\n");
  1108. format(strings, sizeof(strings), ""ZUTA2"Ime :"BELA" %s \n"ZUTA2"Level:"BELA" %d"ZUTA2"\nRespekti: "BELA"%d/%d"ZUTA2"\nSati igre: "BELA"%d\n\n",GetName(playerid),PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
  1109. strcat(adminCmdsList, strings);
  1110. if (PlayerInfo[playerid][pSupporter] >= 1)
  1111. {
  1112. strcat(adminCmdsList, ""CRVENA"Administrativni podaci:\n");
  1113. strcat(adminCmdsList, ""BELA"Ulogovan si kao {ZUTA2}supporter.\n\n");
  1114. }
  1115. if (PlayerInfo[playerid][pAdmin] >= 1)
  1116. {
  1117. strcat(adminCmdsList, ""CRVENA"Administrativni podaci:\n");
  1118. strcat(adminCmdsList, ""BELA"Ulogovan si kao "CRVENA"Admin.\n\n");
  1119. }
  1120. strcat(adminCmdsList, ""BELA"Ukoliko vam je potrebna pomoc, zatrazite je na "BELA"/askq\n");
  1121. strcat(adminCmdsList, ""BELA"Posetite nas forum "ZUTA2"www.uskoro.tk\n");
  1122. strcat(adminCmdsList, ""BELA"Uzivajte u igranju na nasem serveru!\n\n");
  1123. //strcat(adminCmdsList, "{FFCC00}=================================================");
  1124. ShowPlayerDialog(playerid, PRAVILA , DIALOG_STYLE_MSGBOX, ""CRVENA"INFORMACIJE", adminCmdsList, "OK", "");
  1125. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1126. format(string,sizeof(string),""ZUTA2"-------------------Last Night RolePlay-------------------");
  1127. SCM(playerid,-1,string);
  1128. format(string,sizeof(string),""ZUTA2"- Dobrodosao "BELA"%s "ZUTA2"na Last Night RolePlay.",GetName(playerid));
  1129. SCM(playerid,-1,string);
  1130. format(string,sizeof(string),""ZUTA2"- [INFO]: "BELA"Trenutni level: %d | Respekti: %d/%d | Sati Igre: %d.",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
  1131. SCM(playerid,-1,string);
  1132. format(string,sizeof(string),""ZUTA2"- Skripter :"BELA" Corleone ");
  1133. SCM(playerid,-1,string);
  1134. format(string,sizeof(string),""ZUTA2"--------------------------------------------------------------------------");
  1135. SCM(playerid,-1,string);
  1136. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  1137. SCM(playerid, -1, ""SPLAVA"{FFCC00}[LN:RP]{FFFFFF} "BELA"Ako nemate prevoz , iznajmite vozilo ili pozovite taxi");
  1138. SCM(playerid, -1, "{FFCC00}[LN:RP]{FFFFFF} Komande mozete pronaci na /help, a pravila na /pravila");
  1139. TogglePlayerControllable(playerid, 1); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
  1140. if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, 240); PlayerInfo[playerid][pSkin] = 240; }
  1141. if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 93); PlayerInfo[playerid][pSkin] = 93; }
  1142. UlogovanProvera[playerid] = 1; new rand = random(sizeof(RandomSpawn2));
  1143. SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], RandomSpawn2[rand][0], RandomSpawn2[rand][1], RandomSpawn2[rand][2], RandomSpawn2[rand][3], 0, 0, 0, 0, 0, 0);
  1144. SpawnPlayer(playerid); SpawnIgraca(playerid); SavePlayer(playerid);
  1145. TogglePlayerControllable(playerid, 0);
  1146. freeze[playerid] = SetTimerEx("Freeze",5000, false, "i", playerid);
  1147. return 1;
  1148. }
  1149. ///////////////////////////////////////////////////////
  1150. forward Registracija1(playerid);
  1151. public Registracija1(playerid)
  1152. {
  1153. KillTimer(IntroTimer[playerid]); OcistiChat(playerid,16);
  1154. SetPlayerCameraPos(playerid, 1911.3069, -1515.2876, 40.0228);
  1155. SetPlayerCameraLookAt(playerid, 1910.5417, -1514.6451, 40.3429);
  1156. SetPlayerPos(playerid, 1911.3069, -1515.2876, 40.0228);
  1157. LogRegTimer[playerid] = SetTimerEx("LogReg",5000, false, "i", playerid);
  1158. return 1;
  1159. }
  1160. ///////////////////////////////////////////////////////
  1161. forward Registracija2(playerid);
  1162. public Registracija2(playerid)
  1163. {
  1164. KillTimer(IntroTimer2[playerid]); TextDrawShowForPlayer(playerid,Intro[2]);
  1165. TextDrawShowForPlayer(playerid,Intro[3]); TextDrawShowForPlayer(playerid,Intro[4]);
  1166. IntroTimer3[playerid] = SetTimerEx("Registracija3",5000, false, "i", playerid);
  1167. return 1;
  1168. }
  1169. ///////////////////////////////////////////////////////
  1170. forward Registracija3(playerid);
  1171. public Registracija3(playerid)
  1172. {
  1173. KillTimer(IntroTimer3[playerid]); TextDrawShowForPlayer(playerid,Intro[5]);
  1174. IntroTimer4[playerid] = SetTimerEx("Registracija4",5000, false, "i", playerid);
  1175. return 1;
  1176. }
  1177. ///////////////////////////////////////////////////////
  1178. forward Registracija4(playerid);
  1179. public Registracija4(playerid)
  1180. {
  1181. KillTimer(IntroTimer4[playerid]); TextDrawShowForPlayer(playerid,Intro[6]);
  1182. TextDrawShowForPlayer(playerid,Intro[7]); TextDrawShowForPlayer(playerid,Intro[8]);
  1183. IntroTimer5[playerid] = SetTimerEx("Registracija5",5000, false, "i", playerid);
  1184. return 1;
  1185. }
  1186. ///////////////////////////////////////////////////////
  1187. forward Registracija5(playerid);
  1188. public Registracija5(playerid)
  1189. {
  1190. KillTimer(IntroTimer5[playerid]); TextDrawShowForPlayer(playerid,Intro[9]);
  1191. ///////////////////////////////////////////////////////////////
  1192. LogRegTimer[playerid] = SetTimerEx("LogReg",5000, false, "i", playerid);
  1193. return 1;
  1194. }
  1195. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  1196. forward LogReg(playerid);
  1197. public LogReg(playerid)
  1198. {
  1199. KillTimer(LogRegTimer[playerid]); g_SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
  1200. /////////////////////////////////////////////////////////////////////////////////////
  1201. if(fexist(Korisnici(playerid)))
  1202. {
  1203. new loginstring[512];
  1204. new loginname[126];
  1205. GetPlayerName(playerid,loginname,sizeof(loginname));
  1206. format(loginstring,sizeof(loginstring),"{0066FF}"BELA"|{0066FF}======================================="BELA"|\n\n"BELA"Dobrodosli na Last Night RolePlay\n\n"BELA"Ime: "CRVENA"%s\n"BELA"Forum:"CRVENA" www.uskoro.tk/forum \n"BELA"Teamspeak:"CRVENA" 178.33.216.108:9988 \n"BELA"Unesite vas"CRVENA" password\n{0066FF}"BELA"|{0066FF}======================================="BELA"|",loginname);
  1207. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{FFCC00}Login",loginstring,"Login","Izlaz");
  1208. }
  1209. else
  1210. {
  1211. TextDrawHideForPlayer(playerid,Intro[0]); TextDrawHideForPlayer(playerid,Intro[1]); TextDrawHideForPlayer(playerid,Intro[2]);
  1212. TextDrawHideForPlayer(playerid,Intro[3]); TextDrawHideForPlayer(playerid,Intro[4]); TextDrawHideForPlayer(playerid,Intro[5]);
  1213. TextDrawHideForPlayer(playerid,Intro[6]); TextDrawHideForPlayer(playerid,Intro[7]); TextDrawHideForPlayer(playerid,Intro[8]);
  1214. TextDrawHideForPlayer(playerid,Intro[9]); TextDrawHideForPlayer(playerid,Intro[10]);
  1215. if(ServerInfo[isRegistracija] == 1)
  1216. {
  1217. StatusKonekta(playerid, 5);
  1218. }
  1219. else if(ServerInfo[isRegistracija] != 1)
  1220. {
  1221. PokaziLogRegTextDraw(playerid);
  1222. }
  1223. }
  1224. return 1;
  1225. }
  1226. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  1227. public OnPlayerDisconnect(playerid, reason)
  1228. {
  1229. KillTimer(IntroTimer[playerid]); KillTimer(IntroTimer2[playerid]);
  1230. KillTimer(IntroTimer3[playerid]); KillTimer(IntroTimer4[playerid]);
  1231. KillTimer(IntroTimer5[playerid]); KillTimer(LogRegTimer[playerid]);
  1232. AttachObjectRemove(playerid);
  1233. //////////////////////////////////////////
  1234. SavePlayer(playerid);
  1235. //////////////////////////////////////////////
  1236. return 1;
  1237. }
  1238. ///////////////////////////////////////////
  1239. public OnPlayerSpawn(playerid)
  1240. {
  1241. BelaBojaIgraca(playerid); SpawnIgraca(playerid);
  1242. SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  1243. ///////////////////////////////////////////////////////
  1244. StopAudioStreamForPlayer(playerid); // Zaustaviti pesmu na loginu!
  1245. ///////////////////////////////////////////////////////
  1246. return 1;
  1247. }
  1248. /////////////////////////////////////////////////////////////////////////////////////////////
  1249. public OnPlayerDeath(playerid, killerid, reason)
  1250. {
  1251. return 1;
  1252. }
  1253. ////////////////////////////////////////////////////////////////////////////////////////////
  1254. stock SpawnIgraca(playerid)
  1255. {
  1256. return 1;
  1257. }
  1258. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  1259. stock Ime(playerid)
  1260. {
  1261. new ime[MAX_PLAYER_NAME];
  1262. GetPlayerName(playerid, ime, MAX_PLAYER_NAME);
  1263. strreplace(ime, '_', ' ');
  1264. return ime;
  1265. }
  1266. ///////////////////////////////////////////////////////////////////////////////////////////////////////
  1267. forward OcistiChat(playerid, lines);
  1268. public OcistiChat(playerid, lines)
  1269. {
  1270. for(new i = 0; i < lines; i++)
  1271. {
  1272. SCM(playerid, -1, " ");
  1273. }
  1274. return 1;
  1275. }
  1276. /////////////////////////////////////////////////////////////////////////////
  1277. ///////////////////////////////////////////////////////////////////////////
  1278. forward SendAdminMessage(color, string[]);
  1279. public SendAdminMessage(color, string[])
  1280. {
  1281. foreach(Player,i)
  1282. {
  1283. if(PlayerInfo[i][pAdmin] >= 1)
  1284. {
  1285. SendClientMessage(i, color, string);
  1286. }
  1287. }
  1288. }
  1289. ///////////////////////////////////////////////////////////////////////////
  1290. forward AdminSupporter(color, string[]);
  1291. public AdminSupporter(color, string[])
  1292. {
  1293. foreach(Player,i)
  1294. {
  1295. if(PlayerInfo[i][pSupporter] >= 1|| PlayerInfo[i][pAdmin] >= 1)
  1296. {
  1297. SendClientMessage(i, color, string);
  1298. }
  1299. }
  1300. }
  1301. /////////////////////////////////////////////////////////////////////////////
  1302. ///////////////////////////////////////////////////////////
  1303. public OnVehicleSpawn(vehicleid)
  1304. {
  1305. return 1;
  1306. }
  1307. ///////////////////////////////////////////////////////////////////////////
  1308. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  1309. {
  1310. return 1;
  1311. }
  1312.  
  1313. /////////////////////////////////////////////////
  1314. public OnPlayerText(playerid, text[])
  1315. {
  1316. if (UlogovanProvera[playerid] != 1)
  1317. {
  1318. SCM(playerid,-1,""CRVENA"{FFCC00}[LN:RP]{FFFFFF} "ZUTA"Moras biti ulogovan da bi pisao!");
  1319. return 0;
  1320. }
  1321. return 1;
  1322. }
  1323. ///////////////////////////////////////////////////////////////////////////
  1324. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1325. {
  1326. return 1;
  1327. }
  1328. ///////////////////////////////////////////////////////////////////////////
  1329. public OnPlayerExitVehicle(playerid, vehicleid)
  1330. {
  1331. return 1;
  1332. }
  1333. ///////////////////////////////////////////////////////////////////////////
  1334. public OnPlayerStateChange(playerid, newstate, oldstate)
  1335. {
  1336. return 1;
  1337. }
  1338. ///////////////////////////////////////////////////////////////////////////
  1339. public OnPlayerEnterCheckpoint(playerid)
  1340. {
  1341. return 1;
  1342. }
  1343. ///////////////////////////////////////////
  1344. public OnPlayerLeaveCheckpoint(playerid)
  1345. {
  1346. return 1;
  1347. }
  1348. ///////////////////////////////////////////////////////////////////////////
  1349. public OnPlayerEnterRaceCheckpoint(playerid)
  1350. {
  1351. return 1;
  1352. }
  1353. ///////////////////////////////////////////////////////////////////////////
  1354. public OnPlayerLeaveRaceCheckpoint(playerid)
  1355. {
  1356. return 1;
  1357. }
  1358. ///////////////////////////////////////////////////////////////////////////
  1359. public OnRconCommand(cmd[])
  1360. {
  1361. return 1;
  1362. }
  1363. ///////////////////////////////////////////////////////////////////////////
  1364. public OnPlayerRequestSpawn(playerid)
  1365. {
  1366. if(UlogovanProvera[playerid] == 0)
  1367. {
  1368. StatusKonekta(playerid, 3);
  1369. return 0;
  1370. }
  1371. else
  1372. {
  1373. SpawnIgraca(playerid);
  1374. return 1;
  1375. }
  1376. }
  1377. ///////////////////////////////////////////////////////////////////////////
  1378. public OnPlayerPickUpDynamicPickup(playerid, pickupid)
  1379. {
  1380. return 1;
  1381. }
  1382. ///////////////////////////////////////////////////////////////////////////
  1383. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1384. {
  1385. return 1;
  1386. }
  1387. ///////////////////////////////////////////////////////////////////////////
  1388. public OnPlayerUpdate(playerid)
  1389. {
  1390. return 1;
  1391. }
  1392. /////////////////////////////////////////////////////////////////////////////
  1393. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1394. {
  1395. ///////////////////////////////////////////////////////////////////////////////////
  1396. if(dialogid == DIALOG_PSPAWN)
  1397. {
  1398. if(!response) return 1;
  1399. switch(listitem)
  1400. {
  1401. case 0:
  1402. {
  1403. PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
  1404. SCM(playerid,-1,""CRVENA"{FFCC00}[LN:RP]{FFFFFF} "SIVA"Uspesno ste odabrali spawn | Market Stanica!");
  1405. SavePlayer(playerid);
  1406. }
  1407. }
  1408. }
  1409. ///////////////////////////////////////////////////////////////////////////////////
  1410. if(dialogid == DIALOG_SPODESAVANJA)
  1411. {
  1412. if(!response) return 1;
  1413. new string[128];
  1414. switch(listitem)
  1415. {
  1416. case 0:
  1417. {
  1418. if(ServerInfo[isRegistracija] == 0)
  1419. {
  1420. ServerInfo[isRegistracija] = 1; SacuvajPodesavanja();
  1421. format(string,sizeof(string),"{FFCC00}[LN:RP]{FFFFFF} "CRVENA"Admin %s je onemogucio registraciju na serveru!",GetName(playerid));
  1422. AdminSupporter(-1,string);
  1423. }
  1424.  
  1425. }
  1426.  
  1427. }
  1428. }
  1429. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  1430. if(dialogid == REGLOG_PRAVILA)
  1431. {
  1432. if(!response) return Kick(playerid);
  1433. if(response)
  1434. {
  1435. SetPlayerPos(playerid,1257.5779, -933.5733, 59.4572);
  1436. InterpolateCameraPos(playerid, 1257.5779, -933.5733, 59.4572, 788.5506, -1140.7698, 42.1293, 20000);
  1437. InterpolateCameraLookAt(playerid, 1256.5906, -933.7269, 59.3223,788.1172, -1141.6698, 41.9794, 20000);
  1438. new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
  1439. format(regstring,sizeof(regstring),"{FFFFFF}Dobrodosli "SPLAVA"%s,\n\n{FFFFFF}Molimo vas da unesete zeljenu lozinku\nkako biste zapoceli registraciju.\nKada upisete zeljenu lozinku,\nbice vam prikazan intro.\n\nUzivajte igrajuci na nasem serveru",regname);
  1440. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"{FFCC00}Register",regstring,"Registracija","Izlaz");
  1441. }
  1442. }
  1443. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1444. if(dialogid == 3)
  1445. {
  1446. if(!response) return Kick(playerid);
  1447. if(response)
  1448. {
  1449. switch(listitem)
  1450. {
  1451. case 0:
  1452. {
  1453. SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste musko.");
  1454. PlayerInfo[playerid][pSex] = 1;
  1455. ShowPlayerDialog(playerid, 4, 1, ""ZUTA2"Godine", ""BELA"U polje upisite koliko imate godina.\nNe mozete ici manje od 10 ili vise od 60", "Unesi", "Odustani");
  1456. }
  1457. case 1:
  1458. {
  1459. SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste zensko.");
  1460. PlayerInfo[playerid][pSex] = 2;
  1461. ShowPlayerDialog(playerid, 4, 1, ""ZUTA2"Godine", ""BELA"U polje upisite koliko imate godina.\nNe mozete ici manje od 10 ili vise od 60", "Unesi", "Odustani");
  1462. }
  1463. }
  1464. }
  1465. }
  1466. /////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1467. if(dialogid == 5)
  1468. {
  1469. if(!response) return Kick(playerid);
  1470. if(response)
  1471. {
  1472. switch(listitem)
  1473. {
  1474. case 0:
  1475. {
  1476. PlayerInfo[playerid][pDrzava] = 1; //Srbija
  1477. new atext[20];
  1478. if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
  1479. else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
  1480. new otext[20];
  1481. if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
  1482. else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
  1483. else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
  1484. else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
  1485. else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
  1486. else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
  1487. else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
  1488. else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
  1489. new uspesnareg[400];
  1490. format(uspesnareg,sizeof(uspesnareg),"{0066FF}Ime: "BELA"%s\n{0066FF}Prezime: "BELA"%s\n{0066FF}Godine: "BELA"%d\n{0066FF}Pol: "BELA"%s\n{0066FF}Drzava: "BELA"%s\n\n{0066FF}Email: "BELA"%s\n{FFCC00}<<{0066FF} Kliknite 'DALJE' da bi vam se prikazao tutorial{FFCC00} >>",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
  1491. ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,"{FFCC00}INFORMACIJE",uspesnareg,"Dalje","Izadji");
  1492. SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Srbije");
  1493. }
  1494. case 1:
  1495. {
  1496. PlayerInfo[playerid][pDrzava] = 2; //Bosna
  1497. new atext[20];
  1498. if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
  1499. else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
  1500. new otext[20];
  1501. if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
  1502. else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
  1503. else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
  1504. else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
  1505. else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
  1506. else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
  1507. else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
  1508. else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
  1509. new uspesnareg[400];
  1510. format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
  1511. ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
  1512. SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz BiH !");
  1513. }
  1514. case 2:
  1515. {
  1516. PlayerInfo[playerid][pDrzava] = 3; //Republika Srpska
  1517. new atext[20];
  1518. if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
  1519. else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
  1520. new otext[20];
  1521. if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
  1522. else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
  1523. else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
  1524. else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
  1525. else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
  1526. else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
  1527. else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
  1528. else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
  1529. new uspesnareg[400];
  1530. format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
  1531. ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
  1532. SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Republike Srpske");
  1533. }
  1534. case 3:
  1535. {
  1536. PlayerInfo[playerid][pDrzava] = 4; // Crna Gora
  1537. new atext[20];
  1538. if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
  1539. else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
  1540. new otext[20];
  1541. if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
  1542. else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
  1543. else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
  1544. else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
  1545. else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
  1546. else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
  1547. else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
  1548. else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
  1549. new uspesnareg[400];
  1550. format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
  1551. ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
  1552. SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Crne Gore !");
  1553. }
  1554. case 4:
  1555. {
  1556. PlayerInfo[playerid][pDrzava] = 5; //Hrvatska
  1557. new atext[20];
  1558. if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
  1559. else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
  1560. new otext[20];
  1561. if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
  1562. else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
  1563. else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
  1564. else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
  1565. else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
  1566. else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
  1567. else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
  1568. else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
  1569. new uspesnareg[400];
  1570. format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
  1571. ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
  1572. SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Hrvatske !");
  1573. }
  1574. case 5:
  1575. {
  1576. PlayerInfo[playerid][pDrzava] = 6; //Makedonija
  1577. new atext[20];
  1578. if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
  1579. else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
  1580. new otext[20];
  1581. if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
  1582. else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
  1583. else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
  1584. else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
  1585. else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
  1586. else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
  1587. else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
  1588. else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
  1589. new uspesnareg[400];
  1590. format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
  1591. ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
  1592. SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Makedonije !");
  1593. }
  1594. case 6:
  1595. {
  1596. PlayerInfo[playerid][pDrzava] = 7; //Slovenija
  1597. new atext[20];
  1598. if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
  1599. else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
  1600. new otext[20];
  1601. if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
  1602. else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
  1603. else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
  1604. else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
  1605. else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
  1606. else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
  1607. else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
  1608. else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
  1609. new uspesnareg[400];
  1610. format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
  1611. ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
  1612. SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Slovenije !");
  1613. }
  1614. case 7:
  1615. {
  1616. PlayerInfo[playerid][pDrzava] = 8; //Ostalo
  1617. new atext[20];
  1618. if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
  1619. else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
  1620. new otext[20];
  1621. if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
  1622. else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
  1623. else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
  1624. else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
  1625. else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
  1626. else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
  1627. else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
  1628. else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
  1629. new uspesnareg[400];
  1630. format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
  1631. ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
  1632. SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi niste iz gore navedenih drzava.");
  1633. }
  1634. }
  1635. }
  1636. }
  1637. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1638. if(dialogid == 4)
  1639. {
  1640. if(!response) return Kick(playerid);
  1641. if(response)
  1642. {
  1643. new godine;
  1644. godine = strval(inputtext);
  1645. if(godine < 10 || godine > 60)
  1646. {
  1647. SCM(playerid,-1,"{FFCC00}[LN:RP]"BELA" Ne mozete upisati da imate manje od 10, ili vise od 60 godina !");
  1648. ShowPlayerDialog(playerid, 4, 1, ""ZUTA2"Godine", ""BELA"U polje upisite koliko imate godina.\nNe mozete ici manje od 10 ili vise od 60", "Unesi", "Odustani");
  1649. return 1;
  1650. }
  1651. new string[128];
  1652. PlayerInfo[playerid][pGodine] = strval(inputtext);
  1653. format(string,sizeof(string),""ZUTA2"[LN:RP]"BELA" Ok, znaci vi imate %d godina.",PlayerInfo[playerid][pGodine]);
  1654. SCM(playerid,-1,string);
  1655. ShowPlayerDialog(playerid, 12, 1, ""ZUTA2"E-Mail", ""BELA"U polje upisite vasu E-Mail adresu", "Unesi", "Odustani");
  1656. }
  1657. }
  1658. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1659. if(dialogid == 12)
  1660. {
  1661. if (!response) return Kick(playerid);
  1662. if(response)
  1663. {
  1664. new emailp = strfind(inputtext, "@", true);
  1665. if(emailp == -1)
  1666. {
  1667. SCM(playerid,-1,"{FFCC00}[LN:RP]"BELA" Netacan mail. Niste upisali znak @ , ili kako to neki zovu , majmunsko A");
  1668. ShowPlayerDialog(playerid, 12, 1, ""ZUTA2"E-Mail", ""BELA"U polje upisite vasu E-Mail adresu", "Unesi", "Odustani");
  1669. return 1;
  1670. }
  1671. new emailp2 = strfind(inputtext, ".", true);
  1672. if(emailp2 == -1)
  1673. {
  1674. SCM(playerid,-1,"{FFCC00}[LN:RP]"BELA" Netacan mail. Niste upisali .(tacku), upisite .com, .info !");
  1675. ShowPlayerDialog(playerid, 12, 1, "{FFCC00}E-MAIL", ""BELA"U polje upisite vasu E-Mail adresu.\nTrudite se da upisete pravu", "Unesi", "Odustani");
  1676. return 1;
  1677. }
  1678. new string[128];
  1679. new INI:File = INI_Open(Korisnici(playerid));
  1680. INI_SetTag(File,"data");
  1681. INI_WriteString(File, "Email", inputtext);
  1682. format(string, sizeof(string), "%s", inputtext);
  1683. PlayerInfo[playerid][pEmail] = string;
  1684. INI_Close(File);
  1685. format(string,sizeof(string),""ZUTA2"[LN:RP]"BELA" OK, vas mail je upisan u bazu podataka mejlova !");
  1686. SCM(playerid,-1,string);
  1687. ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "{FFCC00}Drzava", ""SPLAVA"{0066FF}- "BELA"Srbija\n"SPLAVA"{0066FF}- "BELA"Bosna i Hercegovina\n"SPLAVA"{0066FF}- "BELA"Republika Srpska\n"SPLAVA"{0066FF}- "BELA"Crna Gora\n"SPLAVA"{0066FF}- "BELA"Hrvatska\n"SPLAVA"{0066FF}- "BELA"Makedonija\n"SPLAVA"{0066FF}- "BELA"Slovenija\n"SPLAVA"{0066FF}- "BELA"Ostalo", "Dalje", "Odustani");
  1688. }
  1689. }
  1690. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1691. if(dialogid == 22)
  1692. {
  1693. if (!response) return Kick(playerid);
  1694. if(response)
  1695. {
  1696. TutorialTimer[playerid] = SetTimerEx("Tutorial1",465, false, "i", playerid);
  1697. }
  1698. }
  1699. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1700. switch (dialogid)
  1701. {
  1702. case DIALOG_REGISTER:
  1703. {
  1704. if(!response) return Kick(playerid);
  1705. if(response)
  1706. {
  1707. if(strlen(inputtext) < MIN_DUZINA_LOZINKE)
  1708. {
  1709. new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
  1710. format(regstring,sizeof(regstring),"{0066FF}"BELA"|{0066FF}======================================="BELA"|\n\n"BELA"Dobrodosli na Last Night RolePlay\n\n"BELA"Ime: "CRVENA"%s\n"BELA"Forum:"CRVENA" www.uskoro.tk/forum \n"BELA"Teamspeak:"CRVENA" 178.33.216.108:9988 \n"BELA"Unesite vas"CRVENA" password\n{0066FF}"BELA"|{0066FF}======================================="BELA"|",regname);
  1711. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"{FFCC00}Rregister",regstring,"Registracija","Izlaz");
  1712. SCM(playerid,-1,"{FFCC00}[LN:RP]:{FFFFFF} Lozinka mora imati vise od 6 znakova.");
  1713. }
  1714. else if(strlen(inputtext) > MAX_DUZINA_LOZINKE)
  1715. {
  1716. new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
  1717. format(regstring,sizeof(regstring),"{0066FF}"BELA"|{0066FF}======================================="BELA"|\n\n"BELA"Dobrodosli na Last Night RolePlay\n\n"BELA"Ime: "CRVENA"%s\n"BELA"Forum:"CRVENA" www.uskoro.tk/forum \n"BELA"Teamspeak:"CRVENA" 178.33.216.108:9988 \n"BELA"Unesite vas"CRVENA" password\n{0066FF}"BELA"|{0066FF}======================================="BELA"|",regname);
  1718. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"{FFCC00}Register",regstring,"Registracija","Izlaz");
  1719. SCM(playerid,-1,"{FFCC00}[LN:RP]:{FFFFFF} Lozinka ne sme imati vise od 14 znakova.");
  1720. }
  1721. else if(strlen(inputtext) >= MIN_DUZINA_LOZINKE && strlen(inputtext) <= MAX_DUZINA_LOZINKE)
  1722. {
  1723. new INI:File = INI_Open(Korisnici(playerid));
  1724. INI_SetTag(File,"data");
  1725. INI_WriteInt(File,"Password",udb_hash(inputtext));
  1726. INI_WriteInt(File,"Cash",0);
  1727. INI_WriteInt(File,"Admin",0);
  1728. INI_WriteInt(File,"Level",1);
  1729. INI_WriteInt(File,"Supporter",0);
  1730. INI_WriteInt(File,"Skin",0);
  1731. INI_WriteInt(File,"Godine",0);
  1732. INI_WriteInt(File,"Drzava",0);
  1733. INI_WriteInt(File,"Pol",0);
  1734. INI_WriteInt(File,"Tutorial",0);
  1735. INI_WriteInt(File,"Email",0);
  1736. INI_WriteInt(File,"NovacBanka",0);
  1737. INI_WriteInt(File,"Respekti",0);
  1738. INI_WriteInt(File,"SatiIgre",0);
  1739. INI_WriteInt(File,"ProveraSpawna",0);
  1740. INI_WriteInt(File,"BorbeniStil",4);
  1741. INI_Close(File);
  1742. new string[128];
  1743. format(string,sizeof(string),""ZUTA"{FFCC00}[LN:RP] "BELA"Uspesno ste se registrovali, vasa lozinka je upisana u nasu data bazu.");
  1744. SCM(playerid,-1,string);
  1745. ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "{FFCC00}Pol", "{0066FF}- {FFFFFF}Musko\n{0066FF}- {FFFFFF}Zensko", "Dalje", "Odustani");
  1746. }
  1747. }
  1748. }
  1749. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1750. case DIALOG_LOGIN:
  1751. {
  1752. if(!response) return Kick(playerid);
  1753. if(response)
  1754. {
  1755. if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
  1756. {
  1757. INI_ParseFile(Korisnici(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  1758. new rand = random(sizeof(RandomSpawn2));
  1759. SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], RandomSpawn2[rand][0], RandomSpawn2[rand][1], RandomSpawn2[rand][2], RandomSpawn2[rand][3], 0, 0, 0, 0, 0, 0);
  1760. SpawnPlayer(playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pNovacDzep]);
  1761. SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pBorbeniStil]);
  1762. SetCameraBehindPlayer(playerid);
  1763. UlogovanProvera[playerid] = 1;
  1764. sakrijlogintd(playerid);
  1765. OcistiChat(playerid, 10);
  1766. new string[512],iskustvo;
  1767. iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
  1768. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1769. new adminCmdsList[2048];
  1770. new strings[308];
  1771. strdel(adminCmdsList, 0, sizeof(adminCmdsList));
  1772. strcat(adminCmdsList, ""ZUTA2"Dobrodosao, lepo te je opet videti na "BELA"serveru!\n");
  1773. format(strings, sizeof(strings), ""ZUTA2"Ime :"BELA" %s \n"ZUTA2"Level:"BELA" %d"ZUTA2"\nRespekti: "BELA"%d/%d"ZUTA2"\nSati igre: "BELA"%d\n\n",GetName(playerid),PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
  1774. strcat(adminCmdsList, strings);
  1775. if (PlayerInfo[playerid][pSupporter] >= 1)
  1776. {
  1777. strcat(adminCmdsList, ""ZUTA2"Administrativni podaci:\n");
  1778. strcat(adminCmdsList, ""BELA"Ulogovan si kao "ZUTA2"supporter.\n\n");
  1779. }
  1780. if (PlayerInfo[playerid][pAdmin] >= 1)
  1781. {
  1782. strcat(adminCmdsList, ""CRVENA"Administrativni podaci:\n");
  1783. strcat(adminCmdsList, ""BELA"Ulogovan si kao "CRVENA"Admin.\n\n");
  1784. }
  1785. strcat(adminCmdsList, ""ZUTA2"Ukoliko vam je potrebna pomoc, potrazite je na "BELA"/askq\n");
  1786. strcat(adminCmdsList, ""ZUTA2"Posetite nas forum "BELA"www.uskoro.tk\n");
  1787. strcat(adminCmdsList, ""ZUTA2"Uzivajte u igranju na nasem serveru!\n\n");
  1788. strcat(adminCmdsList, "{FFCC00}=================================================");
  1789. ShowPlayerDialog(playerid, PRAVILA , DIALOG_STYLE_MSGBOX, ""CRVENA"INFORMACIJE", adminCmdsList, "OK", "");
  1790. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1791. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  1792. format(string,sizeof(string),""ZUTA2"-------------------Last Night RolePlay-------------------");
  1793. SCM(playerid,-1,string);
  1794. format(string,sizeof(string),""ZUTA2"- Dobrodosao "BELA"%s "ZUTA2"na Last Night RolePlay.",GetName(playerid));
  1795. SCM(playerid,-1,string);
  1796. format(string,sizeof(string),""ZUTA2"- [INFO]: "BELA"Trenutni level: %d | Respekti: %d/%d | Sati Igre: %d.",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
  1797. SCM(playerid,-1,string);
  1798. format(string,sizeof(string),""ZUTA2"- Skripter :"BELA" Corleone ");
  1799. SCM(playerid,-1,string);
  1800. format(string,sizeof(string),""ZUTA2"----------------------------------------------------------------------------");
  1801. SCM(playerid, -1, string);
  1802. if(PlayerInfo[playerid][pTutorial] == 0)
  1803. {
  1804. SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Niste zavrsili registraciju, sada ponovo morate gleadti tutorial!");
  1805. ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""SPLAVA"- "BELA"Musko\n"SPLAVA"- "BELA"Zensko", "Dalje", "Odustani");
  1806. SetPlayerPos(playerid, 2128.8220, 1965.6072, 33.9647); SetPlayerCameraLookAt(playerid, 2128.1597, 1964.8524, 33.5796);
  1807. SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 0); SetPlayerPos(playerid, 1693.3690,-1867.5784,13.5412);
  1808. SetPlayerFacingAngle(playerid, 139.7829); SetPlayerVirtualWorld(playerid, 5446);
  1809. }
  1810. }
  1811. else
  1812. {
  1813. new loginstring[512],loginname[64];
  1814. GetPlayerName(playerid,loginname,sizeof(loginname));
  1815. format(loginstring,sizeof(loginstring),"{0066FF}"BELA"|{0066FF}======================================="BELA"|\n\n"BELA"Dobrodosli na Last Night RolePlay\n\n"BELA"Ime: "CRVENA"%s\n"BELA"Forum:"CRVENA" www.uskoro.tk/forum \n"BELA"Teamspeak:"CRVENA" 178.33.216.108:9988 \n"BELA"Uneli ste pogresan "CRVENA"password\n{0066FF}"BELA"|{0066FF}======================================="BELA"|",loginname);
  1816. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{FFCC00}Login",loginstring,"Login","Izlaz");
  1817. LoginPokusaji[playerid] += 1;
  1818. SCM(playerid,-1,"{FFCC00}[LN:RP]"BELA" Pogresna lozinka! Preostalo "CRVENA"%d/4"BELA" pokusaja !",LoginPokusaji[playerid]);
  1819. if(LoginPokusaji[playerid] == 4) { StatusKonekta(playerid, 4); }
  1820. }
  1821. return 1;
  1822. }
  1823. }
  1824. }
  1825. return 1;
  1826. }
  1827. ///////////////////////////////////////////////////////////////////////////
  1828. public OnPlayerCommandPerformed(playerid,cmdtext[ ],success)
  1829. {
  1830. return 1;
  1831. }
  1832. ///////////////////////////////////////////////////////////////////////////
  1833. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1834. {
  1835. return 1;
  1836. }
  1837.  
  1838. /////////////////////////////////////////////CUVANJA/CITANJA////////////////////////////////////////////////////
  1839. forward LoadUser_data(playerid,name[],value[]);
  1840. public LoadUser_data(playerid,name[],value[])
  1841. {
  1842. INI_Int("Password",PlayerInfo[playerid][pPass]);
  1843. INI_Int("Cash",PlayerInfo[playerid][pNovacDzep]);
  1844. INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  1845. INI_Int("Level",PlayerInfo[playerid][pLevel]);
  1846. INI_Int("Supporter",PlayerInfo[playerid][pSupporter]);
  1847. INI_Int("Skin",PlayerInfo[playerid][pSkin]);
  1848. INI_Int("Godine",PlayerInfo[playerid][pGodine]);
  1849. INI_Int("Drzava",PlayerInfo[playerid][pDrzava]);
  1850. INI_Int("Pol",PlayerInfo[playerid][pSex]);
  1851. INI_Int("Tutorial",PlayerInfo[playerid][pTutorial]);
  1852. INI_String("Email",PlayerInfo[playerid][pEmail], 128);
  1853. INI_Int("NovacBanka",PlayerInfo[playerid][pNovacBanka]);
  1854. INI_Int("Respekti",PlayerInfo[playerid][pExp]);
  1855. INI_Int("SatiIgre",PlayerInfo[playerid][pSatiIgre]);
  1856. INI_Int("ProveraSpawna",PlayerInfo[playerid][pProveraSpawna]);
  1857. INI_Int("BorbeniStil",PlayerInfo[playerid][pBorbeniStil]);
  1858. return 1;
  1859. }
  1860. ////////////////////////////////////////////////
  1861. stock SavePlayer(playerid)
  1862. {
  1863. if(UlogovanProvera[playerid] == 1)
  1864. {
  1865. new INI:File = INI_Open(Korisnici(playerid));
  1866. INI_SetTag(File,"data");
  1867. INI_WriteInt(File,"Cash",PlayerInfo[playerid][pNovacDzep]);
  1868. INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
  1869. INI_WriteInt(File,"Level",PlayerInfo[playerid][pLevel]);
  1870. INI_WriteInt(File,"Supporter",PlayerInfo[playerid][pSupporter]);
  1871. INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
  1872. INI_WriteInt(File,"Godine",PlayerInfo[playerid][pGodine]);
  1873. INI_WriteInt(File,"Drzava",PlayerInfo[playerid][pDrzava]);
  1874. INI_WriteInt(File,"Pol",PlayerInfo[playerid][pSex]);
  1875. INI_WriteInt(File,"Tutorial",PlayerInfo[playerid][pTutorial]);
  1876. INI_WriteString(File,"Email",PlayerInfo[playerid][pEmail]);
  1877. INI_WriteInt(File,"NovacBanka",PlayerInfo[playerid][pNovacBanka]);
  1878. INI_WriteInt(File,"Respekti",PlayerInfo[playerid][pExp]);
  1879. INI_WriteInt(File,"SatiIgre",PlayerInfo[playerid][pSatiIgre]);
  1880. INI_WriteInt(File,"ProveraSpawna",PlayerInfo[playerid][pProveraSpawna]);
  1881. INI_WriteInt(File,"BorbeniStil",PlayerInfo[playerid][pBorbeniStil]);
  1882. INI_Close(File);
  1883. }
  1884. return 1;
  1885. }
  1886. //////////////////////////////////////////////////
  1887. forward UcitajPodesavanja(name[],value[]);
  1888. public UcitajPodesavanja(name[],value[])
  1889. {
  1890. INI_Int("Registracija",ServerInfo[isRegistracija]);
  1891. return 1;
  1892. }
  1893. //////////////////////////////////////////////////
  1894. stock SacuvajPodesavanja()
  1895. {
  1896. new sFile[80];
  1897. format(sFile,sizeof(sFile),SERVER_FILE);
  1898. new INI:File = INI_Open(sFile);
  1899. INI_WriteInt(File,"Registracija",ServerInfo[isRegistracija]);
  1900. INI_Close(File);
  1901. return 1;
  1902. }
  1903. /////////////////////////////////////////////////////
  1904. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  1905. {
  1906. return 1;
  1907. }
  1908. ///////////////////////////////////////////////////////////////////////////
  1909. public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
  1910. {
  1911. return 1;
  1912. }
  1913. ///////////////////////////////////////////////////////
  1914. forward split(const strsrc[], strdest[][], delimiter);
  1915. public split(const strsrc[], strdest[][], delimiter)
  1916. {
  1917. new i, li;
  1918. new aNum;
  1919. new len;
  1920. while(i <= strlen(strsrc))
  1921. {
  1922. if(strsrc[i]==delimiter || i==strlen(strsrc))
  1923. {
  1924. len = strmid(strdest[aNum], strsrc, li, i, 128);
  1925. strdest[aNum][len] = 0;
  1926. li = i+1;
  1927. aNum++;
  1928. }
  1929. i++;
  1930. }
  1931. return 1;
  1932. }
  1933. ////////////////////////////////////////////////////////////////////
  1934. forward SpremiKorisnike();
  1935. public SpremiKorisnike()
  1936. {
  1937. foreach(Player, i)
  1938. {
  1939. if(IsPlayerConnected(i) && UlogovanProvera[i] == 1)
  1940. {
  1941. SCMTA(-1,""SVETLOCRVENA"[LN:RP - AC]"BELA" Cuvanje svih korisnickih naloga ! Mozda bude laga nekoliko sekundi !");
  1942. SavePlayer(i);
  1943. }
  1944. }
  1945. print("Svim online korisnicima racuni uspesno sacuvani...");
  1946. return 1;
  1947. }
  1948. ///////////////////////////////////////////////////////////////////////
  1949. ////////////////////////////////////////////////////////////////
  1950. stock g_NovacPlus(id, iznos)
  1951. {
  1952. if(iznos < 0 || iznos > 99999999) return 1;
  1953. GivePlayerMoney(id, iznos);
  1954. PlayerInfo[id][pNovacDzep] += iznos;
  1955. return 1;
  1956. }
  1957. ////////////////////////////////////////////////////////////////
  1958. stock g_SetPlayerHealth(playerid, Float: helti)
  1959. {
  1960. SetPlayerHealth(playerid, helti); HeltiIgraca[playerid] = helti;
  1961. return 1;
  1962. }
  1963. stock StatusKonekta(playerid, tip)
  1964. {
  1965. if(tip == 1)
  1966. {
  1967. new string1[256];
  1968. format(string1, sizeof(string1), ""CRVENA"Banovani ste...\n\n"ZUTA"%s "BELA"vi ste banovani sa ovog servera.\nAko ne znate razlog bana pogledajte ga na forumu.\nUkoliko zelite unban zatrazite ga na nasem forumu.\nAdresa naseg foruma je:\n\n"ZUTA"www.uskoro.tk",GetName(playerid));
  1969. SPD(playerid, DIALOG_BANSTATUS, DIALOG_STYLE_MSGBOX, "{FFCC00}Banovan si !", string1, "Ok", "Izlaz");
  1970. freeze[playerid] = SetTimerEx("KonektKick", 500, 0, "d", playerid);
  1971. }
  1972. else if(tip == 2)
  1973. {
  1974. new string[512];
  1975. SCM(playerid,-1,""SVETLOCRVENA"[LN:RP - AC]"BELA" Kikovani ste zbog neprihvatljivog Imena/Prezimena");
  1976. format(string, sizeof(string), ""BELA"%s, kikovani ste sa servera zbog neprihvatljivog imena/prezimena\nIme/Prezime mora biti RP, sto znaci da mora biti Ime_Prezime\nIme/Prezime ne sme sadrzavati slova/brojeve/znakove\nIme mora sadrzavati donju crtu( _ )\nPrimer pravilog RP imena\n"CRVENA"Petar_Petrovic",GetName(playerid));
  1977. SPD(playerid, DIALOG_RPIME, DIALOG_STYLE_MSGBOX, "{FFCC00}Informacije o Kick-u", string, "Ok", "Izlaz");
  1978. freeze[playerid] = SetTimerEx("KonektKick", 500, 0, "d", playerid);
  1979. }
  1980. else if(tip == 3)
  1981. {
  1982. SCM(playerid,-1,""SVETLOCRVENA"[LN:RP - AC]"BELA" Pre spawna je potrebno ulogovati se . Kikovan si");
  1983. freeze[playerid] = SetTimerEx("KonektKick", 500, 0, "d", playerid);
  1984. }
  1985. else if(tip == 4)
  1986. {
  1987. SCM(playerid,-1,""SVETLOCRVENA"[LN:RP - AC]"BELA" Banovan si jer si pogresio lozinku 4 puta. Slikaj ovo na tipku F8, i zatrazi unban na forumu.",GetName(playerid));
  1988. freeze[playerid] = SetTimerEx("KonektBan", 500, 0, "d", playerid);
  1989. }
  1990. else if(tip == 5)
  1991. {
  1992. SCM(playerid,-1,""CRVENA"===============================================================");
  1993. SCM(playerid,-1,"{FFCC00}[LN:RP]{FFFFFF} "CRVENA"{FFFFFF} Registracija je onemogucena na neko vreme, da vidite razlog posetite nas {FF0000}forum");
  1994. SCM(playerid,-1,"{FFCC00}[LN:RP]{FFFFFF} "CRVENA"{FFFFFF} Adresa Foruma je: "SIVA"www.uskoro.tk");
  1995. SCM(playerid,-1,""CRVENA"===============================================================");
  1996. freeze[playerid] = SetTimerEx("KonektKick", 500, 0, "d", playerid);
  1997. }
  1998. return 1;
  1999. }
  2000.  
  2001. //////////////////////////////////////////////////////////////
  2002. stock KreirajTextDrawe(playerid)
  2003. {
  2004. Tut[0][playerid] = TextDrawCreate(523.000000, 140.000000, "_");
  2005. TextDrawBackgroundColor(Tut[0][playerid], 255);
  2006. TextDrawFont(Tut[0][playerid], 1);
  2007. TextDrawLetterSize(Tut[0][playerid], 0.529999, 12.600001);
  2008. TextDrawColor(Tut[0][playerid], -1);
  2009. TextDrawSetOutline(Tut[0][playerid], 0);
  2010. TextDrawSetProportional(Tut[0][playerid], 1);
  2011. TextDrawSetShadow(Tut[0][playerid], 1);
  2012. TextDrawUseBox(Tut[0][playerid], 1);
  2013. TextDrawBoxColor(Tut[0][playerid], 842150450);
  2014. TextDrawTextSize(Tut[0][playerid], 98.000000, 13.000000);
  2015.  
  2016. Tut[1][playerid] = TextDrawCreate(523.000000, 138.000000, "_");
  2017. TextDrawBackgroundColor(Tut[1][playerid], 255);
  2018. TextDrawFont(Tut[1][playerid], 1);
  2019. TextDrawLetterSize(Tut[1][playerid], 0.629998, -0.100001);
  2020. TextDrawColor(Tut[1][playerid], -1);
  2021. TextDrawSetOutline(Tut[1][playerid], 0);
  2022. TextDrawSetProportional(Tut[1][playerid], 1);
  2023. TextDrawSetShadow(Tut[1][playerid], 1);
  2024. TextDrawUseBox(Tut[1][playerid], 1);
  2025. TextDrawBoxColor(Tut[1][playerid], 848756735);
  2026. TextDrawTextSize(Tut[1][playerid], 97.000000, -5.000000);
  2027.  
  2028. Tut[2][playerid] = TextDrawCreate(523.000000, 257.000000, "_");
  2029. TextDrawBackgroundColor(Tut[2][playerid], 255);
  2030. TextDrawFont(Tut[2][playerid], 1);
  2031. TextDrawLetterSize(Tut[2][playerid], 0.629998, -0.100001);
  2032. TextDrawColor(Tut[2][playerid], -1);
  2033. TextDrawSetOutline(Tut[2][playerid], 0);
  2034. TextDrawSetProportional(Tut[2][playerid], 1);
  2035. TextDrawSetShadow(Tut[2][playerid], 1);
  2036. TextDrawUseBox(Tut[2][playerid], 1);
  2037. TextDrawBoxColor(Tut[2][playerid], 848756735);
  2038. TextDrawTextSize(Tut[2][playerid], 103.000000, -5.000000);
  2039.  
  2040. Tut[3][playerid] = TextDrawCreate(523.000000, 140.000000, "_");
  2041. TextDrawBackgroundColor(Tut[3][playerid], 255);
  2042. TextDrawFont(Tut[3][playerid], 1);
  2043. TextDrawLetterSize(Tut[3][playerid], 0.519999, 12.700000);
  2044. TextDrawColor(Tut[3][playerid], -1);
  2045. TextDrawSetOutline(Tut[3][playerid], 0);
  2046. TextDrawSetProportional(Tut[3][playerid], 1);
  2047. TextDrawSetShadow(Tut[3][playerid], 1);
  2048. TextDrawUseBox(Tut[3][playerid], 1);
  2049. TextDrawBoxColor(Tut[3][playerid], 848756735);
  2050. TextDrawTextSize(Tut[3][playerid], 511.000000, 0.000000);
  2051.  
  2052. Tut[4][playerid] = TextDrawCreate(104.000000, 138.000000, "_");
  2053. TextDrawBackgroundColor(Tut[4][playerid], 255);
  2054. TextDrawFont(Tut[4][playerid], 1);
  2055. TextDrawLetterSize(Tut[4][playerid], 0.519999, 13.100003);
  2056. TextDrawColor(Tut[4][playerid], -1);
  2057. TextDrawSetOutline(Tut[4][playerid], 0);
  2058. TextDrawSetProportional(Tut[4][playerid], 1);
  2059. TextDrawSetShadow(Tut[4][playerid], 1);
  2060. TextDrawUseBox(Tut[4][playerid], 1);
  2061. TextDrawBoxColor(Tut[4][playerid], 848756735);
  2062. TextDrawTextSize(Tut[4][playerid], 104.000000, 0.000000);
  2063.  
  2064. Tut[5][playerid] = TextDrawCreate(266.000000, 142.000000, "Tutorial");
  2065. TextDrawBackgroundColor(Tut[5][playerid], 255);
  2066. TextDrawFont(Tut[5][playerid], 2);
  2067. TextDrawLetterSize(Tut[5][playerid], 0.529999, 1.000000);
  2068. TextDrawColor(Tut[5][playerid], 848756735);
  2069. TextDrawSetOutline(Tut[5][playerid], 0);
  2070. TextDrawSetProportional(Tut[5][playerid], 1);
  2071. TextDrawSetShadow(Tut[5][playerid], 1);
  2072.  
  2073. Tut[6][playerid] = TextDrawCreate(214.000000, 150.000000, "-");
  2074. TextDrawBackgroundColor(Tut[6][playerid], 255);
  2075. TextDrawFont(Tut[6][playerid], 2);
  2076. TextDrawLetterSize(Tut[6][playerid], 17.030029, 1.000000);
  2077. TextDrawColor(Tut[6][playerid], -1);
  2078. TextDrawSetOutline(Tut[6][playerid], 0);
  2079. TextDrawSetProportional(Tut[6][playerid], 1);
  2080. TextDrawSetShadow(Tut[6][playerid], 1);
  2081.  
  2082. Tut[7][playerid] = TextDrawCreate(110.000000, 168.000000, "- Dobrodosli na ~b~Last Night roleplay ~w~samp server.");
  2083. TextDrawBackgroundColor(Tut[7][playerid], 255);
  2084. TextDrawFont(Tut[7][playerid], 2);
  2085. TextDrawLetterSize(Tut[7][playerid], 0.310000, 1.400000);
  2086. TextDrawColor(Tut[7][playerid], -1);
  2087. TextDrawSetOutline(Tut[7][playerid], 0);
  2088. TextDrawSetProportional(Tut[7][playerid], 1);
  2089. TextDrawSetShadow(Tut[7][playerid], 1);
  2090.  
  2091. Tut[8][playerid] = TextDrawCreate(110.000000, 186.000000, "- Sada ce vam biti prikazan kratak ~r~tutorial ~w~i neka ~r~pravila.");
  2092. TextDrawBackgroundColor(Tut[8][playerid], 255);
  2093. TextDrawFont(Tut[8][playerid], 2);
  2094. TextDrawLetterSize(Tut[8][playerid], 0.300000, 1.400000);
  2095. TextDrawColor(Tut[8][playerid], -1);
  2096. TextDrawSetOutline(Tut[8][playerid], 0);
  2097. TextDrawSetProportional(Tut[8][playerid], 1);
  2098. TextDrawSetShadow(Tut[8][playerid], 1);
  2099.  
  2100. Tut[9][playerid] = TextDrawCreate(110.000000, 204.000000, "- Zelimo vam ugodnu igru na server i puno uspeha.");
  2101. TextDrawBackgroundColor(Tut[9][playerid], 255);
  2102. TextDrawFont(Tut[9][playerid], 2);
  2103. TextDrawLetterSize(Tut[9][playerid], 0.300000, 1.400000);
  2104. TextDrawColor(Tut[9][playerid], -1);
  2105. TextDrawSetOutline(Tut[9][playerid], 0);
  2106. TextDrawSetProportional(Tut[9][playerid], 1);
  2107. TextDrawSetShadow(Tut[9][playerid], 1);
  2108.  
  2109. Tut[10][playerid] = TextDrawCreate(110.000000, 222.000000, "- Pazljivo procitajte sva ~b~pravila ~w~ukoliko ih ne znate.");
  2110. TextDrawBackgroundColor(Tut[10][playerid], 255);
  2111. TextDrawFont(Tut[10][playerid], 2);
  2112. TextDrawLetterSize(Tut[10][playerid], 0.300000, 1.400000);
  2113. TextDrawColor(Tut[10][playerid], -1);
  2114. TextDrawSetOutline(Tut[10][playerid], 0);
  2115. TextDrawSetProportional(Tut[10][playerid], 1);
  2116. TextDrawSetShadow(Tut[10][playerid], 1);
  2117.  
  2118. Tut[11][playerid] = TextDrawCreate(111.000000, 142.000000, "(1/5)");
  2119. TextDrawBackgroundColor(Tut[11][playerid], 255);
  2120. TextDrawFont(Tut[11][playerid], 2);
  2121. TextDrawLetterSize(Tut[11][playerid], 0.420000, 1.000000);
  2122. TextDrawColor(Tut[11][playerid], 848756735);
  2123. TextDrawSetOutline(Tut[11][playerid], 0);
  2124. TextDrawSetProportional(Tut[11][playerid], 1);
  2125. TextDrawSetShadow(Tut[11][playerid], 1);
  2126. //------------------------------------------------------------------------------
  2127. Tut[5][playerid] = TextDrawCreate(266.000000, 142.000000, "Tutorial");
  2128. TextDrawBackgroundColor(Tut[5][playerid], 255);
  2129. TextDrawFont(Tut[5][playerid], 2);
  2130. TextDrawLetterSize(Tut[5][playerid], 0.529999, 1.000000);
  2131. TextDrawColor(Tut[5][playerid], 848756735);
  2132. TextDrawSetOutline(Tut[5][playerid], 0);
  2133. TextDrawSetProportional(Tut[5][playerid], 1);
  2134. TextDrawSetShadow(Tut[5][playerid], 1);
  2135.  
  2136. Tut[6][playerid] = TextDrawCreate(214.000000, 150.000000, "-");
  2137. TextDrawBackgroundColor(Tut[6][playerid], 0xFF9900AA);
  2138. TextDrawFont(Tut[6][playerid], 2);
  2139. TextDrawLetterSize(Tut[6][playerid], 17.030029, 1.000000);
  2140. TextDrawColor(Tut[6][playerid], -1);
  2141. TextDrawSetOutline(Tut[6][playerid], 0);
  2142. TextDrawSetProportional(Tut[6][playerid], 1);
  2143. TextDrawSetShadow(Tut[6][playerid], 1);
  2144.  
  2145. Tut[7][playerid] = TextDrawCreate(110.000000, 168.000000, "- Dobrodosli na ~p~Last Night RP ~w~samp server.");
  2146. TextDrawBackgroundColor(Tut[7][playerid], 255);
  2147. TextDrawFont(Tut[7][playerid], 2);
  2148. TextDrawLetterSize(Tut[7][playerid], 0.310000, 1.400000);
  2149. TextDrawColor(Tut[7][playerid], -1);
  2150. TextDrawSetOutline(Tut[7][playerid], 0);
  2151. TextDrawSetProportional(Tut[7][playerid], 1);
  2152. TextDrawSetShadow(Tut[7][playerid], 1);
  2153.  
  2154. Tut[8][playerid] = TextDrawCreate(110.000000, 186.000000, "- Sada ce vam biti prikazan kratak ~r~tutorial ~w~i neka ~r~pravila.");
  2155. TextDrawBackgroundColor(Tut[8][playerid], 255);
  2156. TextDrawFont(Tut[8][playerid], 2);
  2157. TextDrawLetterSize(Tut[8][playerid], 0.300000, 1.400000);
  2158. TextDrawColor(Tut[8][playerid], -1);
  2159. TextDrawSetOutline(Tut[8][playerid], 0);
  2160. TextDrawSetProportional(Tut[8][playerid], 1);
  2161. TextDrawSetShadow(Tut[8][playerid], 1);
  2162.  
  2163. Tut[9][playerid] = TextDrawCreate(110.000000, 204.000000, "- Zelimo vam ugodnu igru na server i puno uspeha.");
  2164. TextDrawBackgroundColor(Tut[9][playerid], 255);
  2165. TextDrawFont(Tut[9][playerid], 2);
  2166. TextDrawLetterSize(Tut[9][playerid], 0.300000, 1.400000);
  2167. TextDrawColor(Tut[9][playerid], -1);
  2168. TextDrawSetOutline(Tut[9][playerid], 0);
  2169. TextDrawSetProportional(Tut[9][playerid], 1);
  2170. TextDrawSetShadow(Tut[9][playerid], 1);
  2171.  
  2172. Tut[10][playerid] = TextDrawCreate(110.000000, 222.000000, "- Pazljivo procitajte sva ~b~pravila ~w~ukoliko ih ne znate.");
  2173. TextDrawBackgroundColor(Tut[10][playerid], 255);
  2174. TextDrawFont(Tut[10][playerid], 2);
  2175. TextDrawLetterSize(Tut[10][playerid], 0.300000, 1.400000);
  2176. TextDrawColor(Tut[10][playerid], -1);
  2177. TextDrawSetOutline(Tut[10][playerid], 0);
  2178. TextDrawSetProportional(Tut[10][playerid], 1);
  2179. TextDrawSetShadow(Tut[10][playerid], 1);
  2180.  
  2181. Tut[11][playerid] = TextDrawCreate(111.000000, 142.000000, "(1/5)");
  2182. TextDrawBackgroundColor(Tut[11][playerid], 255);
  2183. TextDrawFont(Tut[11][playerid], 2);
  2184. TextDrawLetterSize(Tut[11][playerid], 0.420000, 1.000000);
  2185. TextDrawColor(Tut[11][playerid], 0xFF9900AA);
  2186. TextDrawSetOutline(Tut[11][playerid], 0);
  2187. TextDrawSetProportional(Tut[11][playerid], 1);
  2188. TextDrawSetShadow(Tut[11][playerid], 1);
  2189. return 1;
  2190. }
  2191. ///////////////////////////////////////////////////////////////////////////
  2192. stock GetName(playerid)
  2193. {
  2194. new name[MAX_PLAYER_NAME];
  2195. GetPlayerName(playerid, name, sizeof(name));
  2196. return name;
  2197. }
  2198. ///////////////////////////////////////////////////////////////////////////
  2199. stock BelaBojaIgraca(playerid)
  2200. {
  2201. SetPlayerColor(playerid,0xFFFFFF00);
  2202. }
  2203. ///////////////////////////////////////////////////////////////////////////
  2204. stock ProveraRPImena(playerid)
  2205. {
  2206. new pname[MAX_PLAYER_NAME],underline=0;
  2207. GetPlayerName(playerid, pname, sizeof(pname));
  2208. /////////////////////////////////////////////////////////
  2209. if(strfind(pname,"Corleone",true) != (-1)) return 1; // Sklanja proveru za ovo ime
  2210. else if(strfind(pname,"Tonyy",true) != (-1)) return 1; // Sklanja proveru za ovo ime
  2211. /////////////////////////////////////////////////////////
  2212. else if(strfind(pname,"[",true) != (-1)) return 0;
  2213. else if(strfind(pname,"]",true) != (-1)) return 0;
  2214. else if(strfind(pname,"$",true) != (-1)) return 0;
  2215. else if(strfind(pname,"(",true) != (-1)) return 0;
  2216. else if(strfind(pname,")",true) != (-1)) return 0;
  2217. else if(strfind(pname,"=",true) != (-1)) return 0;
  2218. else if(strfind(pname,"@",true) != (-1)) return 0;
  2219. else if(strfind(pname,"1",true) != (-1)) return 0;
  2220. else if(strfind(pname,"2",true) != (-1)) return 0;
  2221. else if(strfind(pname,"3",true) != (-1)) return 0;
  2222. else if(strfind(pname,"4",true) != (-1)) return 0;
  2223. else if(strfind(pname,"5",true) != (-1)) return 0;
  2224. else if(strfind(pname,"6",true) != (-1)) return 0;
  2225. else if(strfind(pname,"7",true) != (-1)) return 0;
  2226. else if(strfind(pname,"8",true) != (-1)) return 0;
  2227. else if(strfind(pname,"9",true) != (-1)) return 0;
  2228. else if(strfind(pname,".",true) != (-1)) return 0;
  2229. else if(strfind(pname,",",true) != (-1)) return 0;
  2230. else if(strfind(pname,"-",true) != (-1)) return 0;
  2231. else if(strfind(pname,"samp",true) != (-1)) return 0;
  2232. else if(strfind(pname,"kurac",true) != (-1)) return 0;
  2233. else if(strfind(pname,"AM",true) != (-1)) return 0;
  2234. else if(strfind(pname,"Balkan",true) != (-1)) return 0;
  2235. else if(strfind(pname,"Extazy",true) != (-1)) return 0;
  2236. else if(strfind(pname,"Games",true) != (-1)) return 0;
  2237. new maxname = strlen(pname);
  2238. for(new i=0; i<maxname; i++)
  2239. {
  2240. if(pname[i] == '_') underline ++;
  2241. }
  2242. if(underline != 1) return 0;
  2243. pname[0] = toupper(pname[0]);
  2244. for(new x=1; x<maxname; x++)
  2245. {
  2246. if(pname[x] == '_') pname[x+1] = toupper(pname[x+1]);
  2247. else if(pname[x] != '_' && pname[x-1] != '_') pname[x] = tolower(pname[x]);
  2248. }
  2249. return 1;
  2250. }
  2251. ///////////////////////////////////////////////////////////////////////////
  2252. stock Korisnici(playerid)
  2253. {
  2254. new string[128];
  2255. format(string,sizeof(string),KORISNICI,GetName(playerid));
  2256. return string;
  2257. }
  2258. ///////////////////////////////////////////////////////////////////////////
  2259. stock udb_hash(buf[]) //HASH PASS
  2260. {
  2261. new length=strlen(buf);
  2262. new s1 = 1;
  2263. new s2 = 0;
  2264. new n;
  2265. for (n=0; n<length; n++)
  2266. {
  2267. s1 = (s1 + buf[n]) % 65521;
  2268. s2 = (s2 + s1) % 65521;
  2269. }
  2270. return (s2 << 16) + s1;
  2271. }
  2272. ////////////////////////////////////////////////////////////////////////////
  2273. stock SamoIme(playerid) //Proverava Samo Igracevo Ime
  2274. {
  2275. new imes[2][MAX_PLAYER_NAME],ime[MAX_PLAYER_NAME];
  2276. GetPlayerName(playerid,ime,MAX_PLAYER_NAME);
  2277. split(ime, imes, '_');
  2278. return imes[0];
  2279. }
  2280. ///////////////////////////////////////////////////////////////////////////
  2281. stock SamoPrezime(playerid) //Proverava Samo Prezime Igraca
  2282. {
  2283. new imes[2][MAX_PLAYER_NAME],ime[MAX_PLAYER_NAME];
  2284. GetPlayerName(playerid,ime,MAX_PLAYER_NAME);
  2285. split(ime, imes, '_');
  2286. return imes[1];
  2287. }
  2288. ///////////////////////////////////////////////////////////////////////////
  2289. stock ProveraImenaBDC(playerid)//Provera Imena Bez Donje Crte
  2290. {
  2291. new string[24],str[24];
  2292. GetPlayerName(playerid,string,24);
  2293. strmid(str,string,0,strlen(string),24);
  2294. for(new i = 0; i < MAX_PLAYER_NAME; i++)
  2295. {
  2296. if (str[i] == '_') str[i] = ' ';
  2297. }
  2298. return str;
  2299. }
  2300. //////////////////////////////////////////////////
  2301. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  2302. {
  2303. if(clickedid == RegLogi[2])
  2304. {
  2305. KillTimer(LogRegTimer[playerid]); g_SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
  2306. if(fexist(Korisnici(playerid)))
  2307. {
  2308. new loginname[126];
  2309. GetPlayerName(playerid,loginname,sizeof(loginname));
  2310. SendClientMessage(playerid, COLOR_YELLOW, "{FFCC00}[LN:RP]{FFFFFF} Vec ste registrovani na server !");
  2311. }
  2312. else
  2313. {
  2314. CancelSelectTextDraw(playerid);
  2315. SakrijLogRegTextDraw(playerid);
  2316. if(ServerInfo[isRegistracija] == 1)
  2317. {
  2318. StatusKonekta(playerid, 5);
  2319. }
  2320. else if(ServerInfo[isRegistracija] != 1)
  2321. {
  2322.  
  2323. SakrijLogRegTextDraw(playerid);
  2324. CancelSelectTextDraw(playerid);
  2325. new info[1024];
  2326. strcat(info, "{0066FF}|==========================================================|\n", sizeof(info));
  2327. strcat(info, "{FFCC00} Dobrodosli na Last Night RolePlay !\n", sizeof(info));
  2328. strcat(info, " "BELA"Vas account{FF0000} nije{FFFFFF} pronadjen u nasoj Data-Bazi\n", sizeof(info));
  2329. strcat(info, " "BELA"Forum:www.uskoro.com/forum\n", sizeof(info));
  2330. strcat(info, " "BELA"TeamSpeak:"CRVENA" uskoro\n", sizeof(info));
  2331. strcat(info, " "BELA"Kako bi nastavili registraciju, unesite zeljenu lozinku.\n", sizeof(info));
  2332. strcat(info, "{0066FF}|==========================================================|", sizeof(info));
  2333.  
  2334. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"{FFCC00}Register",info,"Registruj se","Izadji");
  2335. InterpolateCameraPos(playerid, 1260.778442, -1400.271484, 13.317417, 1426.689941, -1334.434448, 252.366226, 10000);
  2336. InterpolateCameraLookAt(playerid, 1265.766845, -1400.510009, 13.559510, 1421.763793, -1334.375244, 251.512268, 10000);
  2337. }
  2338. }
  2339. }
  2340. if(clickedid == RegLogi[1])
  2341. {
  2342. KillTimer(LogRegTimer[playerid]); g_SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
  2343. if(fexist(Korisnici(playerid)))
  2344. {
  2345. new loginname[126];
  2346. new loginstring[2048];
  2347. CancelSelectTextDraw(playerid);
  2348. SakrijLogRegTextDraw(playerid);
  2349. GetPlayerName(playerid,loginname,sizeof(loginname));
  2350. format(loginstring,sizeof(loginstring),"{0066FF}"BELA"|{0066FF}======================================="BELA"|\n\n"BELA"Dobrodosli na Last Night RolePlay\n\n"BELA"Ime: "CRVENA"%s\n"BELA"Forum:"CRVENA" www.uskoro.tk/forum \n"BELA"Teamspeak:"CRVENA" 178.33.216.108:9988 \n"BELA"Unesite vas"CRVENA" password\n{0066FF}"BELA"|{0066FF}======================================="BELA"|",loginname);
  2351. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{FFCC00}Login",loginstring,"Login","Izlaz");
  2352. }
  2353. else
  2354. {
  2355. if(ServerInfo[isRegistracija] == 1)
  2356. {
  2357. StatusKonekta(playerid, 5);
  2358. }
  2359. else if(ServerInfo[isRegistracija] != 1)
  2360. {
  2361. SendClientMessage(playerid, COLOR_YELLOW, "{FFCC00}[LN:RP]{FFFFFF} Niste registrovani na server !");
  2362. }
  2363. }
  2364. }
  2365. if(clickedid == RegLogi[3])
  2366. {
  2367. ShowPlayerDialog(playerid, PRAVILA, DIALOG_STYLE_MSGBOX, "{FFCC00}Forum",""BELA"www.uskoro.com/forum", "Ok", "");
  2368. return 1;
  2369. }
  2370. if(clickedid == RegLogi[4])
  2371. {
  2372. ShowPlayerDialog(playerid, PRAVILA, DIALOG_STYLE_MSGBOX, "{FFCC00}Teamspeak",""BELA"Uskoro", "Ok", "");
  2373. return 1;
  2374. }
  2375. if(clickedid == RegLogi[5])
  2376. {
  2377. new info[512];
  2378. strcat(info, "{0066FF}|=================CREDITS====================|\n", sizeof(info));
  2379. strcat(info, " "BELA"Autor skripte:{00C0FF}Corleone\n", sizeof(info));
  2380. strcat(info, " "BELA"Urednik skripte:{00C0FF} Corleone\n", sizeof(info));
  2381. strcat(info, " "BELA"Izvorna skripta:{00C0FF} Last Night RolePlay v0.1\n", sizeof(info));
  2382. strcat(info, " "BELA"Maper:{00C0FF} Corleone\n", sizeof(info));
  2383. strcat(info, "{0066FF}|============================================|\n", sizeof(info));
  2384. strcat(info, ""BELA" ~ www.balkan-samp.com ~\n", sizeof(info));
  2385. strcat(info, ""BELA" ~ www.zbsamp.com ~\n", sizeof(info));
  2386. strcat(info, ""BELA" ~ www.forum.sa-mp.com ~\n", sizeof(info));
  2387. strcat(info, ""BELA" ~ E-trail Hosting ~\n", sizeof(info));
  2388. ShowPlayerDialog(playerid, PRAVILA, DIALOG_STYLE_MSGBOX, "{FFCC00}Credits",info, "Ok", "");
  2389. }
  2390. return 1;
  2391. }
  2392. ////////////////////////////////////////////////////////////////////////////////
  2393. stock ObrisiObjekte(playerid)
  2394. {
  2395. return 1;
  2396. }
  2397. ////////////////////////////////////////////////////////////////////////////////
  2398. stock AttachObjectRemove(playerid)
  2399. {
  2400. return 1;
  2401. }
Advertisement
Add Comment
Please, Sign In to add comment