Guest User

Untitled

a guest
Oct 9th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.57 KB | None | 0 0
  1. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  2. {
  3. if( playertextid == Reg[53][playerid] ) { // ovo
  4. new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
  5. format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n"SPLAVA"Dobrodosao na Perfect Gaming 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 26 znakova\n\n"BELA"________________________________________________",regname);
  6. ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
  7. }
  8. /* if( playertextid == RegisterTD[ playerid ][ 10] ) { // ovo
  9. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 12 ], "Musko" );
  10. PlayerInfo[ playerid ][ pSkin ] = 240;
  11. PlayerInfo[ playerid ][ pSex ] = 1;
  12. RegSex[ playerid ] = 1;
  13. }
  14. if( playertextid == RegisterTD[ playerid ][ 11 ] ) { // ovo
  15. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 12 ], "Zensko" );
  16. PlayerInfo[ playerid ][ pSkin ] = 93;
  17. PlayerInfo[ playerid ][ pSex ] = 2;
  18. RegSex[ playerid ] = 2;
  19. }*/
  20. if( playertextid == Reg[52][playerid] ) { // ovo
  21. ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, ""BELA"Odakle ste ?", ""SPLAVA"- "BELA"Srbija\n"SPLAVA"- "BELA"Bosna i Hercegovina\n"SPLAVA"- "BELA"Kosovo\n"SPLAVA"- "BELA"Crna Gora\n"SPLAVA"- "BELA"Hrvatska\n"SPLAVA"- "BELA"Makedonija\n"SPLAVA"- "BELA"Slovenija\n"SPLAVA"- "BELA"Ostalo", "Dalje", "Odustani");
  22. }
  23. if( playertextid == Reg[51][playerid] ) { // 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 == Reg[50][playerid] ) { // 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 == Reg[54][playerid] ) {
  30. if( InputPassword[ playerid ] == false ) return SCM(playerid,-1,"[PG:RP] "CRVENA"Nisi odabrao lozinku." );
  31. if( ChoseCountry[ playerid ] == false ) return SCM(playerid,-1,"[PG:RP] "CRVENA"Nisi odabrao poreklo." );
  32. if( InputAge[ playerid ] == false ) return SCM(playerid,-1,"[PG:RP] "CRVENA"Nisi odabrao godine starosti." );
  33. if( InputMail[ playerid ] == false ) return SCM(playerid,-1,"[PG:RP] "CRVENA"Nisi uneo email." );
  34. if( RegSex[ playerid ] == 0 ) return SCM(playerid,-1,"[PG:RP] "CRVENA"Nisi odabrao drzavu." );
  35. CancelSelectTextDraw( playerid );
  36. for(new i = 0; i < 76; i ++) {
  37. PlayerTextDrawHide( playerid, Reg[54][playerid] );
  38. }
  39. for(new i = 0; i < 35; 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,"Helper",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_Close(File);
  111. PlayerInfo[ playerid ][ pNovacBanka ] = 0;
  112. PlayerInfo[ playerid ][ pLevel ] = 10;
  113. SetPlayerScore( playerid, PlayerInfo[ playerid ][ pLevel ] );
  114. PlayerInfo[ playerid ][ pTutorial ] = 0;
  115. PlayerInfo[ playerid ][ pVip ] = 4;
  116. PlayerInfo[ playerid ][ pAdmin ] = 0;
  117. PlayerInfo[ playerid ][ pNovacDzep ] = 1000000;
  118. PlayerInfo[ playerid ][ pProveraSpawna ] = SPAWN_NORMAL;
  119. JBC_GivePlayerMoney( playerid, PlayerInfo[ playerid ][ pNovacDzep ] );
  120. Update_Skin( playerid, PlayerInfo[ playerid ][ pSkin ] );
  121.  
  122. TextDrawShowForPlayer(playerid,TutorialSledi[0]); TextDrawShowForPlayer(playerid,TutorialSledi[1]);
  123. TextDrawShowForPlayer(playerid,TutorialSledi[2]); TextDrawShowForPlayer(playerid,TutorialSledi[3]);
  124. TextDrawShowForPlayer(playerid,TutorialSledi[4]); TextDrawShowForPlayer(playerid,TutorialSledi[5]);
  125. TextDrawShowForPlayer(playerid,TutorialSledi[6]); TutorialTimer[playerid] = SetTimerEx("Tutorial1",465, false, "i", playerid);
  126. }
Advertisement
Add Comment
Please, Sign In to add comment