28.06.2014, 23:32
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_CORES:
{
if(response)
{
switch(listitem)
{
case 0:
SetPlayerColor(playerid, COR_VERMELHA);
case 1:
SetPlayerColor(playerid, COR_VERDE);
case 2:
SetPlayerColor(playerid, COR_AMARELA);
case 3:
SetPlayerColor(playerid, COR_AZUL);
case 4:
SetPlayerColor(playerid, COR_LARANJA);
case 5:
SetPlayerColor(playerid, COR_ROXO);
case 6:
SetPlayerColor(playerid, COR_AZULM);
case 7:
SetPlayerColor(playerid, COR_ROSA);
case 8:
SetPlayerColor(playerid, COR_CINZA);
case 9:
SetPlayerColor(playerid, COR_MARROM);
case 10:
SetPlayerColor(playerid, COR_BRANCA);
case 11:
SetPlayerColor(playerid, COR_AZULCLARO);
case 12:
SetPlayerColor(playerid, COR_VERDEES);
}
}
}
}
return 1;
}