17.11.2012, 19:04
Код:
if (dialogid == 8564) { if (response) { switch (listitem) { case 0: { SetPlayerColor(playerid, COLOR_RED ); SendClientMessage(playerid, COLOR_WHITE,"Tavo spalva Raudona"); } case 1: { SetPlayerColor(playerid, COLOR_YELLOW ); SendClientMessage(playerid, COLOR_WHITE,"Tavo spalva geltona"); } case 2: { SetPlayerColor(playerid, COLOR_GREEN ); SendClientMessage(playerid,COLOR_WHITE,"Tavo spalva юalia"); } case 3: { SetPlayerColor(playerid, COLOR_BLUE); SendClientMessage(playerid, COLOR_WHITE,"Tavo spalva mлlyna"); } } } }
and back yours 1st script
Код:
if(dialogid == 2109) //dialog id { if(response) // pressed OK { if(listitem == 0) //1st choice { FUNCTION } else if(listitem == 1) //second choice { FUNCTION } if(listitem == 2) // third choice FUNCTION } return 1; }