[FilterScript] [FS]Mudar Cor do Nick ( Dialog )
#1

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;
	}
By GTA
As Cores vocкs pegam ai do seu GM as defines..
Reply
#2

Isso nгo e nenhum FS, posta isso aqui: http://forum.sa-mp.com/index.php?topic=170110.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)