Marker that opens a dialog to pick location
#5

pawn Код:
new mymaker = AddStaticPickup(1242, 1, 1503.3359, 1432.3585, 10.1191, 0);

public OnPlayerPickUpPickup(playerid, pickupid) {
    if(pickupid == mymarker) ShowPlayerDialog(playerid, 777, DIALOG_STYLE_LIST, "Weapons", "TransFender\nLoco Low Co.\nWheel Arch Angels", "Teleport", "Exit");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
    if(dialogid == 777) {
        if(listitem == 0) // TransFender
            // SetPlayerPos();
        else if(listitem == 1) // Loco Low Co.
            // SetPlayerPos();
        else if(listitem == 2) // Wheel Arch Angels
            // SetPlayerPos();
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)