Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3. if (strcmp(cmdtext, "/cores", true)==0)
  4. {
  5. ShowPlayerDialog(playerid, 945371, DIALOG_STYLE_LIST, "Sistema de Cores", "Azul\nVerde\nVermelho\nAmarelo\nPreto\nRoxo\nRosa\nBranco\nCinza\nVermelho Claro\nVerde Claro\nLaranja\nAzul 2\nAzul 3\nAzul 4", "Selecionar", "Cancelar");
  6. PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
  7. }
  8. return 1;
  9. }
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  21. {
  22.  
  23. if(dialogid == 945371)
  24. {
  25. if(response)
  26. {
  27. if(listitem == 0)
  28. {
  29. //Azul
  30. SetPlayerColor(playerid,0x0000CAAA);
  31. SendClientMessage(playerid, 0x0000CAAA, "A cor do seu nome e azul!");
  32. }
  33. if(listitem == 1)
  34. {
  35. //Verde
  36. SetPlayerColor(playerid, 0x008B01AA);
  37. SendClientMessage(playerid, 0x008B01AA, "Seu nome esta verde!");
  38. }
  39. if(listitem == 2)
  40. {
  41. //Vermelho
  42. SetPlayerColor(playerid,0xF60001AA);
  43. SendClientMessage(playerid, 0xF60001AA, "Seu nome esta vermelho!");
  44. }
  45. if(listitem == 3)
  46. {
  47. //Amarelo
  48. SetPlayerColor(playerid,0xF6AD01AA);
  49. SendClientMessage(playerid, 0xF6AD01AA, "Seu nome esta Amarelo!");
  50. }
  51. if(listitem == 4)
  52. {
  53. //Preto
  54. SetPlayerColor(playerid,0x000001AA);
  55. SendClientMessage(playerid, 0x000001AA, "Seu nome esta Preto!");
  56. }
  57. if(listitem == 5)
  58. {
  59. //Roxo
  60. SetPlayerColor(playerid,0x8E00BCAA);
  61. SendClientMessage(playerid, 0x8E00BCAA, "Seu nome esta Roxo!");
  62.  
  63. }
  64. if(listitem == 6)
  65. {
  66. //Rosa
  67. SetPlayerColor(playerid,0xF100BCAA);
  68. SendClientMessage(playerid, 0xF100BCAA, "Seu nome esta Rosa!");
  69. }
  70. if(listitem == 7)
  71. {
  72. //Branco
  73. SetPlayerColor(playerid,0xF1F6F6AA);
  74. SendClientMessage(playerid, 0xF1F6F6AA, "Seu nome esta Branco!");
  75. }
  76. if(listitem == 8)
  77. {
  78. //Cinza
  79. SetPlayerColor(playerid,0xAFAFAFAA);
  80. SendClientMessage(playerid, 0xAFAFAFAA, "A cor do seu nome e cinza!");
  81. }
  82. if(listitem == 9)
  83. {
  84.  
  85. //Vermelho Claro
  86. SetPlayerColor(playerid,0xFF99AADD);
  87. SendClientMessage(playerid, 0xFF99AADD, "A cor do seu nome e vermelho claro!");
  88. }
  89. if(listitem == 10)
  90. {
  91. //Verde Claro
  92. SetPlayerColor(playerid,0x9ACD32AA);
  93. SendClientMessage(playerid, 0x9ACD32AA, "A cor do seu nome e verde claro!");
  94. }
  95. if(listitem == 11)
  96. {
  97. //Laranja
  98. SetPlayerColor(playerid,0xFF9900AA);
  99. SendClientMessage(playerid, 0xFF9900AA, "A cor do seu nome e laranja!");
  100. }
  101. if(listitem == 12)
  102. {
  103. //Azul 2
  104. SetPlayerColor(playerid,0x456EAF67);
  105. SendClientMessage(playerid, 0x456EAF67, "A cor do seu nome e azul2!");
  106. }
  107. if(listitem == 13)
  108. {
  109. //Azul 3
  110. SetPlayerColor(playerid,0x46BBAA00);
  111. SendClientMessage(playerid, 0x46BBAA00, "A cor do seu nome e azul3!");
  112. }
  113. if(listitem == 14)
  114. {
  115. //Azul 1
  116. SetPlayerColor(playerid,0xABCDEF01);
  117. SendClientMessage(playerid, 0xABCDEF01, "A cor do seu nome e azul4!");
  118. }
  119. }
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement