[FilterScript] Menъ de colores para tu nick - Gonzalo 293
#1

Menъ de colores para tu nick

By Gonzalo 293

Luego de un largo descanso ejejje, les vengo a presentar un pequeсo FilterScript, es algo bбsico pero ъtil en servidores FR o en cualquier otro. Sin mas explicaciуn...

AQUН UNAS FOTOS






Cуdigo:

STRCMP

Код:
/*

						SISTEMA DE COLORES PARA NICKNAME, SA-MP, ESTE FILTERSCRIPT TIENE AUTORIZACIУN PARA LIBERARSE
															GONZALO 293

*/

#include < a_samp > //SA-MP Team
#include < zcmd > //Zeex

#define FILTERSCRIPT //Para que no ocurra errores en el callback OnPlayerCommandText

#if defined FILTERSCRIPT
#endif
#define Colores   22255

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/colores", cmdtext, true, 10) == 0)
	{
		ShowPlayerDialog(playerid, Colores, DIALOG_STYLE_LIST, "Colores", "{FF0000}Rojo\n{009DFF}Celeste\n{0000FF}Azul\n{FF00FF}Rosa\n{00CF00}Verde\n{00FF00}Verde Claro\n{FF9700}Naranja\n{FFFF00}Amarillo\n{8E00FF}Violeta\n{000000}Negro\n{FFFFFF}Blanco\n{774800}Marron\n{00FFFF}Aqua\n{BFFF00}Lima", "Aceptar", "");
		return 1;
	}
	return 0;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == Colores){
		switch(listitem){
			case 0:
			{
				//Rojo
				SetPlayerColor(playerid, 0xFF0000FF);
				SendClientMessage(playerid,0xFF0000FF,"Tu nick ahora es de color rojo");
			}
			case 1:
			{
				//Celeste
				SetPlayerColor(playerid, 0x00CAFFFF);
				SendClientMessage(playerid,0x00CAFFFF,"Tu nick ahora es de color celeste");
			}
			case 2:
			{
				//Azul
				SetPlayerColor(playerid, 0x0000FFFF);
				SendClientMessage(playerid,0x0000FFFF,"Tu nick ahora es de color azul");
			}
			case 3:
			{
				//Rosa
				SetPlayerColor(playerid, 0xFF00FFFF);
				SendClientMessage(playerid,0xFF00FFFF,"Tu nick ahora es de color rosa");
			}
			case 4:
			{
				//Verde
				SetPlayerColor(playerid, 0x00D600FF);
				SendClientMessage(playerid,0x00D600FF,"Tu nick ahora es de color verde");
			}
			case 5:
			{
				//Verde Claro
				SetPlayerColor(playerid, 0x00FF00FF);
				SendClientMessage(playerid,0x00FF00FF,"Tu nick ahora es de color verde claro");
			}
			case 6:
			{
				//Naranja
				SetPlayerColor(playerid, 0xFF6400FF);
				SendClientMessage(playerid,0xFF6400FF,"Tu nick ahora es de color naranja");
			}
			case 7:
			{
				//Amarillo
				SetPlayerColor(playerid, 0xFFFF00FF);
				SendClientMessage(playerid,0xFFFF00FF,"Tu nick ahora es de color amarillo");
			}
			case 8:
			{
				//Violeta
				SetPlayerColor(playerid, 0x9400FFFF);
				SendClientMessage(playerid,0x9400FFFF,"Tu nick ahora es de color violeta");
			}
			case 9:
			{
				//Negro
				SetPlayerColor(playerid, 0x000000FF);
				SendClientMessage(playerid,0x000000FF,"Tu nick ahora es de color negro");
			}
			case 10:
			{
				//Blanco
				SetPlayerColor(playerid, 0xFFFFFFFF);
				SendClientMessage(playerid,0xFFFFFFFF,"Tu nick ahora es de color blanco");
			}
			case 11:
			{
				//Marron
				SetPlayerColor(playerid, 0x833500FF);
				SendClientMessage(playerid,0x833500FF,"Tu nick ahora es de color marron");
			}
			case 12:
			{
				//Aqua
				SetPlayerColor(playerid, 0x00FFFFFF);
				SendClientMessage(playerid,0x00FFFFFF,"Tu nick ahora es de color aqua");
			}
			case 13:
			{
				//Lima
				SetPlayerColor(playerid, 0x00FF00FF);
				SendClientMessage(playerid,0x00FF00FF,"Tu nick ahora es de color lima");
			}
		}
	}
    return 0;
}

/*

						FIN DEL SISTEMA DE COLORES PARA NICKNAME, SA-MP, ESTE FILTERSCRIPT TIENE AUTORIZACIУN PARA LIBERARSE
																GONZALO 293

*/
ZCMD

Код:
/*

						SISTEMA DE COLORES PARA NICKNAME, SA-MP, ESTE FILTERSCRIPT TIENE AUTORIZACIУN PARA LIBERARSE
															GONZALO 293

*/
#include < a_samp > //SA-MP Team
#include < zcmd > //Zeex

#define Colores   22255

main()
{
	print("\n----------------------------------");
	print(" 		Sistema de colores         ");
	print("			    Cargado!			   ");
	print("        Echo por Gonzalo293         ");
	print("----------------------------------\n");
}


CMD:colores(playerid, params[])
{
	ShowPlayerDialog(playerid, Colores, DIALOG_STYLE_LIST, "Colores", "{FF0000}Rojo\n{009DFF}Celeste\n{0000FF}Azul\n{FF00FF}Rosa\n{00CF00}Verde\n{00FF00}Verde Claro\n{FF9700}Naranja\n{FFFF00}Amarillo\n{8E00FF}Violeta\n{000000}Negro\n{FFFFFF}Blanco\n{774800}Marron\n{00FFFF}Aqua\n{BFFF00}Lima", "Aceptar", "");
	return 1;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == Colores){
		switch(listitem){
			case 0:
			{
				//Rojo
				SetPlayerColor(playerid, 0xFF0000FF);
				SendClientMessage(playerid,0xFF0000FF,"Tu nick ahora es de color rojo");
			}
			case 1:
			{
				//Celeste
				SetPlayerColor(playerid, 0x00CAFFFF);
				SendClientMessage(playerid,0x00CAFFFF,"Tu nick ahora es de color celeste");
			}
			case 2:
			{
				//Azul
				SetPlayerColor(playerid, 0x0000FFFF);
				SendClientMessage(playerid,0x0000FFFF,"Tu nick ahora es de color azul");
			}
			case 3:
			{
				//Rosa
				SetPlayerColor(playerid, 0xFF00FFFF);
				SendClientMessage(playerid,0xFF00FFFF,"Tu nick ahora es de color rosa");
			}
			case 4:
			{
				//Verde
				SetPlayerColor(playerid, 0x00D600FF);
				SendClientMessage(playerid,0x00D600FF,"Tu nick ahora es de color verde");
			}
			case 5:
			{
				//Verde Claro
				SetPlayerColor(playerid, 0x00FF00FF);
				SendClientMessage(playerid,0x00FF00FF,"Tu nick ahora es de color verde claro");
			}
			case 6:
			{
				//Naranja
				SetPlayerColor(playerid, 0xFF6400FF);
				SendClientMessage(playerid,0xFF6400FF,"Tu nick ahora es de color naranja");
			}
			case 7:
			{
				//Amarillo
				SetPlayerColor(playerid, 0xFFFF00FF);
				SendClientMessage(playerid,0xFFFF00FF,"Tu nick ahora es de color amarillo");
			}
			case 8:
			{
				//Violeta
				SetPlayerColor(playerid, 0x9400FFFF);
				SendClientMessage(playerid,0x9400FFFF,"Tu nick ahora es de color violeta");
			}
			case 9:
			{
				//Negro
				SetPlayerColor(playerid, 0x000000FF);
				SendClientMessage(playerid,0x000000FF,"Tu nick ahora es de color negro");
			}
			case 10:
			{
				//Blanco
				SetPlayerColor(playerid, 0xFFFFFFFF);
				SendClientMessage(playerid,0xFFFFFFFF,"Tu nick ahora es de color blanco");
			}
			case 11:
			{
				//Marron
				SetPlayerColor(playerid, 0x833500FF);
				SendClientMessage(playerid,0x833500FF,"Tu nick ahora es de color marron");
			}
			case 12:
			{
				//Aqua
				SetPlayerColor(playerid, 0x00FFFFFF);
				SendClientMessage(playerid,0x00FFFFFF,"Tu nick ahora es de color aqua");
			}
			case 13:
			{
				//Lima
				SetPlayerColor(playerid, 0x00FF00FF);
				SendClientMessage(playerid,0x00FF00FF,"Tu nick ahora es de color lima");
			}
		}
	}
    return 0;
}
/*

						FIN DEL SISTEMA DE COLORES PARA NICKNAME, SA-MP, ESTE FILTERSCRIPT TIENE AUTORIZACIУN PARA LIBERARSE
																GONZALO 293

*/
Descargas

SISTEMA CON ZCMD

Pastebin

Solidfiles

SISTEMA CON STRCMP

Pastebin

Solidfiles
Crйditos:

Zeex por el include ZCMD
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)