Advertisement
Guest User

register to dialog reg

a guest
Dec 14th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.77 KB | None | 0 0
  1. if( playertextid == RegisterTD[ playerid ][ 1 ] ) {
  2. SPD( playerid, dialog_REGISTER, DSI, "Registracija", "Password moze sadrzavati minimalno 6 a maximalno 24 znaka", "Registriraj", "Izadji" );
  3. return true;
  4. }
  5. if( playertextid == RegisterTD[ playerid ][ 5 ] ) { // pol
  6. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Musko");
  7. PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ 0 ][ 0 ] );
  8. for( new i = 13; i < 20; i ++) {
  9. PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ i ] );
  10. }
  11. BiraPol[ playerid ] = 1;
  12. BiraSkin[ playerid ] = 0;
  13. return true;
  14. }
  15. if( playertextid == RegisterTD[ playerid ][ 16 ] ) { // desno
  16. if( BiraPol[ playerid ] > 0 ) {
  17. if( BiraPol[ playerid ] == 1 ) {
  18. BiraPol[ playerid ] = 2;
  19. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Zensko");
  20. PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], FemaleSkinIDs[ 0 ][ 0 ] );
  21. }
  22. else if( BiraPol[ playerid ] == 2 ) {
  23. BiraPol[ playerid ] = 1;
  24. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Musko");
  25. PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ 0 ][ 0 ] );
  26. }
  27. }
  28. if( BiraSkin[ playerid ] > 0 ) {
  29. if( RegSex[ playerid ] == 1 ) { // musko
  30. if( BiraSkin[ playerid ] == 4 ) BiraSkin[ playerid ] = 0;
  31. BiraSkin[ playerid ]++;
  32. PlayerInfo[ playerid ][ xSkin ] = MaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ];
  33. PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ] );
  34. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], MaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
  35. }
  36. else if( RegSex[ playerid ] == 2 ) { // zensko
  37. if( BiraSkin[ playerid ] == 4 ) BiraSkin[ playerid ] = 0;
  38. BiraSkin[ playerid ]++;
  39. PlayerInfo[ playerid ][ xSkin ] = FemaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ];
  40. PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], FemaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ] );
  41. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], FemaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
  42. }
  43. }
  44. PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ 13 ] );
  45. return true;
  46. }
  47. if( playertextid == RegisterTD[ playerid ][ 17 ] ) { // levo
  48. if( BiraPol[ playerid ] > 0 ) {
  49. if( BiraPol[ playerid ] == 1 ) {
  50. BiraPol[ playerid ] = 2;
  51. PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], FemaleSkinIDs[ 0 ][ 0 ] );
  52. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Zensko");
  53. }
  54. else if( BiraPol[ playerid ] == 2 ) {
  55. BiraPol[ playerid ] = 1;
  56. PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ 0 ][ 0 ] );
  57. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Musko");
  58. }
  59. }
  60. if( BiraSkin[ playerid ] > 0 ) {
  61. if( RegSex[ playerid ] == 1 ) { // musko
  62. if( BiraSkin[ playerid ] == 1 ) BiraSkin[ playerid ] = 5;
  63. BiraSkin[ playerid ]--;
  64. PlayerInfo[ playerid ][ xSkin ] = MaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ];
  65. PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ] );
  66. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], MaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
  67. }
  68. else if( RegSex[ playerid ] == 2 ) { // zensko
  69. if( BiraSkin[ playerid ] == 1 ) BiraSkin[ playerid ] = 5;
  70. BiraSkin[ playerid ]--;
  71. PlayerInfo[ playerid ][ xSkin ] = FemaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ];
  72. PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], FemaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ] );
  73. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], FemaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
  74. }
  75. }
  76. PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ 13 ] );
  77. return true;
  78. }
  79. if( playertextid == RegisterTD[ playerid ][ 19 ] ) { // izaberi
  80. if( BiraPol[ playerid ] > 0 ) {
  81. if( BiraPol[ playerid ] == 1 ) {
  82. PlayerInfo[ playerid ][ xPol ] = 1;
  83. RegSex[ playerid ] = 1;
  84. BiraPol[ playerid ] = 0;
  85. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 5 ], "Musko");
  86. PlayerInfo[ playerid ][ xSkin ] = MaleSkinIDs[ 0 ][ 0 ];
  87. }
  88. else if( BiraPol[ playerid ] == 2 ) {
  89. PlayerInfo[ playerid ][ xPol ] = 2;
  90. RegSex[ playerid ] = 2;
  91. BiraPol[ playerid ] = 0;
  92. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 5 ], "Zensko");
  93. PlayerInfo[ playerid ][ xSkin ] = FemaleSkinIDs[ 0 ][ 0 ];
  94. }
  95. }
  96. if( BiraSkin[ playerid ] > 0 ) {
  97. if( RegSex[ playerid ] == 1 ) {
  98. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 9 ], MaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
  99. }
  100. else if( RegSex[ playerid ] == 2 ) {
  101. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 9 ], FemaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
  102. }
  103. PlayerTextDrawLetterSize( playerid, RegisterTD[ playerid ][ 9 ], 0.200000, 1.000000 );
  104. PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ 9 ] );
  105. BiraSkin[ playerid ] = 0;
  106. }
  107. for( new i = 13; i < 20; i ++) {
  108. PlayerTextDrawHide( playerid, RegisterTD[ playerid ][ i ] );
  109. }
  110. return true;
  111. }
  112. if( playertextid == RegisterTD[ playerid ][ 9 ] ) { // skin
  113. for( new i = 13; i < 20; i ++) {
  114. PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ i ] );
  115. }
  116. if( RegSex[ playerid ] == 1 ) {
  117. PlayerInfo[ playerid ][ xSkin ] = 29;
  118. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], MaleSkinNames[ 0 ][ 0 ] );
  119. PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ 0 ][ 0 ] );
  120. }
  121. else if( RegSex[ playerid ] == 2 ) {
  122. PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], FemaleSkinNames[ 0 ][ 0 ] );
  123. PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], FemaleSkinIDs[ 0 ][ 0 ] );
  124. }
  125. PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ 13 ] );
  126. BiraPol[ playerid ] = 0;
  127. BiraSkin[ playerid ] = 1;
  128. return true;
  129. }
  130. if( playertextid == RegisterTD[ playerid ][ 3 ] ) {
  131. SPD( playerid, dialog_COUNTRY, DSL, "Poreklo", "Srbija\nHrvatska\nMakedonija\nCrna Gora\nBosna i Hercegovina\nOstalo", "Odabir", "Izadji" );
  132. return true;
  133. }
  134. if( playertextid == RegisterTD[ playerid ][ 7 ] ) {
  135. SPD( playerid, dialog_AGE, DSI, "Godine", "U prazni prostor ispod unesite vase godine\nMinimalno 12 maximalno 70", "Unos", "Izadji" );
  136. return true;
  137. }
  138. if( playertextid == RegisterTD[ playerid ][ 11 ] ) {
  139. SPD(playerid, dialog_MAIL, DSI, "Mail", "U prazni prostor ispod unesite vasu e-mail adresu.\nE-mail adresa ce nam posluziti u vracanju vasih passworda.(Bez maila nema vracanja passworda)", "Unos", "Izadji" );
  140. return true;
  141. }
  142. if( playertextid == RegisterTD[ playerid ][ 12 ] ) {
  143. if( InputPassword[ playerid ] == false ) return GRESKA( playerid, "Nisi odabrao lozinku." );
  144. if( ChoseCountry[ playerid ] == false ) return GRESKA( playerid, "Nisi odabrao poreklo." );
  145. if( InputAge[ playerid ] == false ) return GRESKA( playerid, "Nisi odabrao godine starosti." );
  146. if( InputMail[ playerid ] == false ) return GRESKA( playerid, "Nisi uneo email." );
  147. if( RegSex[ playerid ] == 0 ) return GRESKA( playerid, "Nisi odabrao drzavu." );
  148. CancelSelectTextDraw( playerid );
  149. IgracSeRegistruje[ playerid ] = false;
  150. RegisterTDControl( playerid, false );
  151. PlayerInfo[ playerid ][ xRegistrovan ] = 1;
  152. PlayerInfo[ playerid ][ xPocetniTut ] = 0;
  153. PlayerInfo[ playerid ][ xSpawn ] = SetRandomSpawn( playerid );
  154. PlayerInfo[ playerid ][ xLevel ] = ServerInfo[ PocetniLevel ];
  155. new datum[ 64 ]; new year, month,day;
  156. getdate( year, month, day );
  157. new tmphour, tmpminute, tmpsecond;
  158. gettimeEx( tmphour, tmpminute, tmpsecond );
  159. FixHour( tmphour );
  160. tmphour = shifthour;
  161. format( datum, sizeof( datum ), "%02d/%02d/%d - %d/%d/%d", day, month, year, tmphour, tmpminute, tmpsecond );
  162. strmid( PlayerInfo[ playerid ][ xLastLogin ], datum, 0, strlen( datum ), 64 );
  163. SetPlayerScore( playerid, PlayerInfo[ playerid ][ xLevel ] );
  164. DajIgracuNovac( playerid, ServerInfo[ PocetniNovaca ] );
  165. SavePlayer( playerid );
  166. SetPlayerSkin( playerid, PlayerInfo[ playerid ][ xSkin ] );
  167. SendInfoMessage( playerid, "Uspesno ste se registrirali na Santiago Roleplay te vam zelimo dobrodoslicu!");
  168. TogglePlayerSpectating( playerid, true );
  169.  
  170. InterpolateCameraPos( playerid, 1677.1746, -1303.1085, 481.0584, 1452.0430, -1314.4868, 176.0983, 50000, CAMERA_MOVE);
  171. InterpolateCameraLookAt( playerid, 1676.1766, -1312.1057, 479.6893, 1451.0450, -1314.4979, 174.7492, 50000, CAMERA_MOVE);
  172. SetPlayerInterior( playerid, 0 );
  173. SetPlayerVirtualWorld( playerid, 1 );
  174. Simec_SetPlayerPos( playerid, 1463.7633,-1041.4501,26.8281);
  175. SendClientMessage( playerid, SIVA," ");
  176. SendClientMessage( playerid, SIVA," ");
  177. SendClientMessage( playerid, SIVA," ");
  178. SendClientMessage( playerid, SIVA," ");
  179. SendClientMessage( playerid, SIVA," ");
  180. SendClientMessage( playerid, SIVA," ");
  181. SendClientMessage( playerid, ZELENA, "~ DOBRO DOSLI NA Santiago ~");
  182. SendClientMessage( playerid, SIVA," ");
  183. SendClientMessage( playerid, BELA, "Pre svega zelimo vam pozeleti dobrodoslicu na nas server.");
  184. SendClientMessage( playerid, BELA, "Ovo je tutorijal u kojem cemo vam pokazati najvaznije lokacije na serveru.");
  185. SendClientMessage( playerid, BELA, "Objasnit cemo vam kako uspesno zapoceti igru i uciniti je zanimljivom.");
  186. SendClientMessage( playerid, BELA, "Verujem da znate da je ovo RP server i da je dosta tesko doci do novca.");
  187. SendClientMessage( playerid, BELA, "Na pocetku imate 5000$ kod sebe, koje ce vam pomoci.");
  188. TimerTutorial[ playerid ] = SetTimerEx( "PocetniTut", 25000, false, "ii", playerid, 1 );
  189. PocetniTutorialStartovan[ playerid ] = true;
  190. return true;
  191. }
  192. /*if( playertextid == RegisterTD[ playerid ][ 7 ] ) {
  193. Kickovanje( playerid, "Prekinuli ste registraciju i kickovani ste!" );
  194. return true;
  195. }*/
  196. //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement