MrConso99

ColorNick

May 23rd, 2011
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 9.78 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5.  
  6. #define Giallo 0xFFFF00FF
  7. #define Ocra 0xF7A909FF
  8. #define Arancione 0xFF6600FF
  9. #define ArancioneScuro 0xFB7715FF
  10. #define Rosso 0xFF0000FF
  11. #define RossoScuro 0xC10000FF
  12. #define VerdeChiaro 0x80FF00FF
  13. #define Verde 0x5EBB00FF
  14. #define VerdeScuro 0x008200FF
  15. #define AzzurroCielo 0x237AFEFF
  16. #define Blu 0x0000FFFF
  17. #define BluScuro 0x000097FF
  18. #define Fucsia 0xFF0080FF
  19. #define Rosa 0xFF80FFFF
  20. #define Viola 0xCA00CAFF
  21. #define ViolaScuro 0x800080FF
  22. #define Marrone 0x804000FF
  23. #define Grigio 0xC0C0C0FF
  24. #define Nero 0x000000FF
  25.  
  26. #if defined FILTERSCRIPT
  27.  
  28. public OnFilterScriptInit()
  29. {
  30.     print("\n------------------------------------------");
  31.     print("[DIALOG]Colore dei Nick By .:.->MrConso99<-.:.");
  32.     print("------------------------------------------\n");
  33.     return 1;
  34. }
  35.  
  36. public OnFilterScriptExit()
  37. {
  38.     return 1;
  39. }
  40.  
  41. #else
  42.  
  43. #endif
  44.  
  45. public OnPlayerCommandText(playerid, cmdtext[])
  46. {
  47. if(!strcmp(cmdtext,"/cnick",true))
  48.     {
  49.     SendClientMessage(playerid,Grigio,"[DIALOG:]Colore dei Nick by [CwS]MrConso99");
  50.     ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Scegli un colore per il tuo Nick","{ffff00}Giallo\n{F7A909}Ocra\n{FF6600}Arancione\n{FB7715}Arancione scuro\n{FF0000}Rosso\n{C10000}Rosso scuro\n{80FF00}Verde chiaro\n{5EBB00}Verde\n{008200}Verde scuro\n{237AFE}Azzurro cielo\n{0000FF}Blu\n{000097}Blu scuro\n{FF0080}Fucsia\n{FF80FF}Rosa\n{CA00CA}Viola\n{800080}Viola scuro\n{804000}Marrone\n{C0C0C0}Grigio\n{000000}Nero\n{ffffff}Bianco","Seleziona","Annulla");
  51.     return 1;
  52.     }
  53. return 0;
  54. }
  55.  
  56. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  57. {
  58. if(dialogid == 1)
  59.   {
  60.              if(listitem == 0)//Giallo
  61.                   {
  62.                   new nome[MAX_PLAYER_NAME],string[128];
  63.                   GetPlayerName(playerid,nome,sizeof(nome));
  64.                   format(string,sizeof(string),"{008200}[Nick:]{ffff00}%s {ffffff}ha settato il suo colore del nick in {ffff00}Giallo",nome);
  65.                   SendClientMessageToAll(0xFFFFFFFF,string);
  66.                   SetPlayerColor(playerid,Giallo);
  67.                   }
  68.              if(listitem == 1)//Ocra
  69.                   {
  70.                   new nome[MAX_PLAYER_NAME],string[128];
  71.                   GetPlayerName(playerid,nome,sizeof(nome));
  72.                   format(string,sizeof(string),"{008200}[Nick:]{F7A909}%s {ffffff}ha settato il suo colore del nick in {F7A909}Ocra",nome);
  73.                   SendClientMessageToAll(0xFFFFFFFF,string);
  74.                   SetPlayerColor(playerid,Ocra);
  75.                   }
  76.              if(listitem == 2)//Arancione
  77.                   {
  78.                   new nome[MAX_PLAYER_NAME],string[128];
  79.                   GetPlayerName(playerid,nome,sizeof(nome));
  80.                   format(string,sizeof(string),"{008200}[Nick:]{FF6600}%s {ffffff}ha settato il suo colore del nick in {FF6600}Arancione",nome);
  81.                   SendClientMessageToAll(0xFFFFFFFF,string);
  82.                   SetPlayerColor(playerid,Arancione);
  83.                   }
  84.              if(listitem == 3)//Arancione Scuro
  85.                   {
  86.                   new nome[MAX_PLAYER_NAME],string[128];
  87.                   GetPlayerName(playerid,nome,sizeof(nome));
  88.                   format(string,sizeof(string),"{008200}[Nick:]{FB7715}%s {ffffff}ha settato il suo colore del nick in {FB7715}Arancione Scuro",nome);
  89.                   SendClientMessageToAll(0xFFFFFFFF,string);
  90.                   SetPlayerColor(playerid,ArancioneScuro);
  91.                   }
  92.              if(listitem == 4)//Rosso
  93.                   {
  94.                   new nome[MAX_PLAYER_NAME],string[128];
  95.                   GetPlayerName(playerid,nome,sizeof(nome));
  96.                   format(string,sizeof(string),"{008200}[Nick:]{FF0000}%s {ffffff}ha settato il suo colore del nick in {FF0000}Rosso",nome);
  97.                   SendClientMessageToAll(0xFFFFFFFF,string);
  98.                   SetPlayerColor(playerid,Rosso);
  99.                   }
  100.              if(listitem == 5)//Rosso Scuro
  101.                   {
  102.                   new nome[MAX_PLAYER_NAME],string[128];
  103.                   GetPlayerName(playerid,nome,sizeof(nome));
  104.                   format(string,sizeof(string),"{008200}[Nick:]{C10000}%s {ffffff}ha settato il suo colore del nick in {C10000}Rosso Scuro",nome);
  105.                   SendClientMessageToAll(0xFFFFFFFF,string);
  106.                   SetPlayerColor(playerid,RossoScuro);
  107.                   }
  108.              if(listitem == 6)//Verde Chiaro
  109.                   {
  110.                   new nome[MAX_PLAYER_NAME],string[128];
  111.                   GetPlayerName(playerid,nome,sizeof(nome));
  112.                   format(string,sizeof(string),"{008200}[Nick:]{80FF00}%s {ffffff}ha settato il suo colore del nick in {80FF00}Verde Chiaro",nome);
  113.                   SendClientMessageToAll(0xFFFFFFFF,string);
  114.                   SetPlayerColor(playerid,VerdeChiaro);
  115.                   }
  116.              if(listitem == 7)//Verde
  117.                   {
  118.                   new nome[MAX_PLAYER_NAME],string[128];
  119.                   GetPlayerName(playerid,nome,sizeof(nome));
  120.                   format(string,sizeof(string),"{008200}[Nick:]{5EBB00}%s {ffffff}ha settato il suo colore del nick in {5EBB00}Verde",nome);
  121.                   SendClientMessageToAll(0xFFFFFFFF,string);
  122.                   SetPlayerColor(playerid,Verde);
  123.                   }
  124.              if(listitem == 8)//Verde Scuro
  125.                   {
  126.                   new nome[MAX_PLAYER_NAME],string[128];
  127.                   GetPlayerName(playerid,nome,sizeof(nome));
  128.                   format(string,sizeof(string),"{008200}[Nick:]{008200}%s {ffffff}ha settato il suo colore del nick in {008200}Verde Scuro",nome);
  129.                   SendClientMessageToAll(0xFFFFFFFF,string);
  130.                   SetPlayerColor(playerid,VerdeScuro);
  131.                   }
  132.              if(listitem == 9)//Azzurro Cielo[CIANO]
  133.                   {
  134.                   new nome[MAX_PLAYER_NAME],string[128];
  135.                   GetPlayerName(playerid,nome,sizeof(nome));
  136.                   format(string,sizeof(string),"{008200}[Nick:]{237AFE}%s {ffffff}ha settato il suo colore del nick in {237AFE}Azzurro Cielo",nome);
  137.                   SendClientMessageToAll(0xFFFFFFFF,string);
  138.                   SetPlayerColor(playerid,AzzurroCielo);
  139.                   }
  140.              if(listitem == 10)//Blu
  141.                   {
  142.                   new nome[MAX_PLAYER_NAME],string[128];
  143.                   GetPlayerName(playerid,nome,sizeof(nome));
  144.                   format(string,sizeof(string),"{008200}[Nick:]{0000FF}%s {ffffff}ha settato il suo colore del nick in {0000FF}Blu",nome);
  145.                   SendClientMessageToAll(0xFFFFFFFF,string);
  146.                   SetPlayerColor(playerid,Blu);
  147.                   }
  148.              if(listitem == 11)//Blu Scuro
  149.                   {
  150.                   new nome[MAX_PLAYER_NAME],string[128];
  151.                   GetPlayerName(playerid,nome,sizeof(nome));
  152.                   format(string,sizeof(string),"{008200}[Nick:]{000097}%s {ffffff}ha settato il suo colore del nick in {000097}Blu Scuro",nome);
  153.                   SendClientMessageToAll(0xFFFFFFFF,string);
  154.                   SetPlayerColor(playerid,BluScuro);
  155.                   }
  156.              if(listitem == 12)//Fucsia
  157.                   {
  158.                   new nome[MAX_PLAYER_NAME],string[128];
  159.                   GetPlayerName(playerid,nome,sizeof(nome));
  160.                   format(string,sizeof(string),"{008200}[Nick:]{FF0080}%s {ffffff}ha settato il suo colore del nick in {FF0080}Fucsia",nome);
  161.                   SendClientMessageToAll(0xFFFFFFFF,string);
  162.                   SetPlayerColor(playerid,Fucsia);
  163.                   }
  164.              if(listitem == 13)//Rosa
  165.                   {
  166.                   new nome[MAX_PLAYER_NAME],string[128];
  167.                   GetPlayerName(playerid,nome,sizeof(nome));
  168.                   format(string,sizeof(string),"{008200}[Nick:]{FF80FF}%s {ffffff}ha settato il suo colore del nick in {FF80FF}Rosa",nome);
  169.                   SendClientMessageToAll(0xFFFFFFFF,string);
  170.                   SetPlayerColor(playerid,Rosa);
  171.                   }
  172.              if(listitem == 14)//Viola
  173.                   {
  174.                   new nome[MAX_PLAYER_NAME],string[128];
  175.                   GetPlayerName(playerid,nome,sizeof(nome));
  176.                   format(string,sizeof(string),"{008200}[Nick:]{CA00CA}%s {ffffff}ha settato il suo colore del nick in {CA00CA}Viola",nome);
  177.                   SendClientMessageToAll(0xFFFFFFFF,string);
  178.                   SetPlayerColor(playerid,Viola);
  179.                   }
  180.              if(listitem == 15)//Viola Scuro
  181.                   {
  182.                   new nome[MAX_PLAYER_NAME],string[128];
  183.                   GetPlayerName(playerid,nome,sizeof(nome));
  184.                   format(string,sizeof(string),"{008200}[Nick:]{800080}%s {ffffff}ha settato il suo colore del nick in {800080}Viola Scuro",nome);
  185.                   SendClientMessageToAll(0xFFFFFFFF,string);
  186.                   SetPlayerColor(playerid,ViolaScuro);
  187.                   }
  188.              if(listitem == 16)//Marrone
  189.                   {
  190.                   new nome[MAX_PLAYER_NAME],string[128];
  191.                   GetPlayerName(playerid,nome,sizeof(nome));
  192.                   format(string,sizeof(string),"{008200}[Nick:]{804000}%s {ffffff}ha settato il suo colore del nick in {804000}Marrone",nome);
  193.                   SendClientMessageToAll(0xFFFFFFFF,string);
  194.                   SetPlayerColor(playerid,Marrone);
  195.                   }
  196.              if(listitem == 17)//Grigio
  197.                   {
  198.                   new nome[MAX_PLAYER_NAME],string[128];
  199.                   GetPlayerName(playerid,nome,sizeof(nome));
  200.                   format(string,sizeof(string),"{008200}[Nick:]{C0C0C0}%s {ffffff}ha settato il suo colore del nick in {C0C0C0}Grigio",nome);
  201.                   SendClientMessageToAll(0xFFFFFFFF,string);
  202.                   SetPlayerColor(playerid,Grigio);
  203.                   }
  204.              if(listitem == 18)//Nero
  205.                   {
  206.                   new nome[MAX_PLAYER_NAME],string[128];
  207.                   GetPlayerName(playerid,nome,sizeof(nome));
  208.                   format(string,sizeof(string),"{008200}[Nick:]{000000}%s {ffffff}ha settato il suo colore del nick in {000000}Nero",nome);
  209.                   SendClientMessageToAll(0xFFFFFFFF,string);
  210.                   SetPlayerColor(playerid,Nero);
  211.                   }
  212.              if(listitem == 19)//Bianco
  213.                   {
  214.                   new nome[MAX_PLAYER_NAME],string[128];
  215.                   GetPlayerName(playerid,nome,sizeof(nome));
  216.                   format(string,sizeof(string),"{008200}[Nick:]{ffffff}%s {ffffff}ha settato il suo colore del nick in {ffffff}Bianco",nome);
  217.                   SendClientMessageToAll(0xFFFFFFFF,string);
  218.                   SetPlayerColor(playerid,Nero);
  219.                   }
  220.   }//dialogid
  221. return 1;
  222. }//ondialogresponse
Advertisement
Add Comment
Please, Sign In to add comment