Guest User

Untitled

a guest
Jul 29th, 2011
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.19 KB | None | 0 0
  1. //Sistema de cor do nome By: [KoS]Baby
  2. //Ajuda de Josma_CMD
  3.  
  4. //---[include]---
  5. #include <a_samp>
  6.  
  7. //---[defines]---
  8. #if defined FILTERSCRIPT
  9.  
  10. //---[Public's]---
  11. public OnFilterScriptInit()
  12. {
  13.     print("FS de trocar cor do nome");
  14.     print("por dialog feito por [KoS]Baby");
  15.     return 1;
  16. }
  17.  
  18. public OnPlayerCommandText(playerid, cmdtext[])
  19. {
  20.     if (strcmp(cmdtext, "/cornome", true)==0) {
  21.         ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_LIST, "Cor do Nome", "Azul\nVermelho\nVerde\nAqua\nRosa\nAmarelo\nMarron\nLaranja\nRoxo", "Selecionar", "Cancelar");
  22.         return 1;
  23.     }
  24.     return 0;
  25. }
  26.  
  27.     public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
  28.         if(dialogid == 2424) {
  29.             if(response) {
  30.                 if(listitem == 0) {
  31.                     SetPlayerColor(playerid, 0x0000BBAA);
  32.                     return 1;
  33.                 }
  34.                 if(listitem == 1) {
  35.                     SetPlayerColor(playerid, 0xAA3333AA);
  36.                     return 1;
  37.                 }
  38.                 if(listitem == 2) {
  39.                     SetPlayerColor(playerid, 0x33AA33AA);
  40.                     return 1;
  41.                 }
  42.                 if(listitem == 3) {
  43.                     SetPlayerColor(playerid, 0xF0F8FFAA);
  44.                     return 1;
  45.                 }
  46.                 if(listitem == 4) {
  47.                     SetPlayerColor(playerid, 0xFFC0CBAA);
  48.                     return 1;
  49.                 }
  50.                 if(listitem == 5) {
  51.                     SetPlayerColor(playerid, 0xFFFF00AA);
  52.                     return 1;
  53.                 }
  54.                 if(listitem == 6) {
  55.                     SetPlayerColor(playerid, 0xA52A2AAA);
  56.                     return 1;
  57.                 }
  58.                 if(listitem == 7) {
  59.                     SetPlayerColor(playerid, 0xFF9900AA);
  60.                     return 1;
  61.                 }
  62.                 if(listitem == 8) {
  63.                     SetPlayerColor(playerid, 0x9900FFAA);
  64.                     return 1;
  65.                 }
  66.                 return 1;
  67.             }
  68.             return 1;
  69.         }
  70.         return 0;
  71.     }
  72.    
  73.    
  74.  
  75. #endif
  76.  
  77.  
  78. //Creditos a [KoS]Baby e Josma
Advertisement
Add Comment
Please, Sign In to add comment