Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Jonas Emanuel */
- #include <a_samp>
- #include <zcmd>
- #define COR_VERMELHO 0xFF0037FF
- #define COR_AZUL 0x0000FFFF
- #define COR_VERDECLARO 0x19FF00FF
- #define COR_AMARELO 0xFFFF00AA
- #define COR_LARANJA 0xFF9933AA
- #define COR_AZULCLARO 0x46BBAA00
- #define COR_BRANCO 0xFFFFFFAA
- #define COR_AZULESCURO 0x3399FFAA
- #define COR_PRETO 0x00000000
- #define COR_ROXO 0x9900FFAA
- #define COR_ROSA 0xFF66FFAA
- #define COR_INVISIVEL 0xAFAFAF00
- #define COR_BEJE 0x999900AA
- #define COR_MARROM 0x993300AA
- #define COR_CINZA 0xAFAFAFAA
- #define COR_VIOLETA 0x9955DEEE
- new CORES[16]={
- COR_VERMELHO,
- COR_AZUL,
- COR_VERDECLARO,
- COR_AMARELO,
- COR_LARANJA,
- COR_AZULCLARO,
- COR_BRANCO,
- COR_AZULESCURO,
- COR_PRETO,
- COR_ROXO,
- COR_ROSA,
- COR_INVISIVEL,
- COR_BEJE,
- COR_MARROM,
- COR_CINZA,
- COR_VIOLETA
- };
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------------");
- print(" Sistema de Cores Carregado by: Jonas_Emanuel ");
- print("--------------------------------------------\n");
- return 1;
- }
- CMD:cores(playerid)
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Escolhe sua Cor:", "{FF0000}Vermelho\n{3D00FF}Azul\n{09FF00}Verde Claro\n{FFFF00}Amarelo\n{FFB900}Laranja\n{00FFFF}Azul Claro\n{FFFFFF}Branco\n{00008C}Azul Escuro\n{000000}Preto\n{7400BA}Roxo\n{FD63E4}Rosa\nInvisivel\n{FFE8C0}Beje\n{A36E00}Marrom\n{636665}Cinza\n{BA5FFF}Violeta", "Escolher", "Cancelar");
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerColor(playerid, CORES[random(sizeof(CORES))]);
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem)
- {
- if(dialogid == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerColor(playerid, COR_VERMELHO);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FF0000}Vermelho");
- return 1;
- }
- case 1:
- {
- SetPlayerColor(playerid, COR_AZUL);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {3D00FF}Azul");
- return 1;
- }
- case 2:
- {
- SetPlayerColor(playerid, COR_VERDECLARO);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {09FF00}Verde Claro");
- return 1;
- }
- case 3:
- {
- SetPlayerColor(playerid, COR_AMARELO);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FFFF00}Amarelo");
- return 1;
- }
- case 4:
- {
- SetPlayerColor(playerid, COR_LARANJA);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FFB900}Laranja");
- return 1;
- }
- case 5:
- {
- SetPlayerColor(playerid, COR_AZULCLARO);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {00FFFF}Azul Claro");
- return 1;
- }
- case 6:
- {
- SetPlayerColor(playerid, COR_BRANCO);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FFFFFF}Branco");
- return 1;
- }
- case 7:
- {
- SetPlayerColor(playerid, COR_AZULESCURO);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {00008C}Azul Escuro");
- return 1;
- }
- case 8:
- {
- SetPlayerColor(playerid, COR_PRETO);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {000000}Preto");
- return 1;
- }
- case 9:
- {
- SetPlayerColor(playerid, COR_ROXO);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {7400BA}Roxo");
- return 1;
- }
- case 10:
- {
- SetPlayerColor(playerid, COR_ROSA);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FD63E4}Rosa");
- return 1;
- }
- case 11:
- {
- SetPlayerColor(playerid, COR_INVISIVEL);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: Invisivel");
- return 1;
- }
- case 12:
- {
- SetPlayerColor(playerid, COR_BEJE);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {FFE8C0}Beje");
- return 1;
- }
- case 13:
- {
- SetPlayerColor(playerid, COR_MARROM);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {A36E00}Marrom");
- return 1;
- }
- case 14:
- {
- SetPlayerColor(playerid, COR_CINZA);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {636665}Cinza");
- return 1;
- }
- case 15:
- {
- SetPlayerColor(playerid, COR_VIOLETA);
- SendClientMessage(playerid, COR_AMARELO, "Cor alterada para: {BA5FFF}Violeta");
- return 1;
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement