Guest User

Untitled

a guest
Apr 14th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.44 KB | None | 0 0
  1. function CheckAccount(playerid)
  2. {
  3. switch(cache_num_rows()) {
  4. case 0: Dialog_Show(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register to the server", "{FFFFFF}Welcome to our server, %s. Please type a strong password below to continue.", "Register", "Dip",GetName(playerid));
  5. case 1: {
  6. SelectTextDraw(playerid, 0xFFFFFFF);
  7. for(new i = 0; i < 9; i++) PlayerTextDrawShow(playerid, LoginPTD[playerid][i]); //Dialog_Show(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login to the server", "{FFFFFF}Welcome back to {AFAFAF}Server{FFFFFF}%s. Please input your password below to log-in.", "Login", "Dip",GetName(playerid));
  8. }
  9. }
  10. return 1;
  11. }
  12. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) {
  13. if(playertextid == LoginPTD[playerid][3]) return Dialog_Show(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login to the server", "{FFFFFF}Welcome back to {AFAFAF}Server{FFFFFF}%s. Please input your password below to log-in.", "Login", "Dip",GetName(playerid));
  14. return true;
  15. }
  16.  
  17.  
  18. LoginPTD[playerid][0] = CreatePlayerTextDraw(playerid, 197.232894, 167.249984, "box");
  19. PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][0], 0.000000, 12.904830);
  20. PlayerTextDrawTextSize(playerid, LoginPTD[playerid][0], 423.000000, 0.000000);
  21. PlayerTextDrawAlignment(playerid, LoginPTD[playerid][0], 1);
  22. PlayerTextDrawColor(playerid, LoginPTD[playerid][0], -1);
  23. PlayerTextDrawUseBox(playerid, LoginPTD[playerid][0], 1);
  24. PlayerTextDrawBoxColor(playerid, LoginPTD[playerid][0], 16777039);
  25. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][0], 0);
  26. PlayerTextDrawSetOutline(playerid, LoginPTD[playerid][0], 0);
  27. PlayerTextDrawBackgroundColor(playerid, LoginPTD[playerid][0], 255);
  28. PlayerTextDrawFont(playerid, LoginPTD[playerid][0], 1);
  29. PlayerTextDrawSetProportional(playerid, LoginPTD[playerid][0], 1);
  30. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][0], 0);
  31.  
  32. LoginPTD[playerid][1] = CreatePlayerTextDraw(playerid, 300.139312, 262.916687, "ld_beat:chit");
  33. PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][1], 0.000000, 0.000000);
  34. PlayerTextDrawTextSize(playerid, LoginPTD[playerid][1], 145.000000, 24.000000);
  35. PlayerTextDrawAlignment(playerid, LoginPTD[playerid][1], 1);
  36. PlayerTextDrawColor(playerid, LoginPTD[playerid][1], -1);
  37. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][1], 0);
  38. PlayerTextDrawSetOutline(playerid, LoginPTD[playerid][1], 0);
  39. PlayerTextDrawBackgroundColor(playerid, LoginPTD[playerid][1], 255);
  40. PlayerTextDrawFont(playerid, LoginPTD[playerid][1], 4);
  41. PlayerTextDrawSetProportional(playerid, LoginPTD[playerid][1], 0);
  42. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][1], 0);
  43.  
  44. LoginPTD[playerid][2] = CreatePlayerTextDraw(playerid, 373.397003, 266.416748, "LOGIN");
  45. PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][2], 0.400000, 1.600000);
  46. PlayerTextDrawAlignment(playerid, LoginPTD[playerid][2], 2);
  47. PlayerTextDrawColor(playerid, LoginPTD[playerid][2], -1);
  48. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][2], 0);
  49. PlayerTextDrawSetOutline(playerid, LoginPTD[playerid][2], 1);
  50. PlayerTextDrawBackgroundColor(playerid, LoginPTD[playerid][2], 255);
  51. PlayerTextDrawFont(playerid, LoginPTD[playerid][2], 2);
  52. PlayerTextDrawSetProportional(playerid, LoginPTD[playerid][2], 1);
  53. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][2], 0);
  54. PlayerTextDrawSetSelectable(playerid, LoginPTD[playerid][3], true);
  55.  
  56. LoginPTD[playerid][3] = CreatePlayerTextDraw(playerid, 334.261779, 193.433410, "CLICK HERE FOR PASSWORD");
  57. PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][3], 0.286149, 1.617500);
  58. PlayerTextDrawAlignment(playerid, LoginPTD[playerid][3], 2);
  59. PlayerTextDrawColor(playerid, LoginPTD[playerid][3], -1);
  60. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][3], 0);
  61. PlayerTextDrawSetOutline(playerid, LoginPTD[playerid][3], 0);
  62. PlayerTextDrawBackgroundColor(playerid, LoginPTD[playerid][3], 255);
  63. PlayerTextDrawFont(playerid, LoginPTD[playerid][3], 1);
  64. PlayerTextDrawSetProportional(playerid, LoginPTD[playerid][3], 1);
  65. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][3], 0);
  66. PlayerTextDrawSetSelectable(playerid, LoginPTD[playerid][3], true);
  67.  
  68. LoginPTD[playerid][4] = CreatePlayerTextDraw(playerid, 206.603210, 177.166641, "box");
  69. PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][4], 0.000000, 6.064422);
  70. PlayerTextDrawTextSize(playerid, LoginPTD[playerid][4], 259.000000, 0.000000);
  71. PlayerTextDrawAlignment(playerid, LoginPTD[playerid][4], 1);
  72. PlayerTextDrawColor(playerid, LoginPTD[playerid][4], -1);
  73. PlayerTextDrawUseBox(playerid, LoginPTD[playerid][4], 1);
  74. PlayerTextDrawBoxColor(playerid, LoginPTD[playerid][4], 110);
  75. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][4], 0);
  76. PlayerTextDrawSetOutline(playerid, LoginPTD[playerid][4], 0);
  77. PlayerTextDrawBackgroundColor(playerid, LoginPTD[playerid][4], 255);
  78. PlayerTextDrawFont(playerid, LoginPTD[playerid][4], 1);
  79. PlayerTextDrawSetProportional(playerid, LoginPTD[playerid][4], 1);
  80. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][4], 0);
  81.  
  82. LoginPTD[playerid][5] = CreatePlayerTextDraw(playerid, 192.847702, 176.000015, "");
  83. PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][5], 0.000000, 0.000000);
  84. PlayerTextDrawTextSize(playerid, LoginPTD[playerid][5], 75.000000, 55.000000);
  85. PlayerTextDrawAlignment(playerid, LoginPTD[playerid][5], 1);
  86. PlayerTextDrawColor(playerid, LoginPTD[playerid][5], -1);
  87. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][5], 0);
  88. PlayerTextDrawSetOutline(playerid, LoginPTD[playerid][5], 0);
  89. PlayerTextDrawBackgroundColor(playerid, LoginPTD[playerid][5], 0);
  90. PlayerTextDrawFont(playerid, LoginPTD[playerid][5], 5);
  91. PlayerTextDrawSetProportional(playerid, LoginPTD[playerid][5], 0);
  92. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][5], 0);
  93. PlayerTextDrawSetPreviewModel(playerid, LoginPTD[playerid][5], 0);
  94. PlayerTextDrawSetPreviewRot(playerid, LoginPTD[playerid][5], 0.000000, 0.000000, 0.000000, 1.000000);
  95.  
  96. LoginPTD[playerid][6] = CreatePlayerTextDraw(playerid, 270.321929, 195.833328, "box");
  97. PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][6], 0.000000, 1.191802);
  98. PlayerTextDrawTextSize(playerid, LoginPTD[playerid][6], 399.000000, 0.000000);
  99. PlayerTextDrawAlignment(playerid, LoginPTD[playerid][6], 1);
  100. PlayerTextDrawColor(playerid, LoginPTD[playerid][6], -1);
  101. PlayerTextDrawUseBox(playerid, LoginPTD[playerid][6], 1);
  102. PlayerTextDrawBoxColor(playerid, LoginPTD[playerid][6], 134);
  103. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][6], 0);
  104. PlayerTextDrawSetOutline(playerid, LoginPTD[playerid][6], 0);
  105. PlayerTextDrawBackgroundColor(playerid, LoginPTD[playerid][6], 255);
  106. PlayerTextDrawFont(playerid, LoginPTD[playerid][6], 1);
  107. PlayerTextDrawSetProportional(playerid, LoginPTD[playerid][6], 1);
  108. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][6], 0);
  109.  
  110. LoginPTD[playerid][7] = CreatePlayerTextDraw(playerid, 236.588546, 237.017639, "qSorin[]");
  111. PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][7], 0.312386, 0.952499);
  112. PlayerTextDrawAlignment(playerid, LoginPTD[playerid][7], 2);
  113. PlayerTextDrawColor(playerid, LoginPTD[playerid][7], -1);
  114. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][7], 0);
  115. PlayerTextDrawSetOutline(playerid, LoginPTD[playerid][7], 1);
  116. PlayerTextDrawBackgroundColor(playerid, LoginPTD[playerid][7], 255);
  117. PlayerTextDrawFont(playerid, LoginPTD[playerid][7], 3);
  118. PlayerTextDrawSetProportional(playerid, LoginPTD[playerid][7], 1);
  119. PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][7], 0);
Advertisement
Add Comment
Please, Sign In to add comment