Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-|SISTEMA DE COR DO NICK|-=-=-=-=-=-=-=-=-=-=-=-==-=-=
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-|By: CloneZPlays|-=-=-=-=-=-=-=-=-=-=-=-==-=-==-==-=
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
- #include <a_samp>
- #define FILTERSCRIPT
- //Cores
- #define COLOR_YELLOW 0xFFFF00FF
- #if defined FILTERSCRIPT
- new string[256];
- public OnFilterScriptInit()
- {
- print("=====================================");
- print("=========-=BY: CloneZPlays=-=========");
- print("=====================================");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- //Comandos
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/cores", cmdtext, true, 10) == 0)
- {
- new Creditos[200];// <<< Ta Créditos pq é do meu GM o dialog,mais não muda em nada
- strins(Creditos,"{FF0000}/VERMELHO {0000FF}/AZUL {00FF00}/VERDE {FFFF00}/AMARELO {000000}/PRETO {FFFFFF}/BRANCO {FF1493}/ROSA\n",strlen(Creditos));
- ShowPlayerDialog(playerid,224, DIALOG_STYLE_MSGBOX, "{00FF00}CORES BY: {FFFFFF}CloneZPlays",Creditos, "OK", "");
- return 1;
- }
- if (strcmp(cmdtext, "/azul", true)==0)
- {
- SetPlayerColor(playerid, 0x0000FFFF);
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {0000FF}/AZUL {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
- SendClientMessageToAll(COLOR_YELLOW, string);
- return 1;
- }
- if (strcmp(cmdtext, "/vermelho", true)==0)
- {
- SetPlayerColor(playerid, 0xFF0000FF);
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FF0000}/VERMELHO {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
- SendClientMessageToAll(COLOR_YELLOW, string);
- return 1;
- }
- if (strcmp(cmdtext, "/verde", true)==0)
- {
- SetPlayerColor(playerid, 0x00FF00FF);
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {00FF00}/VERDE {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
- SendClientMessageToAll(COLOR_YELLOW, string);
- return 1;
- }
- if (strcmp(cmdtext, "/amarelo", true)==0)
- {
- SetPlayerColor(playerid, 0xFFFF00FF);
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FFFF00}/AMARELO {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
- SendClientMessageToAll(COLOR_YELLOW, string);
- return 1;
- }
- if (strcmp(cmdtext, "/branco", true)==0)
- {
- SetPlayerColor(playerid, 0xFFFFFFFF);
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FFFFFF}/BRANCO {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
- SendClientMessageToAll(COLOR_YELLOW, string);
- return 1;
- }
- if (strcmp(cmdtext, "/preto", true)==0)
- {
- SetPlayerColor(playerid, 0x000000FF);
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {000000}/PRETO {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
- SendClientMessageToAll(COLOR_YELLOW, string);
- return 1;
- }
- if (strcmp(cmdtext, "/rosa", true)==0)
- {
- SetPlayerColor(playerid, 0xFF1493FF);
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FF1493}/ROSA {FFFF00}Mude você também! {9370DB}[/CORES]", pname);
- SendClientMessageToAll(COLOR_YELLOW, string);
- return 1;
- }
- //==============================================================================
- return 0;
- }
- //==============================================================================
- #endif
Advertisement
Add Comment
Please, Sign In to add comment