Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define <a_samp>
- #pragma tabsize 0
- #define Verde 0x00FF00FF
- #define Vermelho 0xFF0000AA
- #define Azul 0x0000FFAA
- #define Marron 0x804000AA
- #define Branco 0xFFFFFFAA
- #define Laranja 0xFF8000AA
- #define Azul_Marinho 0x80FFFFAA
- #define Cinza 0xC0C0C0AA
- #define Rosa 0xFF80FFAA
- #define Azul_Claro 0x80BFFFAA
- #define Verde_Escuro 0x007138AA
- #define Amarelo 0xFFFF00AA
- #define Roxo 0x9F009FAA
- #define 2
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" CorNick Simples By:Lifer");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext,"/cornick", true) == 0)
- {
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Escolha uma cor:", "Vermelho\nVerde\nAmarelo\nAzul\nLaranja\nRoxo\nAzu l Marinho\nRosa\nCinza\nMarrom\nBranco\nAzul Claro\nVerde Escuro", "Ok", "Cancelar");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new string[128];
- if(dialogid == 2)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerColor(playerid, Vermelho);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Vermelho (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 1)
- {
- SetPlayerColor(playerid, Verde);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Verde (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 2)
- {
- SetPlayerColor(playerid, Amarelo);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Amarelo (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 3)
- {
- SetPlayerColor(playerid, Azul);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Azul (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 4)
- {
- SetPlayerColor(playerid, Laranja);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Laranja (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 5)
- {
- SetPlayerColor(playerid, Roxo);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick para Roxo (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 6)
- {
- SetPlayerColor(playerid, Azul_Marinho);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Azul Marinho (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 7)
- {
- SetPlayerColor(playerid, Rosa);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Rosa (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 8)
- {
- SetPlayerColor(playerid, Cinza);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Cinza (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 9)
- {
- SetPlayerColor(playerid, Marron);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Marron (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 10)
- {
- SetPlayerColor(playerid, Branco);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Branco (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 11)
- {
- SetPlayerColor(playerid, Azul_Claro);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Azul Claro (/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 12)
- {
- SetPlayerColor(playerid, Verde_Escuro);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Verde Escuro(/cornick)", sendername);
- SendClientMessageToAll(Branco, string);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment