Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #define Giallo 0xFFFF00FF
- #define Ocra 0xF7A909FF
- #define Arancione 0xFF6600FF
- #define ArancioneScuro 0xFB7715FF
- #define Rosso 0xFF0000FF
- #define RossoScuro 0xC10000FF
- #define VerdeChiaro 0x80FF00FF
- #define Verde 0x5EBB00FF
- #define VerdeScuro 0x008200FF
- #define AzzurroCielo 0x237AFEFF
- #define Blu 0x0000FFFF
- #define BluScuro 0x000097FF
- #define Fucsia 0xFF0080FF
- #define Rosa 0xFF80FFFF
- #define Viola 0xCA00CAFF
- #define ViolaScuro 0x800080FF
- #define Marrone 0x804000FF
- #define Grigio 0xC0C0C0FF
- #define Nero 0x000000FF
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n------------------------------------------");
- print("[DIALOG]Colore dei Nick By .:.->MrConso99<-.:.");
- print("------------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext,"/cnick",true))
- {
- SendClientMessage(playerid,Grigio,"[DIALOG:]Colore dei Nick by [CwS]MrConso99");
- 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");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(listitem == 0)//Giallo
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{ffff00}%s {ffffff}ha settato il suo colore del nick in {ffff00}Giallo",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Giallo);
- }
- if(listitem == 1)//Ocra
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{F7A909}%s {ffffff}ha settato il suo colore del nick in {F7A909}Ocra",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Ocra);
- }
- if(listitem == 2)//Arancione
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{FF6600}%s {ffffff}ha settato il suo colore del nick in {FF6600}Arancione",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Arancione);
- }
- if(listitem == 3)//Arancione Scuro
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{FB7715}%s {ffffff}ha settato il suo colore del nick in {FB7715}Arancione Scuro",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,ArancioneScuro);
- }
- if(listitem == 4)//Rosso
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{FF0000}%s {ffffff}ha settato il suo colore del nick in {FF0000}Rosso",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Rosso);
- }
- if(listitem == 5)//Rosso Scuro
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{C10000}%s {ffffff}ha settato il suo colore del nick in {C10000}Rosso Scuro",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,RossoScuro);
- }
- if(listitem == 6)//Verde Chiaro
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{80FF00}%s {ffffff}ha settato il suo colore del nick in {80FF00}Verde Chiaro",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,VerdeChiaro);
- }
- if(listitem == 7)//Verde
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{5EBB00}%s {ffffff}ha settato il suo colore del nick in {5EBB00}Verde",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Verde);
- }
- if(listitem == 8)//Verde Scuro
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{008200}%s {ffffff}ha settato il suo colore del nick in {008200}Verde Scuro",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,VerdeScuro);
- }
- if(listitem == 9)//Azzurro Cielo[CIANO]
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{237AFE}%s {ffffff}ha settato il suo colore del nick in {237AFE}Azzurro Cielo",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,AzzurroCielo);
- }
- if(listitem == 10)//Blu
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{0000FF}%s {ffffff}ha settato il suo colore del nick in {0000FF}Blu",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Blu);
- }
- if(listitem == 11)//Blu Scuro
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{000097}%s {ffffff}ha settato il suo colore del nick in {000097}Blu Scuro",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,BluScuro);
- }
- if(listitem == 12)//Fucsia
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{FF0080}%s {ffffff}ha settato il suo colore del nick in {FF0080}Fucsia",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Fucsia);
- }
- if(listitem == 13)//Rosa
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{FF80FF}%s {ffffff}ha settato il suo colore del nick in {FF80FF}Rosa",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Rosa);
- }
- if(listitem == 14)//Viola
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{CA00CA}%s {ffffff}ha settato il suo colore del nick in {CA00CA}Viola",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Viola);
- }
- if(listitem == 15)//Viola Scuro
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{800080}%s {ffffff}ha settato il suo colore del nick in {800080}Viola Scuro",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,ViolaScuro);
- }
- if(listitem == 16)//Marrone
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{804000}%s {ffffff}ha settato il suo colore del nick in {804000}Marrone",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Marrone);
- }
- if(listitem == 17)//Grigio
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{C0C0C0}%s {ffffff}ha settato il suo colore del nick in {C0C0C0}Grigio",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Grigio);
- }
- if(listitem == 18)//Nero
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{000000}%s {ffffff}ha settato il suo colore del nick in {000000}Nero",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Nero);
- }
- if(listitem == 19)//Bianco
- {
- new nome[MAX_PLAYER_NAME],string[128];
- GetPlayerName(playerid,nome,sizeof(nome));
- format(string,sizeof(string),"{008200}[Nick:]{ffffff}%s {ffffff}ha settato il suo colore del nick in {ffffff}Bianco",nome);
- SendClientMessageToAll(0xFFFFFFFF,string);
- SetPlayerColor(playerid,Nero);
- }
- }//dialogid
- return 1;
- }//ondialogresponse
Advertisement
Add Comment
Please, Sign In to add comment