Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ______________|FilterScript|______________
- - Criador: @Riichard
- - Designer: @Riichard
- - Cores Retiradas de : www.mxstudio.com.br/Conteudos/Dreamweaver/Cores.htm
- - 7 Tipos de Cores Basicas.(Amarelo,Vermelho,Azul,Verde,Cinza,Rosa,Branco)
- - Não retire os créditos.
- - Equipe [SDS] Style Drift Show [SDS]
- - Site/Blog : equipe-sds.blogspot.com
- - Servidor : 69.162.102.12:7773
- - VISITE NOSSO SITE: http://www.sampknd.com/
- - SAMP KND MELHOR BLOG DE SAMP DO BRASIL
- ______________|FilterScript|______________
- */
- #include <a_samp>
- // Variaveis & Defines :
- #define Textos 200 // Cuidado com os conflitos.
- new Texto1[MAX_PLAYERS];
- new Nick[MAX_PLAYER_NAME];
- new String[128];
- // == Outros == //
- public OnFilterScriptInit()
- {
- print("\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
- print(" [FilterScript] Texto Cores Chat");
- print("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\n");
- return 1;
- }
- // Comando
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext,"/Textos", true) == 0)
- {
- ShowPlayerDialog(playerid,Textos,DIALOG_STYLE_LIST,"Escolha Sua Cor Preferida","Texto 1 > {FFFF00}Amarelo\nTexto 2 > {FF0000}Vermelho\nTexto 3 > {00BFFF}Azul\nTexto 4 > {00FF00}Verde\nTexto 5 > {696969}Cinza\nTexto 6 > {FF00FF}Rosa\nTexto 7 > Branco","Selecionar","Cancelar");
- GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
- format(String, sizeof(String), "%s » Está vendo modificações em seu texto. {FFFFFF}/Textos", Nick);
- SendClientMessageToAll(0x6C7B8BFF, String);
- return 1;
- }
- return 0;
- }
- // Chat Com as Cores Prontas.
- public OnPlayerText(playerid, text[])
- {
- if(strlen(text)> 48)
- {
- SendClientMessage(playerid,-1,"Texto Muito Grande » Maximo Permitido : 48 !");
- return 0;
- }
- // Amarelo
- if(Texto1[playerid] == 1)
- {
- format(String, sizeof(String), "{FFFF00}%s",text[0]);
- SendPlayerMessageToAll(playerid, String);
- return 0;
- }
- // Vermelho
- if(Texto1[playerid] == 2)
- {
- format(String, sizeof(String), "{FF0000}%s",text[0]);
- SendPlayerMessageToAll(playerid, String);
- return 0;
- }
- // Azul
- if(Texto1[playerid] == 3)
- {
- format(String, sizeof(String), "{00BFFF}%s",text[0]);
- SendPlayerMessageToAll(playerid, String);
- return 0;
- }
- // Verde
- if(Texto1[playerid] == 4)
- {
- format(String, sizeof(String), "{00FF00}%s",text[0]);
- SendPlayerMessageToAll(playerid, String);
- return 0;
- }
- // Cinza
- if(Texto1[playerid] == 5)
- {
- format(String, sizeof(String), "{696969}%s",text[0]);
- SendPlayerMessageToAll(playerid, String);
- return 0;
- }
- // Rosa
- if(Texto1[playerid] == 6)
- {
- format(String, sizeof(String), "{FF00FF}%s",text[0]);
- SendPlayerMessageToAll(playerid, String);
- return 0;
- }
- // Branco
- if(Texto1[playerid] == 7)
- {
- format(String, sizeof(String), "{FFFFFF}%s",text[0]);
- SendPlayerMessageToAll(playerid, String);
- return 0;
- }
- return 0;
- }
- // Response Dialog
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == Textos)
- {
- if(response)
- {
- if(listitem == 0)// Amarelo
- {
- Texto1[playerid] = 1;
- SendClientMessage(playerid,-1,"» Você Mudou Sua Cor de Texto para > {FFFF00}Amarelo");
- }
- if(listitem == 1)// Vermelho
- {
- Texto1[playerid] = 2;
- SendClientMessage(playerid,-1,"» Você Mudou Sua Cor de Texto para > {FF0000}Vermelho");
- }
- if(listitem == 2)// Azul
- {
- Texto1[playerid] = 3;
- SendClientMessage(playerid,-1,"» Você Mudou Sua Cor de Texto para > {00BFFF}Azul");
- }
- if(listitem == 3)// Verde
- {
- Texto1[playerid] = 4;
- SendClientMessage(playerid,-1,"» Você Mudou Sua Cor de Texto para > {00FF00}Verde");
- }
- if(listitem == 4)// Cinza
- {
- Texto1[playerid] = 5;
- SendClientMessage(playerid,-1,"» Você Mudou Sua Cor de Texto para > {696969}Cinza");
- }
- if(listitem == 5)// Rosa
- {
- Texto1[playerid] = 6;
- SendClientMessage(playerid,-1,"» Você Mudou Sua Cor de Texto para > {FF00FF}Rosa");
- }
- if(listitem == 6)// Branco
- {
- Texto1[playerid] = 7;
- SendClientMessage(playerid,-1,"» Você Mudou Sua Cor de Texto para > {FFFFFF}Branco");
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement