SA-MP Forums Archive
[FilterScript] [FS]Mudar Cor do Nick ( Dialog ) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS]Mudar Cor do Nick ( Dialog ) (/showthread.php?tid=150359)



[FS]Mudar Cor do Nick ( Dialog ) - jonataap - 25.05.2010

Topo do GameMode
Код:
#define Verde 0x00FF00FF
[b]public OnPlayerCommandText(playerid, cmdtext[]){
Код:
if(strcmp(cmdtext,"/mudarcor", true) == 0)
	{
		ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Escolha uma cor!", "Vermelho\nVerde\nAmarelo\nAzul\nLaranja\nRoxo\nAzul Marinho\nRosa\nCinza\nMarrom\nBranco\nAzul Claro\nVerde Escuro", "Ok", "Cancelar");
		return 1;
	}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){

Код:
if(dialogid == 2)
	{
		if(response)
		{
			if(listitem == 0)
			{
				SetPlayerColor(playerid, COR);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
				}
        }
			if(listitem == 1)
			{
				SetPlayerColor(playerid, COR);
								GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
			if(listitem == 2)
			{
				SetPlayerColor(playerid, COR);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
			if(listitem == 3)
			{
				SetPlayerColor(playerid, COR);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
			if(listitem == 4)
			{
				SetPlayerColor(playerid, COR);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
			if(listitem == 5)
			{
				SetPlayerColor(playerid, COR);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
			if(listitem == 6)
			{
				SetPlayerColor(playerid, CORl);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
			if(listitem == 7)
			{
				SetPlayerColor(playerid, COR);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
			if(listitem == 8)
			{
				SetPlayerColor(playerid, COR);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
			if(listitem == 9)
			{
				SetPlayerColor(playerid, COR);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
			if(listitem == 10)
			{
				SetPlayerColor(playerid, COR);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
			if(listitem == 11)
			{
				SetPlayerColor(playerid, COR);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
			if(listitem == 12)
			{
				SetPlayerColor(playerid, COR);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new string[256];
				format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername);
				SendClientMessageToAll(Verde, string);
			}
		}
		return 1;
	}



Re: [FS]Mudar Cor do Nick ( Dialog ) - Guedes747 - 25.05.2010

Portuguese stuff belong on Portuguese board: http://forum.sa-mp.com/index.php?board=77.0