24.05.2012, 21:16
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 2424)
{
if(response)
{
if(listitem == 0){
SetPlayerColor(playerid, 0x0000BBAA);
}
if(listitem == 1){
SetPlayerColor(playerid, 0xAA3333AA);
}
if(listitem == 2) {
SetPlayerColor(playerid, 0x33AA33AA);
}
if(listitem == 3) {
SetPlayerColor(playerid, 0xF0F8FFAA);
}
if(listitem == 4) {
SetPlayerColor(playerid, 0xFFC0CBAA);
}
if(listitem == 5) {
SetPlayerColor(playerid, 0xFFFF00AA);
}
if(listitem == 6) {
SetPlayerColor(playerid, 0xA52A2AAA);
}
if(listitem == 7) {
SetPlayerColor(playerid, 0xFF9900AA);
}
if(listitem == 8) {
SetPlayerColor(playerid, 0x9900FFAA);
}
}
}
return 1;
}