Advertisement
Guest User

Untitled

a guest
May 20th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 12.58 KB | None | 0 0
  1. public OnPlayerConnect(playerid)
  2. {
  3. new PlayerText:TDEditor_PTD[MAX_PLAYERS][12];
  4. TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 165.841857, 101.333343, "box");
  5. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.000000, 22.322105);
  6. PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][0], 473.000000, 0.000000);
  7. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
  8. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
  9. PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][0], 1);
  10. PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][0], -2139062017);
  11. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
  12. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 0);
  13. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
  14. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 1);
  15. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
  16. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
  17.  
  18. TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 168.184478, 103.666664, "box");
  19. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][1], 0.000000, 21.759880);
  20. PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][1], 470.000000, 0.000000);
  21. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 1);
  22. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], -1);
  23. PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][1], 1);
  24. PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][1], -1061109505);
  25. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 0);
  26. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][1], 0);
  27. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][1], 255);
  28. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 1);
  29. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 1);
  30. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 0);
  31.  
  32. TDEditor_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 396.354339, 101.333236, "SELECT A ROAD-BLOCK");
  33. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][2], 0.400000, 1.600000);
  34. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][2], 3);
  35. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][2], 255);
  36. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][2], 0);
  37. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][2], 0);
  38. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][2], 255);
  39. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][2], 1);
  40. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][2], 1);
  41. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][2], 0);
  42.  
  43. TDEditor_PTD[playerid][3] = CreatePlayerTextDraw(playerid, 397.291625, 101.333328, "SELECT A ROAD-BLOCK");
  44. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][3], 0.400000, 1.600000);
  45. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][3], 3);
  46. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][3], -1);
  47. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][3], 0);
  48. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][3], 0);
  49. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][3], 255);
  50. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][3], 1);
  51. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][3], 1);
  52. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][3], 0);
  53.  
  54. TDEditor_PTD[playerid][4] = CreatePlayerTextDraw(playerid, 178.023422, 157.916641, "box");
  55. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][4], 0.000000, 7.469985);
  56. PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][4], 241.000000, 0.000000);
  57. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][4], 1);
  58. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][4], -1);
  59. PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][4], 1);
  60. PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][4], -2139062017);
  61. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][4], 0);
  62. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][4], 0);
  63. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][4], 255);
  64. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][4], 1);
  65. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][4], 1);
  66. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][4], 0);
  67. PlayerTextDrawSetSelectable(playerid, TDEditor_PTD[playerid][4], true);
  68.  
  69. TDEditor_PTD[playerid][5] = CreatePlayerTextDraw(playerid, 285.314788, 157.916564, "box");
  70. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][5], 0.000000, 7.469985);
  71. PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][5], 357.000000, 0.000000);
  72. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][5], 1);
  73. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][5], -1);
  74. PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][5], 1);
  75. PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][5], -2139062017);
  76. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][5], 0);
  77. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][5], 0);
  78. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][5], 255);
  79. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][5], 1);
  80. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][5], 1);
  81. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][5], 0);
  82. PlayerTextDrawSetSelectable(playerid, TDEditor_PTD[playerid][5], true);
  83.  
  84. TDEditor_PTD[playerid][6] = CreatePlayerTextDraw(playerid, 393.543426, 155.583251, "box");
  85. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][6], 0.000000, 7.469985);
  86. PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][6], 459.000000, 0.000000);
  87. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][6], 1);
  88. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][6], -1);
  89. PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][6], 1);
  90. PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][6], -2139062017);
  91. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][6], 0);
  92. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][6], 0);
  93. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][6], 255);
  94. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][6], 1);
  95. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][6], 1);
  96. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][6], 0);
  97. PlayerTextDrawSetSelectable(playerid, TDEditor_PTD[playerid][6], true);
  98.  
  99. TDEditor_PTD[playerid][7] = CreatePlayerTextDraw(playerid, 177.855041, 162.583236, "");
  100. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][7], 0.000000, 0.000000);
  101. PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][7], 63.000000, 59.000000);
  102. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][7], 1);
  103. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][7], -1);
  104. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][7], 0);
  105. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][7], 0);
  106. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][7], -2139062017);
  107. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][7], 5);
  108. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][7], 0);
  109. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][7], 0);
  110. PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][7], 1424);
  111. PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][7], 0.000000, 0.000000, 0.000000, 1.000000);
  112.  
  113. TDEditor_PTD[playerid][8] = CreatePlayerTextDraw(playerid, 280.629364, 258.833343, "box");
  114. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][8], 0.000000, 3.721817);
  115. PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][8], 171.000000, 0.000000);
  116. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][8], 1);
  117. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][8], -1);
  118. PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][8], 1);
  119. PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][8], -2139062017);
  120. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][8], 0);
  121. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][8], 0);
  122. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][8], 255);
  123. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][8], 1);
  124. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][8], 1);
  125. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][8], 0);
  126. PlayerTextDrawSetSelectable(playerid, TDEditor_PTD[playerid][8], true);
  127.  
  128. TDEditor_PTD[playerid][9] = CreatePlayerTextDraw(playerid, 287.020996, 157.916671, "");
  129. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][9], 0.000000, 0.000000);
  130. PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][9], 67.000000, 67.000000);
  131. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][9], 1);
  132. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][9], -1);
  133. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][9], 0);
  134. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][9], 0);
  135. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][9], -2139062017);
  136. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][9], 5);
  137. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][9], 0);
  138. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][9], 0);
  139. PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][9], 1459);
  140. PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][9], 0.000000, 0.000000, 0.000000, 1.000000);
  141.  
  142. TDEditor_PTD[playerid][10] = CreatePlayerTextDraw(playerid, 393.375122, 160.249984, "");
  143. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][10], 0.000000, 0.000000);
  144. PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][10], 65.000000, 54.000000);
  145. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][10], 1);
  146. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][10], -1);
  147. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][10], 0);
  148. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][10], 0);
  149. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][10], -2139062017);
  150. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][10], 5);
  151. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][10], 0);
  152. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][10], 0);
  153. PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][10], 1238);
  154. PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][10], 0.000000, 0.000000, 0.000000, 1.000000);
  155.  
  156. TDEditor_PTD[playerid][11] = CreatePlayerTextDraw(playerid, 193.016067, 267.583343, "CONFIRM");
  157. PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][11], 0.400000, 1.600000);
  158. PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][11], 1);
  159. PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][11], -1);
  160. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][11], 0);
  161. PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][11], 0);
  162. PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][11], 255);
  163. PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][11], 1);
  164. PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][11], 1);
  165. PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][11], 0);
  166.  
  167.     return 1;
  168. }
  169.  
  170. CMD:deployroadblock(playerid, params[])
  171. {
  172.     /*if(FactionInfo[PlayerInfo[playerid][pFaction]][eFactionType] == FACTION_TYPE_POLICE && PlayerInfo[playerid][pPoliceDuty])
  173.     {*/
  174.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][0]);
  175.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][1]);
  176.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][2]);
  177.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][3]);
  178.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][4]);
  179.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][5]);
  180.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][6]);
  181.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][7]);
  182.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][8]);
  183.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][9]);
  184.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][10]);
  185.     TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][11]);
  186.  
  187.         SelectTextDraw(playerid, COLOR_FADE2);
  188.     }
  189.     /*else
  190.     {
  191.         SendClientMessage(playerid, COLOR_REDEX, "ERROR: {FFFFFF}You don't have acess to this command!");
  192.         return 1;
  193.     }*/
  194.     return 1;
  195. }
  196.  
  197.  
  198. C:\Users\Razvan\Desktop\TDE\gamemodes\pcrp.pwn(646) : error 017: undefined symbol "TDEditor_PTD"
  199. C:\Users\Razvan\Desktop\TDE\gamemodes\pcrp.pwn(646) : warning 215: expression has no effect
  200. C:\Users\Razvan\Desktop\TDE\gamemodes\pcrp.pwn(646) : error 001: expected token: ";", but found "]"
  201. C:\Users\Razvan\Desktop\TDE\gamemodes\pcrp.pwn(646) : error 029: invalid expression, assumed zero
  202. C:\Users\Razvan\Desktop\TDE\gamemodes\pcrp.pwn(646) : fatal error 107: too many error messages on one line
  203.  
  204. LINE 646: TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement