This repository has no licence file. It is public to read, but that alone does not give permission to reuse it.
Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.
README.md
colors.inc
Português
Uma include simples e completa de cores.
Sem dependências. Só jogar na pasta e usar.
Instalação
Coloque o arquivo colors.inc na pasta gamemode/pawno/include/ e adicione ao seu gamemode:
#include "colors.inc"
Uso
0xRRGGBBAA — para funções
SendClientMessage(playerid, COLOR_RED, "Olá!");
SendClientMessageToAll(COLOR_GOLD, "Mensagem do servidor.");
{RRGGBB} — para strings
format(str, sizeof(str), COLOR_GOLD_HEX"[INFO] "COLOR_WHITE_HEX"Bem-vindo, %s!", name);
SendClientMessage(playerid, COLOR_WHITE, str);
Cores disponíveis
| Grupo | Exemplos |
|---|---|
| Branco/Preto | COLOR_WHITE, COLOR_BLACK, COLOR_GREY, COLOR_SILVER |
| Vermelho | COLOR_RED, COLOR_CRIMSON, COLOR_SALMON, COLOR_CORAL |
| Laranja | COLOR_ORANGE, COLOR_AMBER, COLOR_PEACH |
| Amarelo | COLOR_YELLOW, COLOR_GOLD, COLOR_MUSTARD, COLOR_LEMON |
| Verde | COLOR_GREEN, COLOR_LIME, COLOR_EMERALD, COLOR_JADE |
| Ciano | COLOR_CYAN, COLOR_TEAL, COLOR_TURQUOISE |
| Azul | COLOR_BLUE, COLOR_NAVY, COLOR_SKYBLUE, COLOR_ICEBLUE |
| Roxo | COLOR_PURPLE, COLOR_VIOLET, COLOR_LAVENDER |
| Rosa | COLOR_PINK, COLOR_HOTPINK, COLOR_MAGENTA, COLOR_ROSE |
| Marrom | COLOR_BROWN, COLOR_CHOCOLATE, COLOR_BEIGE, COLOR_TAN |
| Metálico | COLOR_GOLDMETAL, COLOR_SILVERMETAL, COLOR_PLATINUM |
Toda cor possui uma variante _HEX para uso dentro de strings.
Licença
MIT — livre para uso em qualquer servidor, aberto ou fechado.
English
A simple and complete color. No dependencies. Drop in and use.
Installation
Place colors.inc in your include/ folder and add to your gamemode:
#include "colors.inc"
Usage
0xRRGGBBAA — for functions
SendClientMessage(playerid, COLOR_RED, "Hello!");
SendClientMessageToAll(COLOR_GOLD, "Server message.");
{RRGGBB} — for strings
format(str, sizeof(str), COLOR_GOLD_HEX"[INFO] "COLOR_WHITE_HEX"Welcome, %s!", name);
SendClientMessage(playerid, COLOR_WHITE, str);
Colors available
| Group | Examples |
|---|---|
| White/Black | COLOR_WHITE, COLOR_BLACK, COLOR_GREY, COLOR_SILVER |
| Red | COLOR_RED, COLOR_CRIMSON, COLOR_SALMON, COLOR_CORAL |
| Orange | COLOR_ORANGE, COLOR_AMBER, COLOR_PEACH |
| Yellow | COLOR_YELLOW, COLOR_GOLD, COLOR_MUSTARD, COLOR_LEMON |
| Green | COLOR_GREEN, COLOR_LIME, COLOR_EMERALD, COLOR_JADE |
| Cyan | COLOR_CYAN, COLOR_TEAL, COLOR_TURQUOISE |
| Blue | COLOR_BLUE, COLOR_NAVY, COLOR_SKYBLUE, COLOR_ICEBLUE |
| Purple | COLOR_PURPLE, COLOR_VIOLET, COLOR_LAVENDER |
| Pink | COLOR_PINK, COLOR_HOTPINK, COLOR_MAGENTA, COLOR_ROSE |
| Brown | COLOR_BROWN, COLOR_CHOCOLATE, COLOR_BEIGE, COLOR_TAN |
| Metal | COLOR_GOLDMETAL, COLOR_SILVERMETAL, COLOR_PLATINUM |
Every color has a matching _HEX variant for use inside strings.
License
MIT — free to use in any server, open or closed source.
This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing