pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/rojos", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Colores 0.4a por Edugta","{FF0000}Rojo\r\n{DC143C}Carmesн\r\n{E32636}Alizarina\r\n{E34234}Bermellуn\r\n{FF2400}Escarlata\r\n{800000}Granate\r\n{960018}Carmнn\r\n{E52B50}Amaranto\r\n{FF033E}Rosa americana\r\n{800020}Borgoсa","Sн", "No");
return 1;
}
if (strcmp("/naranjas", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Colores 0.4a por Edugta","{FEC3AC}Salmуn\r\n{FF7028}Naranja\r\n{FF7E00}Бmbar\r\n{FF7F50}Coral\r\n{FF8C69}Sesamo\r\n{FBCEB1}Albaricoque\r\n{F5DEB3}Beige\r\n{FFCC99}Piel","Sн", "No");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(1)
{
case 1:
{
if(!response)
{
SendClientMessage(playerid, 0xFF0000FF, "Has cancelado, Ўdeja de malgastar el tiempo!");
return 1;
}
switch(listitem)
{
case 0:
{
SetPlayerColor(playerid, 0xFF0000FF);
SendClientMessage(playerid, 0xFF0000FF, "Has seleccionado tu color a rojo");
}
case 1:
{
SetPlayerColor(playerid, 0xDC143CFF);
SendClientMessage(playerid, 0xDC143CFF, "Has seleccionado tu color a carmesн");
}
case 2:
{
SetPlayerColor(playerid, 0xD01A42FF);
SendClientMessage(playerid, 0xD01A42FF, "Has seleccionado tu color a alizarina");
}
case 3:
{
SetPlayerColor(playerid, 0xE34233FF);
SendClientMessage(playerid, 0xE34233FF, "Has seleccionado tu color a bermellуn");
}
case 4:
{
SetPlayerColor(playerid, 0xFF2400FF);
SendClientMessage(playerid, 0xFF2400FF, "Has seleccionado tu color a escarlata");
}
case 5:
{
SetPlayerColor(playerid, 0x800000FF);
SendClientMessage(playerid, 0x800000FF, "Has seleccionado tu color a granate");
}
case 6:
{
SetPlayerColor(playerid, 0x960018FF);
SendClientMessage(playerid, 0x960018FF, "Has seleccionado tu color a carmнn");
}
case 7:
{
SetPlayerColor(playerid, 0xE52B50FF);
SendClientMessage(playerid, 0xE52B50FF, "Has seleccionado tu color a amaranto");
}
case 8:
{
SetPlayerColor(playerid, 0xFF033EFF);
SendClientMessage(playerid, 0xFF033EFF, "Has seleccionado tu color a rosa americano");
}
case 9:
{
SetPlayerColor(playerid, 0x800020FF);
SendClientMessage(playerid, 0x800020FF, "Has seleccionado tu color a borgoсa");
}
}
}
}
switch(2)
{
case 2:
{
if(!response)
{
SendClientMessage(playerid, 0xFF0000FF, "Has cancelado, Ўdeja de malgastar el tiempo!");
return 1;
}
switch(listitem)
{
case 0:
{
SetPlayerColor(playerid, 0xFEC3ACFF);
SendClientMessage(playerid, 0xFEC3ACFF, "Has seleccionado tu color a salmуn");
}
case 1:
{
SetPlayerColor(playerid, 0xFF7000FF);
SendClientMessage(playerid, 0xFF7000FF, "Has seleccionado tu color a naranja");
}
case 2:
{
SetPlayerColor(playerid, 0xFF7E00FF);
SendClientMessage(playerid, 0xFF7E00FF, "Has seleccionado tu color a бmbar");
}
case 3:
{
SetPlayerColor(playerid, 0xFF7F50FF);
SendClientMessage(playerid, 0xFF7F50FF, "Has seleccionado tu color a coral");
}
case 4:
{
SetPlayerColor(playerid, 0xFF8C69FF);
SendClientMessage(playerid, 0xFF8C69FF, "Has seleccionado tu color a sesamo");
}
case 5:
{
SetPlayerColor(playerid, 0xFBCEB1FF);
SendClientMessage(playerid, 0xFBCEB1FF, "Has seleccionado tu color a albaricoque");
}
case 6:
{
SetPlayerColor(playerid, 0xF5DEB3FF);
SendClientMessage(playerid, 0xF5DEB3FF, "Has seleccionado tu color a beige");
}
case 7:
{
SetPlayerColor(playerid, 0xFFC8A0FF);
SendClientMessage(playerid, 0xFFC8A0FF, "Has seleccionado tu color a piel");
}
}
}
}
return 0; // If you put return 1 here the callback will not continue to be called in other scripts (filterscripts, etc.).
}
EJ: