Guest User

Untitled

a guest
Oct 1st, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.56 KB | None | 0 0
  1. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  2. {
  3. if( playertextid == RegisterTD[ playerid ][ 6 ] ) { // ovo
  4. new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
  5. format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n"ZELENA"Dobrodosao na Fast Life RolePlay\n\nVase Ime i Prezime: "CRVENA"%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: "CRVENA"Min 6/Max 12 znakova\n\n"BELA"________________________________________________",regname);
  6. ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
  7. }
  8. if( playertextid == RegisterTD[ playerid ][ 17 ] ) { // ovo
  9. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Musko" );
  10. PlayerInfo[ playerid ][ pSkin ] = 240;
  11. PlayerInfo[ playerid ][ pSex ] = 1;
  12. RegSex[ playerid ] = 1;
  13. }
  14. if( playertextid == RegisterTD[ playerid ][ 18 ] ) { // ovo
  15. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Zensko" );
  16. PlayerInfo[ playerid ][ pSkin ] = 93;
  17. PlayerInfo[ playerid ][ pSex ] = 2;
  18. RegSex[ playerid ] = 2;
  19. }
  20. if( playertextid == RegisterTD[ playerid ][ 11 ] ) { // ovo
  21. ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, ""BELA"Odakle ste ?", ""SRWBOJA"- "BELA"Srbija\n"SRWBOJA"- "BELA"Bosna i Hercegovina\n"SRWBOJA"- "BELA"Kosovo\n"SRWBOJA"- "BELA"Crna Gora\n"SRWBOJA"- "BELA"Hrvatska\n"SRWBOJA"- "BELA"Makedonija\n"SRWBOJA"- "BELA"Slovenija\n"SRWBOJA"- "BELA"Ostalo", "Dalje", "Odustani");
  22. }
  23. if( playertextid == RegisterTD[ playerid ][ 10 ] ) { // ovo
  24. ShowPlayerDialog(playerid, 4, 1, ""BELA"Koliko imate godina?", ""ZUTA"U prazno polje ispod upisi koliko imas godina\n\n"BELA"Godine upisi brojem\n"CRVENA"Nemojte ici ispod 7 i vise od 60!", "Dalje", "Odustani");
  25. }
  26. if( playertextid == RegisterTD[ playerid ][ 7 ] ) { // ovo
  27. ShowPlayerDialog(playerid, 12, 1, ""BELA"Email", ""BELA"Unos email-a\n"ZUTA"U prazno polje ispod unesite vasu email adresu\n\n"BELA"Zamolili bih vas da unesete tacan email", "Dalje", "Odustani");
  28. }
  29. if( playertextid == RegisterTD[ playerid ][ 13 ] ) {
  30. if( InputPassword[ playerid ] == false ) return SCM(playerid,-1,"[FL]"CRVENA"Nisi odabrao lozinku." );
  31. if( ChoseCountry[ playerid ] == false ) return SCM(playerid,-1,"[FL]"CRVENA"Nisi odabrao poreklo." );
  32. if( InputAge[ playerid ] == false ) return SCM(playerid,-1,"[FL]"CRVENA"Nisi odabrao godine starosti." );
  33. if( InputMail[ playerid ] == false ) return SCM(playerid,-1,"[FL]"CRVENA"Nisi uneo email." );
  34. if( RegSex[ playerid ] == 0 ) return SCM(playerid,-1,"[FL]"CRVENA"Nisi odabrao drzavu." );
  35. CancelSelectTextDraw( playerid );
  36. for(new i = 0; i < 19; i ++) {
  37. PlayerTextDrawHide( playerid, RegisterTD[ playerid ][ i ] );
  38. }
  39. //for(new i = 0; i < 30; i ++) {
  40. //PlayerTextDrawHide( playerid, LoginTD[ playerid ][ i ] );
  41. //}
  42. //PlayerTextDrawHide( playerid, LoginTD[ playerid ][ 18 ] );
  43. //PlayerTextDrawHide( playerid, LoginTD[ playerid ][ 19 ] );
  44. new INI:File = INI_Open(Korisnici(playerid));
  45. INI_SetTag(File,"data");
  46. INI_WriteInt(File,"Password", udb_hash( PlayerInfo[ playerid ][ pPass ] ) );
  47. INI_WriteInt(File,"NovacDzep",0);
  48. INI_WriteInt(File,"Admin",0);
  49. INI_WriteInt(File,"Ubistava",0);
  50. INI_WriteInt(File,"Smrti",0);
  51. INI_WriteInt(File,"Level",1);
  52. INI_WriteInt(File,"GameMaster",0);
  53. INI_WriteInt(File,"Skin", PlayerInfo[ playerid ][ pSkin ]);
  54. INI_WriteInt(File,"Godine", PlayerInfo[ playerid ][ pGodine ]);
  55. INI_WriteInt(File,"Drzava", PlayerInfo[ playerid ][ pDrzava ]);
  56. INI_WriteInt(File,"Pol", PlayerInfo[ playerid ][ pSex ]);
  57. INI_WriteInt(File,"Tutorial",0);
  58. INI_WriteInt(File,"Email",0);
  59. INI_WriteInt(File,"Lider",0);
  60. INI_WriteInt(File,"Clan",0);
  61. INI_WriteInt(File,"Rank",0);
  62. INI_WriteInt(File,"Mutiran",0);
  63. INI_WriteInt(File,"NovacBanka",0);
  64. INI_WriteInt(File,"Warn",0);
  65. INI_WriteInt(File,"BankovniRacun",0);
  66. INI_WriteInt(File,"Zatvor",0);
  67. INI_WriteInt(File,"ZatvorenVreme",0);
  68. INI_WriteInt(File,"Respekti",0);
  69. INI_WriteInt(File,"UhapsenPuta",0);
  70. INI_WriteInt(File,"Droga",0);
  71. INI_WriteInt(File,"Mats",0);
  72. INI_WriteInt(File,"PayDayPoeni",0);
  73. INI_WriteInt(File,"SatiIgre",0);
  74. INI_WriteInt(File,"IznosRate",0);
  75. INI_WriteInt(File,"IznosKredita",0);
  76. INI_WriteInt(File,"PreostaloZaOtplatu",0);
  77. INI_WriteInt(File,"ADozvola",0);
  78. INI_WriteInt(File,"KamionDozvola",0);
  79. INI_WriteInt(File,"AvionDozvola",0);
  80. INI_WriteInt(File,"MotorDozvola",0);
  81. INI_WriteInt(File,"BrodDozvola",0);
  82. INI_WriteInt(File,"GunDozvola",0);
  83. INI_WriteInt(File,"PosedovanjeFirme",-1);
  84. INI_WriteInt(File,"Mobilni",0);
  85. INI_WriteInt(File,"Imenik",0);
  86. INI_WriteInt(File,"MobKredit",0);
  87. INI_WriteInt(File,"Cigare",0);
  88. INI_WriteInt(File,"Upaljac",0);
  89. INI_WriteInt(File,"Kanap",0);
  90. INI_WriteInt(File,"Naocare",0);
  91. INI_WriteInt(File,"Sat",0);
  92. INI_WriteInt(File,"BorbeniStil",4);
  93. INI_WriteInt(File,"Posao",0);
  94. INI_WriteInt(File,"Hrana",0);
  95. INI_WriteInt(File,"PosedovanjeKuce",-1);
  96. INI_WriteInt(File,"ProveraSpawna",0);
  97. INI_WriteInt(File,"Rent",-1);
  98. INI_WriteInt(File,"PosedovanjeStana",-1);
  99. INI_WriteInt(File,"PosedovanjeVikendice",-1);
  100. INI_WriteInt(File,"OrgUgovor",0);
  101. INI_WriteInt(File,"PosaoUgovor",0);
  102. INI_WriteInt(File,"PosedovanjeAuta",-1);
  103. INI_WriteInt(File,"DzeparosVreme",0);
  104. INI_WriteInt(File,"PosedovanjeMotora",-1);
  105. INI_WriteInt(File,"Kaciga",-1);
  106. INI_WriteInt(File,"PosedovanjeBicikla",-1);
  107. INI_WriteInt(File,"PosedovanjeAviona",-1);
  108. INI_WriteInt(File,"PosedovanjePlovila",-1);
  109. INI_WriteInt(File,"DonatorBodovi", 0);
  110. INI_WriteInt(File,"Banovan",PlayerInfo[playerid][pBanovan]);
  111. INI_Close(File);
  112. PlayerInfo[ playerid ][ pNovacBanka ] = 0;
  113. PlayerInfo[ playerid ][ pLevel ] = 15;
  114. PlayerInfo[ playerid ][ pVip ] = 4;
  115. SetPlayerScore( playerid, PlayerInfo[ playerid ][ pLevel ] );
  116. PlayerInfo[ playerid ][ pTutorial ] = 0;
  117. PlayerInfo[ playerid ][ pAdmin ] = 0;
  118. PlayerInfo[ playerid ][ pNovacDzep ] = 5000000;
  119. PlayerInfo[ playerid ][ pProveraSpawna ] = SPAWN_NORMAL;
  120. JBC_GivePlayerMoney( playerid, PlayerInfo[ playerid ][ pNovacDzep ] );
  121. SetPlayerSkin( playerid, PlayerInfo[ playerid ][ pSkin ] );
  122.  
  123. TutorialTimer[playerid] = SetTimerEx("Tutorijal",465, false, "ii", playerid, 1 );
  124. }
  125. //if( playertextid == RegisterTD[ playerid ][ 18 ] ) {
  126. //SCM(playerid,-1,"[FL]"CRVENA"Prekinuli ste registraciju i kickovani ste");
  127. //freeze[playerid] = SetTimerEx("KonektKick", 500, 0, "d", playerid);
  128. //}
  129.  
  130.  
  131. if(playertextid == mdct[3])
  132. {
  133. SPD(playerid,54,DSI,""BELA"Dosije",""PPLAVA"Unesite ID igraca kome zelite da ocistite wanted\n"BELA"NAPOMENA: "PPLAVA"Ciscenje wanteda vide svi clanovi!","Unesi","Izlaz");
  134. return 1;
  135. }
  136. if(playertextid == mdct[4])
  137. {
  138. SPD(playerid,56,DSI,""BELA"Wanted Igraca",""PPLAVA"Unesite ID igraca kome zelis da das wanted level!","Unesi","Izlaz");
  139. return 1;
  140. }
  141. if(playertextid == mdct[5])
  142. {
  143. SPD(playerid,58,DSI,""BELA"Dosije",""PPLAVA"Unesite ID igraca ciji zelis da proveris dosije...","Unesi","Izlaz");
  144. return 1;
  145. }
  146. if(playertextid == mdct[6])
  147. {
  148. SPD(playerid,60,DSI,""BELA"Lociranje Igraca",""PPLAVA"Unesite ID igraca kojeg zelis da lociras ukoliko ima wanted level!","Unesi","Izlaz");
  149. return 1;
  150. }
  151. if(playertextid == mdct[7])
  152. {
  153. WantedLista(playerid);
  154. return 1;
  155. }
  156. if(playertextid == mdct[9])
  157. {
  158. CancelSelectTextDraw(playerid); MDC[playerid] = 0;
  159. for(new i = 0; i < 10; i++) { PlayerTextDrawHide(playerid,mdct[i]); }
  160. return 1;
  161. }
  162. if(playertextid == Bankomat[2][playerid])
  163. {
  164. if(PlayerInfo[playerid][pBankovniRacun] == 0) return SCM(playerid,-1,"[FL]"CRVENA"Nemate bankovni racun!");
  165. SPD(playerid, 318, DSI,""SRWBOJA"Podizanje novca",""BELA"Unesi koliko zelis novca da podignes sa vaseg racuna...","Podigni","Izlaz");
  166. return 1;
  167. }
  168. if(playertextid == Bankomat[3][playerid])
  169. {
  170. new string[100];
  171. if(PlayerInfo[playerid][pBankovniRacun] == 0) return SCM(playerid,-1,"[FL]"CRVENA"Nemate bankovni racun!");
  172. format(string, sizeof(string), ""BELA"Imate "ZELENA"%d$ "BELA"novca na vasem racunu...", PlayerInfo[playerid][pNovacBanka]);
  173. SPD(playerid, 320, DIALOG_STYLE_MSGBOX, ""ZELENA"Stanje Racuna", string, "Ok", "Izlaz");
  174. return 1;
  175. }
  176. if(playertextid == Bankomat[7][playerid])
  177. {
  178. AtmTD(playerid, 2); CancelSelectTextDraw(playerid); BankomatMeni[playerid] = -1;
  179. return 1;
  180. }
  181. return 1;
  182. }
Advertisement
Add Comment
Please, Sign In to add comment