14.11.2009, 15:34
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (dialogid == 1) { if (!response) {SendClientMessage(playerid, 0xFFFFFFFF, "You canceled!"); return false;} new message[196]; format(message, sizeof(message), "You are teleported to: %s", inputtext); SendClientMessage(playerid, 0xFFFFFFFF, message); if (listitem == 1) {SetPlayerPos(playerid, x, y, z);} //san fiero else if (listitem == 2) {SetPlayerPos(playerid, x, y, z);} //los santos return true; } return false; }