CloneZ

Sistema de Cores para o Nick |

Jun 17th, 2014
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.95 KB | None | 0 0
  1. /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-|SISTEMA DE COR DO NICK|-=-=-=-=-=-=-=-=-=-=-=-==-=-=
  3. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-|By: CloneZPlays|-=-=-=-=-=-=-=-=-=-=-=-==-=-==-==-=
  4. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
  5. #include <a_samp>
  6. #define FILTERSCRIPT
  7. //Cores
  8. #define COLOR_YELLOW 0xFFFF00FF
  9. #if defined FILTERSCRIPT
  10. new string[256];
  11. public OnFilterScriptInit()
  12. {
  13.         print("=====================================");
  14.         print("=========-=BY: CloneZPlays=-=========");
  15.         print("=====================================");
  16.         return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21.     return 1;
  22. }
  23. public OnPlayerConnect(playerid)
  24. {
  25. return 1;
  26. }
  27.  
  28. //Comandos
  29. public OnPlayerCommandText(playerid, cmdtext[])
  30. {
  31. if (strcmp("/cores", cmdtext, true, 10) == 0)
  32. {
  33. new Creditos[200];// <<< Ta Créditos pq é do meu GM o dialog,mais não muda em nada
  34. strins(Creditos,"{FF0000}/VERMELHO    {0000FF}/AZUL    {00FF00}/VERDE    {FFFF00}/AMARELO    {000000}/PRETO    {FFFFFF}/BRANCO    {FF1493}/ROSA\n",strlen(Creditos));
  35. ShowPlayerDialog(playerid,224, DIALOG_STYLE_MSGBOX, "{00FF00}CORES BY: {FFFFFF}CloneZPlays",Creditos, "OK", "");
  36. return 1;
  37. }
  38. if (strcmp(cmdtext, "/azul", true)==0)
  39. {
  40. SetPlayerColor(playerid, 0x0000FFFF);
  41. new pname[MAX_PLAYER_NAME];
  42. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  43. format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {0000FF}/AZUL {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
  44. SendClientMessageToAll(COLOR_YELLOW, string);
  45. return 1;
  46. }
  47. if (strcmp(cmdtext, "/vermelho", true)==0)
  48. {
  49. SetPlayerColor(playerid, 0xFF0000FF);
  50. new pname[MAX_PLAYER_NAME];
  51. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  52. format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FF0000}/VERMELHO {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
  53. SendClientMessageToAll(COLOR_YELLOW, string);
  54. return 1;
  55. }
  56. if (strcmp(cmdtext, "/verde", true)==0)
  57. {
  58. SetPlayerColor(playerid, 0x00FF00FF);
  59. new pname[MAX_PLAYER_NAME];
  60. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  61. format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {00FF00}/VERDE {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
  62. SendClientMessageToAll(COLOR_YELLOW, string);
  63. return 1;
  64. }
  65. if (strcmp(cmdtext, "/amarelo", true)==0)
  66. {
  67. SetPlayerColor(playerid, 0xFFFF00FF);
  68. new pname[MAX_PLAYER_NAME];
  69. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  70. format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FFFF00}/AMARELO {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
  71. SendClientMessageToAll(COLOR_YELLOW, string);
  72. return 1;
  73. }
  74. if (strcmp(cmdtext, "/branco", true)==0)
  75. {
  76. SetPlayerColor(playerid, 0xFFFFFFFF);
  77. new pname[MAX_PLAYER_NAME];
  78. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  79. format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FFFFFF}/BRANCO {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
  80. SendClientMessageToAll(COLOR_YELLOW, string);
  81. return 1;
  82. }
  83. if (strcmp(cmdtext, "/preto", true)==0)
  84. {
  85. SetPlayerColor(playerid, 0x000000FF);
  86. new pname[MAX_PLAYER_NAME];
  87. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  88. format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {000000}/PRETO {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
  89. SendClientMessageToAll(COLOR_YELLOW, string);
  90. return 1;
  91. }
  92. if (strcmp(cmdtext, "/rosa", true)==0)
  93. {
  94. SetPlayerColor(playerid, 0xFF1493FF);
  95. new pname[MAX_PLAYER_NAME];
  96. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  97. format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FF1493}/ROSA {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
  98. SendClientMessageToAll(COLOR_YELLOW, string);
  99. return 1;
  100. }
  101. //==============================================================================
  102. return 0;
  103. }
  104. //==============================================================================
  105.  
  106. #endif
Advertisement
Add Comment
Please, Sign In to add comment