Advertisement
Jonas_Alves

Sistema de Cores Simples v1.0

Aug 13th, 2012
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.99 KB | None | 0 0
  1. /* Jonas Emanuel */
  2. #include <a_samp>
  3.  
  4. #define COR_VERMELHO 0xFF0037FF
  5. #define COR_AZUL 0x0000FFFF
  6. #define COR_VERDECLARO 0x19FF00FF
  7. #define COR_AMARELO 0xFFFF00AA
  8. #define COR_LARANJA 0xFF9933AA
  9. #define COR_AZULCLARO 0x46BBAA00
  10. #define COR_BRANCO 0xFFFFFFAA
  11. #define COR_AZULESCURO 0x3399FFAA
  12. #define COR_PRETO 0x00000000
  13. #define COR_ROXO 0x9900FFAA
  14. #define COR_ROSA 0xFF66FFAA
  15. #define COR_INVISIVEL 0xAFAFAF00
  16. #define COR_BEJE 0x999900AA
  17. #define COR_MARROM 0x993300AA
  18. #define COR_CINZA 0xAFAFAFAA
  19. #define COR_VIOLETA 0x9955DEEE
  20.  
  21. public OnFilterScriptInit()
  22. {
  23.     print("\n--------------------------------------------");
  24.     print(" Sistema de Cores Carregado by: Jonas_Emanuel ");
  25.     print("--------------------------------------------\n");
  26.     return 1;
  27. }
  28.  
  29. public OnPlayerCommandText(playerid, cmdtext[])
  30. {
  31.     if (strcmp("/cores", cmdtext, true, 10) == 0)
  32.     {
  33.         ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Escolhe sua Cor:", "{FF0000}Vermelho\n{3D00FF}Azul\n{09FF00}Verde Claro\n{FFFF00}Amarelo\n{FFB900}Laranja\n{00FFFF}Azul Claro\n{FFFFFF}Branco\n{00008C}Azul Escuro\n{000000}Preto\n{7400BA}Roxo\n{FD63E4}Rosa\nInvisivel\n{FFE8C0}Beje\n{A36E00}Marrom\n{636665}Cinza\n{BA5FFF}Violeta", "Escolher", "Cancelar");
  34.         return 1;
  35.     }
  36.     return 1;
  37. }
  38.  
  39. public OnDialogResponse(playerid, dialogid, response, listitem)
  40. {
  41.     if(dialogid == 1)
  42.     {
  43.         switch(listitem)
  44.         {
  45.             case 0:
  46.             {
  47.                 SetPlayerColor(playerid, COR_VERMELHO);
  48.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FF0000}Vermelho");
  49.                 return 1;
  50.             }
  51.             case 1:
  52.             {
  53.                 SetPlayerColor(playerid, COR_AZUL);
  54.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {3D00FF}Azul");
  55.                 return 1;
  56.             }
  57.             case 2:
  58.             {
  59.                 SetPlayerColor(playerid, COR_VERDECLARO);
  60.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {09FF00}Verde Claro");
  61.                 return 1;
  62.             }
  63.             case 3:
  64.             {
  65.                 SetPlayerColor(playerid, COR_AMARELO);
  66.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FFFF00}Amarelo");
  67.                 return 1;
  68.             }
  69.             case 4:
  70.             {
  71.                 SetPlayerColor(playerid, COR_LARANJA);
  72.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FFB900}Laranja");
  73.                 return 1;
  74.             }
  75.             case 5:
  76.             {
  77.                 SetPlayerColor(playerid, COR_AZULCLARO);
  78.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {00FFFF}Azul Claro");
  79.                 return 1;
  80.             }
  81.             case 6:
  82.             {
  83.                 SetPlayerColor(playerid, COR_BRANCO);
  84.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FFFFFF}Branco");
  85.                 return 1;
  86.             }
  87.             case 7:
  88.             {
  89.                 SetPlayerColor(playerid, COR_AZULESCURO);
  90.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {00008C}Azul Escuro");
  91.                 return 1;
  92.             }
  93.             case 8:
  94.             {
  95.                 SetPlayerColor(playerid, COR_PRETO);
  96.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {000000}Preto");
  97.                 return 1;
  98.             }
  99.             case 9:
  100.             {
  101.                 SetPlayerColor(playerid, COR_ROXO);
  102.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {7400BA}Roxo");
  103.                 return 1;
  104.             }
  105.             case 10:
  106.             {
  107.                 SetPlayerColor(playerid, COR_ROSA);
  108.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FD63E4}Rosa");
  109.                 return 1;
  110.             }
  111.             case 11:
  112.             {
  113.                 SetPlayerColor(playerid, COR_INVISIVEL);
  114.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: Invisivel");
  115.                 return 1;
  116.             }
  117.             case 12:
  118.             {
  119.                 SetPlayerColor(playerid, COR_BEJE);
  120.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FFE8C0}Beje");
  121.                 return 1;
  122.             }
  123.             case 13:
  124.             {
  125.                 SetPlayerColor(playerid, COR_MARROM);
  126.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {A36E00}Marrom");
  127.                 return 1;
  128.             }
  129.             case 14:
  130.             {
  131.                 SetPlayerColor(playerid, COR_CINZA);
  132.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {636665}Cinza");
  133.                 return 1;
  134.             }
  135.             case 15:
  136.             {
  137.                 SetPlayerColor(playerid, 0x9955DEEE);
  138.                 SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {BA5FFF}Violeta");
  139.                 return 1;
  140.             }
  141.         }
  142.     }
  143.     return 1;
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement