Код:
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;
}