Advertisement
Coringa253

CNDialog

Oct 27th, 2015
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.61 KB | None | 0 0
  1. /*
  2.    Créditos:
  3.                 Coringa253
  4. */
  5. #include <a_samp>
  6. #include <zcmd>
  7.  
  8. //================================ Cores ===========================================//
  9. #define Vermelho                                                                0xFF0000FF;
  10. #define Verde                                                                   0x00FF00FF;
  11. #define Azul                                                                    0x0000FFFF;
  12. #define Branco                                                                  0xFFFFFFFF;
  13. #define Preto                                                                   0x000000C1;
  14. #define AzulClaro                                                               0x00FFFFFF
  15. #define Amarelo                                                                 0xFFFF00FF;
  16. #define Rosa                                                                    0xFF00FFFF;
  17. #define Messagem                                                                0x0BBF6AA;
  18. //================================ Cores ===========================================//
  19. #define FILTERSCRIPT
  20. #if defined FILTERSCRIPT
  21.  
  22. new Cores;
  23. new Creditos;
  24.  
  25. public OnFilterScriptInit()
  26. {
  27.     print("\nCoresNick Dialog Ligado! - Coringa253");
  28.     print("____________________________________\n");
  29.     return 1;
  30. }
  31.  
  32. public OnFilterScriptExit()
  33. {
  34.     print("\nCoresNick Dialog Desligado! - Coringa253");
  35.     print("____________________________________\n");
  36.     return 1;
  37. }
  38.  
  39. #else
  40.  
  41.  
  42. #endif
  43. public OnPlayerConnect(playerid)
  44. {
  45. SendClientMessage(playerid, 0x0BBF6AA, "~> Este servidor está usando CoresNick Dialog feito por{008000} Coringa253");
  46. }
  47.  
  48. CMD:cndialog(playerid, params[])
  49. {
  50. ShowPlayerDialog(playerid, Cores, DIALOG_STYLE_LIST, "{FFFFFF}CoresNick", "{FF0000}~>Vermelho\n{008000}~>Verde\n{0000FF}~>Azul\n{FFFFFF}~>Branco\n{000000}~>Preto\n{00FFFF}~>Azul Claro\n{FFFF00}~>Amarelo\n{FF00FF}~>Rosa", "~>OK<~", "~>Voltar<~");
  51. return 1;
  52. }
  53.  
  54. CMD:creditos(playerid, params[])
  55. {
  56. ShowPlayerDialog(playerid, Creditos, DIALOG_STYLE_MSGBOX, "{FFFFFF}CoresNick dialog {0000FF}Creditos", "{FFFFFF}~> Desenvolvido por {008000}Coringa253", "~>OK<~", "~>Voltar<~");
  57. return 1;
  58. }
  59.  
  60. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  61. {
  62.     if(dialogid == Cores)
  63.             {
  64.             if(response)
  65.             {
  66.                 switch(listitem)
  67.                 {
  68.                     case 0: SetPlayerColor(playerid, 0xFF0000FF);
  69.                     case 1: SetPlayerColor(playerid, 0x00FF00FF);
  70.                     case 2: SetPlayerColor(playerid, 0x0000FFFF);
  71.                     case 3: SetPlayerColor(playerid, 0xFFFFFFFF);
  72.                     case 4: SetPlayerColor(playerid, 0x000000C1);
  73.                     case 5: SetPlayerColor(playerid, 0x00FFFFFF);
  74.                     case 6: SetPlayerColor(playerid, 0xFFFF00FF);
  75.                     case 7: SetPlayerColor(playerid, 0xFF00FFFF);
  76.                     case 8: ShowPlayerDialog(playerid, Creditos, DIALOG_STYLE_MSGBOX, "{FFFFFF}CoresNick Dialog {0000FF}Creditos", "{FFFFFF}~> Desenvolvido por {008000}Coringa253", "~>OK<~", "~>Voltar<~");
  77.                 }
  78.                 }
  79.             }
  80.     return 1;
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement