Lifer

Untitled

Jul 26th, 2011
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. #define <a_samp>
  2. #pragma tabsize 0
  3. #define Verde 0x00FF00FF
  4. #define Vermelho 0xFF0000AA
  5. #define Azul 0x0000FFAA
  6. #define Marron 0x804000AA
  7. #define Branco 0xFFFFFFAA
  8. #define Laranja 0xFF8000AA
  9. #define Azul_Marinho 0x80FFFFAA
  10. #define Cinza 0xC0C0C0AA
  11. #define Rosa 0xFF80FFAA
  12. #define Azul_Claro 0x80BFFFAA
  13. #define Verde_Escuro 0x007138AA
  14. #define Amarelo 0xFFFF00AA
  15. #define Roxo 0x9F009FAA
  16. #define 2
  17.  
  18. #if defined FILTERSCRIPT
  19.  
  20. public OnFilterScriptInit()
  21. {
  22. print("\n--------------------------------------");
  23. print(" CorNick Simples By:Lifer");
  24. print("--------------------------------------\n");
  25. return 1;
  26. }
  27.  
  28. public OnFilterScriptExit()
  29. {
  30. return 1;
  31. }
  32. #endif
  33.  
  34. public OnPlayerCommandText(playerid, cmdtext[])
  35. {
  36. if(strcmp(cmdtext,"/cornick", true) == 0)
  37. {
  38. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Escolha uma cor:", "Vermelho\nVerde\nAmarelo\nAzul\nLaranja\nRoxo\nAzu l Marinho\nRosa\nCinza\nMarrom\nBranco\nAzul Claro\nVerde Escuro", "Ok", "Cancelar");
  39. return 1;
  40. }
  41. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  42. {
  43. new string[128];
  44.  
  45. if(dialogid == 2)
  46. {
  47. if(response)
  48. {
  49. if(listitem == 0)
  50. {
  51. SetPlayerColor(playerid, Vermelho);
  52. GetPlayerName(playerid, sendername, sizeof(sendername));
  53. format(string, sizeof(string), "%s Trocou a cor do Nick Para Vermelho (/cornick)", sendername);
  54. SendClientMessageToAll(Branco, string);
  55. }
  56. if(listitem == 1)
  57. {
  58. SetPlayerColor(playerid, Verde);
  59. GetPlayerName(playerid, sendername, sizeof(sendername));
  60. format(string, sizeof(string), "%s Trocou a cor do Nick Para Verde (/cornick)", sendername);
  61. SendClientMessageToAll(Branco, string);
  62. }
  63. if(listitem == 2)
  64. {
  65. SetPlayerColor(playerid, Amarelo);
  66. GetPlayerName(playerid, sendername, sizeof(sendername));
  67. format(string, sizeof(string), "%s Trocou a cor do Nick Para Amarelo (/cornick)", sendername);
  68. SendClientMessageToAll(Branco, string);
  69. }
  70. if(listitem == 3)
  71. {
  72. SetPlayerColor(playerid, Azul);
  73. GetPlayerName(playerid, sendername, sizeof(sendername));
  74. format(string, sizeof(string), "%s Trocou a cor do Nick Para Azul (/cornick)", sendername);
  75. SendClientMessageToAll(Branco, string);
  76. }
  77. if(listitem == 4)
  78. {
  79. SetPlayerColor(playerid, Laranja);
  80. GetPlayerName(playerid, sendername, sizeof(sendername));
  81. format(string, sizeof(string), "%s Trocou a cor do Nick Para Laranja (/cornick)", sendername);
  82. SendClientMessageToAll(Branco, string);
  83. }
  84. if(listitem == 5)
  85. {
  86. SetPlayerColor(playerid, Roxo);
  87. GetPlayerName(playerid, sendername, sizeof(sendername));
  88. format(string, sizeof(string), "%s Trocou a cor do Nick para Roxo (/cornick)", sendername);
  89. SendClientMessageToAll(Branco, string);
  90. }
  91. if(listitem == 6)
  92. {
  93. SetPlayerColor(playerid, Azul_Marinho);
  94. GetPlayerName(playerid, sendername, sizeof(sendername));
  95. format(string, sizeof(string), "%s Trocou a cor do Nick Para Azul Marinho (/cornick)", sendername);
  96. SendClientMessageToAll(Branco, string);
  97. }
  98. if(listitem == 7)
  99. {
  100. SetPlayerColor(playerid, Rosa);
  101. GetPlayerName(playerid, sendername, sizeof(sendername));
  102. format(string, sizeof(string), "%s Trocou a cor do Nick Para Rosa (/cornick)", sendername);
  103. SendClientMessageToAll(Branco, string);
  104. }
  105. if(listitem == 8)
  106. {
  107. SetPlayerColor(playerid, Cinza);
  108. GetPlayerName(playerid, sendername, sizeof(sendername));
  109. format(string, sizeof(string), "%s Trocou a cor do Nick Para Cinza (/cornick)", sendername);
  110. SendClientMessageToAll(Branco, string);
  111. }
  112. if(listitem == 9)
  113. {
  114. SetPlayerColor(playerid, Marron);
  115. GetPlayerName(playerid, sendername, sizeof(sendername));
  116. format(string, sizeof(string), "%s Trocou a cor do Nick Para Marron (/cornick)", sendername);
  117. SendClientMessageToAll(Branco, string);
  118. }
  119. if(listitem == 10)
  120. {
  121. SetPlayerColor(playerid, Branco);
  122. GetPlayerName(playerid, sendername, sizeof(sendername));
  123. format(string, sizeof(string), "%s Trocou a cor do Nick Para Branco (/cornick)", sendername);
  124. SendClientMessageToAll(Branco, string);
  125. }
  126. if(listitem == 11)
  127. {
  128. SetPlayerColor(playerid, Azul_Claro);
  129. GetPlayerName(playerid, sendername, sizeof(sendername));
  130. format(string, sizeof(string), "%s Trocou a cor do Nick Para Azul Claro (/cornick)", sendername);
  131. SendClientMessageToAll(Branco, string);
  132. }
  133. if(listitem == 12)
  134. {
  135. SetPlayerColor(playerid, Verde_Escuro);
  136. GetPlayerName(playerid, sendername, sizeof(sendername));
  137. format(string, sizeof(string), "%s Trocou a cor do Nick Para Verde Escuro(/cornick)", sendername);
  138. SendClientMessageToAll(Branco, string);
  139. }
  140. }
  141. }
  142. return 1;
  143. }
Advertisement
Add Comment
Please, Sign In to add comment