23.06.2010, 07:43
here ya go try this
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 911 && response == 1) { switch(listitem) { case 0: { SetPlayerPos(playerid,2268.9697,2458.9207,38.6837); SetPlayerFacingAngle(playerid,0); } case 1: { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,237.3105,195.6100,1008.1719); SetPlayerFacingAngle(playerid,270); } case 2: { SetPlayerPos(playerid,2268.147949,2448.327880,3.531250); SetPlayerFacingAngle(playerid, 180); } case 3: { SetPlayerPos(playerid,2267.936523,2448.448486,-7.195312); SetPlayerFacingAngle(playerid,180); } } } if(dialogid == 912 && response == 1) { switch(listitem) { case 0: { SetPlayerPos(playerid,2268.9697,2458.9207,38.6837); SetPlayerFacingAngle(playerid,0); } case 1: { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,237.3105,195.6100,1008.1719); SetPlayerFacingAngle(playerid,270); } case 2: { SetPlayerPos(playerid,2296.523193,2468.725341,10.820312); SetPlayerFacingAngle(playerid, 270); } case 3: { SetPlayerPos(playerid,2267.936523,2448.448486,-7.195312); SetPlayerFacingAngle(playerid,180); } } } if(dialogid == 913 && response == 1) { switch(listitem) { case 0: { SetPlayerPos(playerid,2268.9697,2458.9207,38.6837); SetPlayerFacingAngle(playerid,0); } case 1: { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,237.3105,195.6100,1008.1719); SetPlayerFacingAngle(playerid,270); } case 2: { SetPlayerPos(playerid,2296.523193,2468.725341,10.820312); SetPlayerFacingAngle(playerid, 270); } case 3: { SetPlayerPos(playerid,2268.147949,2448.327880,3.531250); SetPlayerFacingAngle(playerid,180); } } } if(dialogid == 914 && response == 1) { switch(listitem) { case 0: { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,237.3105,195.6100,1008.1719); SetPlayerFacingAngle(playerid,270); } case 1: { SetPlayerPos(playerid,2296.523193,2468.725341,10.820312); SetPlayerFacingAngle(playerid,270); } case 2: { SetPlayerPos(playerid,2268.147949,2448.327880,3.531250); SetPlayerFacingAngle(playerid, 180); } case 3: { SetPlayerPos(playerid,2267.936523,2448.448486,-7.195312); SetPlayerFacingAngle(playerid,180); } } } if(dialogid == 915 && response == 1) { switch(listitem) { case 0: { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2268.9697,2458.9207,38.6837); SetPlayerFacingAngle(playerid,0); } case 1: { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2296.523193,2468.725341,10.820312); SetPlayerFacingAngle(playerid, 270); } case 2: { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2268.147949,2448.327880,3.531250); SetPlayerFacingAngle(playerid, 180); } case 3: { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2267.936523,2448.448486,-7.195312); SetPlayerFacingAngle(playerid,180); } } } return 1; }