Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Créditos:
- Coringa253
- */
- #include <a_samp>
- #include <zcmd>
- //================================ Cores ===========================================//
- #define Vermelho 0xFF0000FF;
- #define Verde 0x00FF00FF;
- #define Azul 0x0000FFFF;
- #define Branco 0xFFFFFFFF;
- #define Preto 0x000000C1;
- #define AzulClaro 0x00FFFFFF
- #define Amarelo 0xFFFF00FF;
- #define Rosa 0xFF00FFFF;
- #define Messagem 0x0BBF6AA;
- //================================ Cores ===========================================//
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- new Cores;
- new Creditos;
- public OnFilterScriptInit()
- {
- print("\nCoresNick Dialog Ligado! - Coringa253");
- print("____________________________________\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\nCoresNick Dialog Desligado! - Coringa253");
- print("____________________________________\n");
- return 1;
- }
- #else
- #endif
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, 0x0BBF6AA, "~> Este servidor está usando CoresNick Dialog feito por{008000} Coringa253");
- }
- CMD:cndialog(playerid, params[])
- {
- ShowPlayerDialog(playerid, Cores, DIALOG_STYLE_LIST, "{FFFFFF}CoresNick", "{FF0000}~>Vermelho\n{008000}~>Verde\n{0000FF}~>Azul\n{FFFFFF}~>Branco\n{000000}~>Preto\n{00FFFF}~>Azul Claro\n{FFFF00}~>Amarelo\n{FF00FF}~>Rosa", "~>OK<~", "~>Voltar<~");
- return 1;
- }
- CMD:creditos(playerid, params[])
- {
- ShowPlayerDialog(playerid, Creditos, DIALOG_STYLE_MSGBOX, "{FFFFFF}CoresNick dialog {0000FF}Creditos", "{FFFFFF}~> Desenvolvido por {008000}Coringa253", "~>OK<~", "~>Voltar<~");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == Cores)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: SetPlayerColor(playerid, 0xFF0000FF);
- case 1: SetPlayerColor(playerid, 0x00FF00FF);
- case 2: SetPlayerColor(playerid, 0x0000FFFF);
- case 3: SetPlayerColor(playerid, 0xFFFFFFFF);
- case 4: SetPlayerColor(playerid, 0x000000C1);
- case 5: SetPlayerColor(playerid, 0x00FFFFFF);
- case 6: SetPlayerColor(playerid, 0xFFFF00FF);
- case 7: SetPlayerColor(playerid, 0xFF00FFFF);
- case 8: ShowPlayerDialog(playerid, Creditos, DIALOG_STYLE_MSGBOX, "{FFFFFF}CoresNick Dialog {0000FF}Creditos", "{FFFFFF}~> Desenvolvido por {008000}Coringa253", "~>OK<~", "~>Voltar<~");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement