20.04.2013, 23:33
can anyone make me a box like http://prntscr.com/11gk1z and but where you can click to teleport?
CMD:teleport(playerid, params[]) { ShowPlayerDialog(playerid, DIALOG1, DIALOG_STYLE_LIST, "Teleports", "teleport 1\n teleport 2\n teleport 3\n teleport4", "Teleport", "Close"); return 1; }
if(dialogid == DIALOG1) { if(response) { if(listitem == 0) { SetPlayerPos(playerid, x, y, z); // ex: SetPlayerPos(playerid, 1529.6, -1691.2, 13.3); } if(listitem == 1) { SetPlayerPos(playerid, x, y, z); } if(listitem == 2) { SetPlayerPos(playerid, x, y, z); } if(listitem == 3) { SetPlayerPos(playerid, x, y, z); } } }
#define DIALOG1
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG1) { if(response) { if(listitem == 0) { SetPlayerPos(playerid, x, y, z); // ex: SetPlayerPos(playerid, 1529.6, -1691.2, 13.3); } if(listitem == 1) { SetPlayerPos(playerid, x, y, z); } if(listitem == 2) { SetPlayerPos(playerid, x, y, z); } if(listitem == 3) { SetPlayerPos(playerid, x, y, z); } } } }