Advertisement
Guest User

Untitled

a guest
Jul 29th, 2011
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.14 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.  
  25.     public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
  26.         if(dialogid == 2424) {
  27.             if(response) {
  28.                 if(listitem == 0) {
  29.                     SetPlayerColor(playerid, 0x0000BBAA);
  30.                     return 1;
  31.                 }
  32.                 if(listitem == 1) {
  33.                     SetPlayerColor(playerid, 0xAA3333AA);
  34.                     return 1;
  35.                 }
  36.                 if(listitem == 2) {
  37.                     SetPlayerColor(playerid, 0x33AA33AA);
  38.                     return 1;
  39.                 }
  40.                 if(listitem == 3) {
  41.                     SetPlayerColor(playerid, 0xF0F8FFAA);
  42.                     return 1;
  43.                 }
  44.                 if(listitem == 4) {
  45.                     SetPlayerColor(playerid, 0xFFC0CBAA);
  46.                     return 1;
  47.                 }
  48.                 if(listitem == 5) {
  49.                     SetPlayerColor(playerid, 0xFFFF00AA);
  50.                     return 1;
  51.                 }
  52.                 if(listitem == 6) {
  53.                     SetPlayerColor(playerid, 0XA52A2AAA);
  54.                     return 1;
  55.                 }
  56.                 if(listitem == 7) {
  57.                     SetPlayerColor(playerid, 0xFF9900AA);
  58.                     return 1;
  59.                 }
  60.                 if(listitem == 8) {
  61.                     SetPlayerColor(playerid, 0x9900FFAA);
  62.                     return 1;
  63.                 }
  64.                 return 1;
  65.             }
  66.             return 1;
  67.         }
  68.         return 0;
  69.     }
  70.    
  71.    
  72.  
  73. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement