Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.88 KB | None | 0 0
  1. CMD:tdcolor(playerid, params[])
  2. {
  3. new bojatd[20];
  4. if( sscanf( params, "s[20]", bojatd) ) return KORISCENJE( playerid, SERVERBOJA, "IZABERI: (( {ffffff}/tdcolor |CRVENA| |PLAVA| |ROZA| |ZUTA| |LJUBICASTA| |NARANDZASTA| |DEFAULT| )");
  5. if( !strcmp( bojatd, "default"))
  6. {
  7. //TextDrawColor(ServerPoruke[0], 0x034587FF); /// 9,7,5 NE!
  8. TextDrawColor(ServerPoruke[1], 0x034587FF);
  9. TextDrawColor(ServerPoruke[2], 0x034587FF);
  10. TextDrawColor(ServerPoruke[3], 0x034587FF);
  11. TextDrawColor(ServerPoruke[4], 0x034587FF);
  12. TextDrawColor(ServerPoruke[6], 0x034587FF);
  13. TextDrawColor(ServerPoruke[8], 0x034587FF);
  14. TextDrawColor(ServerPoruke[10], 0x034587FF);
  15. PlayerTextDrawColor(playerid,InfoTD[playerid][0], 0x034587FF);
  16. PlayerTextDrawColor(playerid,InfoTD[playerid][1], 0x034587FF);
  17. PlayerTextDrawColor(playerid,InfoTD[playerid][6], 0x034587FF);
  18. PlayerTextDrawColor(playerid,InfoTD[playerid][7], 0x034587FF);
  19. PlayerTextDrawColor(playerid,InfoTD[playerid][8], 0x034587FF);
  20. /* TextDrawColor(ServerPoruke[19], -2147483393);
  21. TextDrawColor(ServerPoruke[20], -2147483393);
  22. TextDrawColor(ServerPoruke[21], -2147483393);*/
  23. //TextDrawColor(Logo[1], -2147483393);
  24. //TextDrawColor(Logo[3], -2147483393);
  25. /*PlayerTextDrawColor(playerid,DropDownMenu[playerid][0], -2147483393);
  26. PlayerTextDrawColor(playerid,DropDownMenu[playerid][1], -2147483393);
  27. PlayerTextDrawColor(playerid,DropDownMenu[playerid][2], -2147483393);*/
  28. /*PlayerTextDrawColor(playerid, BRZINOMER[playerid][1], -2147483393);
  29. PlayerTextDrawColor(playerid, BRZINOMER[playerid][2], -2147483393);
  30. PlayerTextDrawColor(playerid, BRZINOMER[playerid][3], -2147483393);*/
  31.  
  32. //TextDrawShowForPlayer(playerid,ServerPoruke[0]);
  33. TextDrawShowForPlayer(playerid,ServerPoruke[1]);
  34. TextDrawShowForPlayer(playerid,ServerPoruke[2]);
  35. TextDrawShowForPlayer(playerid,ServerPoruke[3]);
  36. TextDrawShowForPlayer(playerid,ServerPoruke[4]);
  37. TextDrawShowForPlayer(playerid,ServerPoruke[6]);
  38. TextDrawShowForPlayer(playerid,ServerPoruke[8]);
  39. TextDrawShowForPlayer(playerid,ServerPoruke[10]);
  40. PlayerTextDrawShow(playerid,InfoTD[playerid][0]);
  41. PlayerTextDrawShow(playerid,InfoTD[playerid][1]);
  42. PlayerTextDrawShow(playerid,InfoTD[playerid][6]);
  43. PlayerTextDrawShow(playerid,InfoTD[playerid][7]);
  44. PlayerTextDrawShow(playerid,InfoTD[playerid][8]);
  45.  
  46. /* TextDrawShowForPlayer(playerid,ServerPoruke[19]);
  47. TextDrawShowForPlayer(playerid,ServerPoruke[20]);
  48. TextDrawShowForPlayer(playerid,ServerPoruke[21]);*/
  49. //TextDrawShowForPlayer(playerid,ServerPoruke[9]);
  50. SCM(playerid, -1, "Promenili ste boju tdova u default-u/plavu.");
  51. }
  52. else if(!strcmp(bojatd, "zelena"))
  53. {
  54. //TextDrawColor(ServerPoruke[0], 0x21DD00FF);
  55. TextDrawColor(ServerPoruke[1], 0x21DD00FF);
  56. TextDrawColor(ServerPoruke[2], 0x21DD00FF);
  57. TextDrawColor(ServerPoruke[3], 0x21DD00FF);
  58. TextDrawColor(ServerPoruke[4], 0x21DD00FF);
  59. TextDrawColor(ServerPoruke[6], 0x21DD00FF);
  60. TextDrawColor(ServerPoruke[8], 0x21DD00FF);
  61. TextDrawColor(ServerPoruke[10], 0x21DD00FF);
  62. PlayerTextDrawColor(playerid,InfoTD[playerid][0], 0x21DD00FF);
  63. PlayerTextDrawColor(playerid,InfoTD[playerid][1], 0x21DD00FF);
  64. PlayerTextDrawColor(playerid,InfoTD[playerid][6], 0x21DD00FF);
  65. PlayerTextDrawColor(playerid,InfoTD[playerid][7], 0x21DD00FF);
  66. PlayerTextDrawColor(playerid,InfoTD[playerid][8], 0x21DD00FF);
  67. // TextDrawColor(ServerPoruke[19], 0x21DD00FF);
  68. //TextDrawColor(ServerPoruke[20], 0x21DD00FF);
  69. //TextDrawColor(ServerPoruke[21], 0x21DD00FF);
  70.  
  71. //TextDrawShowForPlayer(playerid,ServerPoruke[0]);
  72. TextDrawShowForPlayer(playerid,ServerPoruke[1]);
  73. TextDrawShowForPlayer(playerid,ServerPoruke[2]);
  74. TextDrawShowForPlayer(playerid,ServerPoruke[3]);
  75. TextDrawShowForPlayer(playerid,ServerPoruke[4]);
  76. TextDrawShowForPlayer(playerid,ServerPoruke[6]);
  77. TextDrawShowForPlayer(playerid,ServerPoruke[8]);
  78. TextDrawShowForPlayer(playerid,ServerPoruke[10]);
  79. PlayerTextDrawShow(playerid,InfoTD[playerid][0]);
  80. PlayerTextDrawShow(playerid,InfoTD[playerid][1]);
  81. PlayerTextDrawShow(playerid,InfoTD[playerid][6]);
  82. PlayerTextDrawShow(playerid,InfoTD[playerid][7]);
  83. PlayerTextDrawShow(playerid,InfoTD[playerid][8]);
  84. SCM(playerid, -1, "Promenili ste boju tdova u zelenu.");
  85. }
  86. else if(!strcmp(bojatd, "roza"))
  87. {
  88. //TextDrawColor(ServerPoruke[0], 0xFF66FFAA);
  89. TextDrawColor(ServerPoruke[1], 0xFF66FFAA);
  90. TextDrawColor(ServerPoruke[2], 0xFF66FFAA);
  91. TextDrawColor(ServerPoruke[3], 0xFF66FFAA);
  92. TextDrawColor(ServerPoruke[4], 0xFF66FFAA);
  93. TextDrawColor(ServerPoruke[6], 0xFF66FFAA);
  94. TextDrawColor(ServerPoruke[8], 0xFF66FFAA);
  95. TextDrawColor(ServerPoruke[10], 0xFF66FFAA);
  96. PlayerTextDrawColor(playerid,InfoTD[playerid][0], 0xFF66FFAA);
  97. PlayerTextDrawColor(playerid,InfoTD[playerid][1], 0xFF66FFAA);
  98. PlayerTextDrawColor(playerid,InfoTD[playerid][6], 0xFF66FFAA);
  99. PlayerTextDrawColor(playerid,InfoTD[playerid][7], 0xFF66FFAA);
  100. PlayerTextDrawColor(playerid,InfoTD[playerid][8], 0xFF66FFAA);
  101. // TextDrawColor(ServerPoruke[19], 0xFF66FFAA);
  102. // TextDrawColor(ServerPoruke[20], 0xFF66FFAA);
  103. //TextDrawColor(ServerPoruke[21], 0xFF66FFAA);
  104. //TextDrawShowForPlayer(playerid,ServerPoruke[0]);
  105. TextDrawShowForPlayer(playerid,ServerPoruke[1]);
  106. TextDrawShowForPlayer(playerid,ServerPoruke[2]);
  107. TextDrawShowForPlayer(playerid,ServerPoruke[3]);
  108. TextDrawShowForPlayer(playerid,ServerPoruke[4]);
  109. TextDrawShowForPlayer(playerid,ServerPoruke[6]);
  110. TextDrawShowForPlayer(playerid,ServerPoruke[8]);
  111. TextDrawShowForPlayer(playerid,ServerPoruke[10]);
  112. PlayerTextDrawShow(playerid,InfoTD[playerid][0]);
  113. PlayerTextDrawShow(playerid,InfoTD[playerid][1]);
  114. PlayerTextDrawShow(playerid,InfoTD[playerid][6]);
  115. PlayerTextDrawShow(playerid,InfoTD[playerid][7]);
  116. PlayerTextDrawShow(playerid,InfoTD[playerid][8]);
  117. SCM(playerid, -1, "Promenili ste boju tdova u rozu.");
  118. }
  119. else if(!strcmp(bojatd, "zuta"))
  120. {
  121. ////TextDrawColor(ServerPoruke[0], 0xFFC801C8);
  122. TextDrawColor(ServerPoruke[1], 0xFFC801C8);
  123. TextDrawColor(ServerPoruke[2], 0xFFC801C8);
  124. TextDrawColor(ServerPoruke[3], 0xFFC801C8);
  125. TextDrawColor(ServerPoruke[4], 0xFFC801C8);
  126. TextDrawColor(ServerPoruke[6], 0xFFC801C8);
  127. TextDrawColor(ServerPoruke[8], 0xFFC801C8);
  128. TextDrawColor(ServerPoruke[10], 0xFFC801C8);
  129. PlayerTextDrawColor(playerid,InfoTD[playerid][0], 0xFFC801C8);
  130. PlayerTextDrawColor(playerid,InfoTD[playerid][1], 0xFFC801C8);
  131. PlayerTextDrawColor(playerid,InfoTD[playerid][6], 0xFFC801C8);
  132. PlayerTextDrawColor(playerid,InfoTD[playerid][7], 0xFFC801C8);
  133. PlayerTextDrawColor(playerid,InfoTD[playerid][8], 0xFFC801C8);
  134. // TextDrawColor(ServerPoruke[19], 0xFFC801C8);
  135. // TextDrawColor(ServerPoruke[20], 0xFFC801C8);
  136. //TextDrawColor(ServerPoruke[21], 0xFFC801C8);
  137. //TextDrawShowForPlayer(playerid,ServerPoruke[0]);
  138. TextDrawShowForPlayer(playerid,ServerPoruke[1]);
  139. TextDrawShowForPlayer(playerid,ServerPoruke[2]);
  140. TextDrawShowForPlayer(playerid,ServerPoruke[3]);
  141. TextDrawShowForPlayer(playerid,ServerPoruke[4]);
  142. TextDrawShowForPlayer(playerid,ServerPoruke[6]);
  143. TextDrawShowForPlayer(playerid,ServerPoruke[8]);
  144. TextDrawShowForPlayer(playerid,ServerPoruke[10]);
  145. PlayerTextDrawShow(playerid,InfoTD[playerid][0]);
  146. PlayerTextDrawShow(playerid,InfoTD[playerid][1]);
  147. PlayerTextDrawShow(playerid,InfoTD[playerid][6]);
  148. PlayerTextDrawShow(playerid,InfoTD[playerid][7]);
  149. PlayerTextDrawShow(playerid,InfoTD[playerid][8]);
  150. SCM(playerid, -1, "Promenili ste boju tdova u zutu.");
  151. }
  152. else if(!strcmp(bojatd, "ljubicasta"))
  153. {
  154. //TextDrawColor(ServerPoruke[0], 0x800080FF);
  155. TextDrawColor(ServerPoruke[1], 0x800080FF);
  156. TextDrawColor(ServerPoruke[2], 0x800080FF);
  157. TextDrawColor(ServerPoruke[3], 0x800080FF);
  158. TextDrawColor(ServerPoruke[4], 0x800080FF);
  159. TextDrawColor(ServerPoruke[6], 0x800080FF);
  160. TextDrawColor(ServerPoruke[8], 0x800080FF);
  161. TextDrawColor(ServerPoruke[10], 0x800080FF);
  162. PlayerTextDrawColor(playerid,InfoTD[playerid][0], 0x800080FF);
  163. PlayerTextDrawColor(playerid,InfoTD[playerid][1], 0x800080FF);
  164. PlayerTextDrawColor(playerid,InfoTD[playerid][6], 0x800080FF);
  165. PlayerTextDrawColor(playerid,InfoTD[playerid][7], 0x800080FF);
  166. PlayerTextDrawColor(playerid,InfoTD[playerid][8], 0x800080FF);
  167. //TextDrawColor(ServerPoruke[19], 0xF9B7FFAA);
  168. //TextDrawColor(ServerPoruke[20], 0xF9B7FFAA);
  169. //TextDrawColor(ServerPoruke[21], 0xF9B7FFAA);
  170. //TextDrawShowForPlayer(playerid,ServerPoruke[0]);
  171. TextDrawShowForPlayer(playerid,ServerPoruke[1]);
  172. TextDrawShowForPlayer(playerid,ServerPoruke[2]);
  173. TextDrawShowForPlayer(playerid,ServerPoruke[3]);
  174. TextDrawShowForPlayer(playerid,ServerPoruke[4]);
  175. TextDrawShowForPlayer(playerid,ServerPoruke[6]);
  176. TextDrawShowForPlayer(playerid,ServerPoruke[8]);
  177. TextDrawShowForPlayer(playerid,ServerPoruke[10]);
  178. PlayerTextDrawShow(playerid,InfoTD[playerid][0]);
  179. PlayerTextDrawShow(playerid,InfoTD[playerid][1]);
  180. PlayerTextDrawShow(playerid,InfoTD[playerid][6]);
  181. PlayerTextDrawShow(playerid,InfoTD[playerid][7]);
  182. PlayerTextDrawShow(playerid,InfoTD[playerid][8]);
  183. SCM(playerid, -1, "Promenili ste boju tdova u ljubicastu.");
  184. }
  185. else if(!strcmp(bojatd, "narandzasta"))
  186. {
  187. //TextDrawColor(ServerPoruke[0], 0xFF9900AA);
  188. TextDrawColor(ServerPoruke[1], 0xFF9900AA);
  189. TextDrawColor(ServerPoruke[2], 0xFF9900AA);
  190. TextDrawColor(ServerPoruke[3], 0xFF9900AA);
  191. TextDrawColor(ServerPoruke[4], 0xFF9900AA);
  192. TextDrawColor(ServerPoruke[6], 0xFF9900AA);
  193. TextDrawColor(ServerPoruke[8], 0xFF9900AA);
  194. TextDrawColor(ServerPoruke[10], 0xFF9900AA);
  195. PlayerTextDrawColor(playerid,InfoTD[playerid][0], 0xFF9900AA);
  196. PlayerTextDrawColor(playerid,InfoTD[playerid][1], 0xFF9900AA);
  197. PlayerTextDrawColor(playerid,InfoTD[playerid][6], 0xFF9900AA);
  198. PlayerTextDrawColor(playerid,InfoTD[playerid][7], 0xFF9900AA);
  199. PlayerTextDrawColor(playerid,InfoTD[playerid][8], 0xFF9900AA);
  200. // TextDrawColor(ServerPoruke[19], 0xFF9900AA);
  201. // TextDrawColor(ServerPoruke[20], 0xFF9900AA);
  202. // TextDrawColor(ServerPoruke[21], 0xFF9900AA);
  203. //TextDrawShowForPlayer(playerid,ServerPoruke[0]);
  204. TextDrawShowForPlayer(playerid,ServerPoruke[1]);
  205. TextDrawShowForPlayer(playerid,ServerPoruke[2]);
  206. TextDrawShowForPlayer(playerid,ServerPoruke[3]);
  207. TextDrawShowForPlayer(playerid,ServerPoruke[4]);
  208. TextDrawShowForPlayer(playerid,ServerPoruke[6]);
  209. TextDrawShowForPlayer(playerid,ServerPoruke[8]);
  210. TextDrawShowForPlayer(playerid,ServerPoruke[10]);
  211. PlayerTextDrawShow(playerid,InfoTD[playerid][0]);
  212. PlayerTextDrawShow(playerid,InfoTD[playerid][1]);
  213. PlayerTextDrawShow(playerid,InfoTD[playerid][6]);
  214. PlayerTextDrawShow(playerid,InfoTD[playerid][7]);
  215. PlayerTextDrawShow(playerid,InfoTD[playerid][8]);
  216. SCM(playerid, -1, "Promenili ste boju tdova u narandzastu.");
  217. }
  218. else if(!strcmp(bojatd, "crvena"))
  219. {
  220. //TextDrawColor(ServerPoruke[0], -2147483393);
  221. TextDrawColor(ServerPoruke[1], -2147483393);
  222. TextDrawColor(ServerPoruke[2], -2147483393);
  223. TextDrawColor(ServerPoruke[3], -2147483393);
  224. TextDrawColor(ServerPoruke[4], -2147483393);
  225. TextDrawColor(ServerPoruke[6], -2147483393);
  226. TextDrawColor(ServerPoruke[8], -2147483393);
  227. TextDrawColor(ServerPoruke[10], -2147483393);
  228. PlayerTextDrawColor(playerid,InfoTD[playerid][0], -2147483393);
  229. PlayerTextDrawColor(playerid,InfoTD[playerid][1], -2147483393);
  230. PlayerTextDrawColor(playerid,InfoTD[playerid][6], -2147483393);
  231. PlayerTextDrawColor(playerid,InfoTD[playerid][7], -2147483393);
  232. PlayerTextDrawColor(playerid,InfoTD[playerid][8], -2147483393);
  233. // TextDrawColor(ServerPoruke[19], 0x0077C7FF);
  234. //TextDrawColor(ServerPoruke[20], 0x0077C7FF);
  235. //TextDrawColor(ServerPoruke[21], 0x0077C7FF);
  236. //TextDrawShowForPlayer(playerid,ServerPoruke[0]);
  237. TextDrawShowForPlayer(playerid,ServerPoruke[1]);
  238. TextDrawShowForPlayer(playerid,ServerPoruke[2]);
  239. TextDrawShowForPlayer(playerid,ServerPoruke[3]);
  240. TextDrawShowForPlayer(playerid,ServerPoruke[4]);
  241. TextDrawShowForPlayer(playerid,ServerPoruke[6]);
  242. TextDrawShowForPlayer(playerid,ServerPoruke[8]);
  243. TextDrawShowForPlayer(playerid,ServerPoruke[10]);
  244. PlayerTextDrawShow(playerid,InfoTD[playerid][0]);
  245. PlayerTextDrawShow(playerid,InfoTD[playerid][1]);
  246. PlayerTextDrawShow(playerid,InfoTD[playerid][6]);
  247. PlayerTextDrawShow(playerid,InfoTD[playerid][7]);
  248. PlayerTextDrawShow(playerid,InfoTD[playerid][8]);
  249. SCM(playerid, -1, "Promenili ste boju tdova u crvenu.");
  250. }
  251. // SCM(playerid,-1,"{0077C7}|| DEEP ||:{FFFFFF} Uspesno ste promenili boju tdova.");
  252. return 1;
  253. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement