dynamic dialogs
#1

Hello, im making a house system and i want it to be fully dynamic. Ive managed to do the pickups (place them and give them an id) now i want to make a cmd to edit a default dialog that will be on a house when you first make it. But i have no clue on how to do it can i have some help lol
Reply
#2

Soory for double post but what i meant was i know how to make the dialog with cmd but how do i make it work with ondialogresponse and show up when u go on pickup (onplayerpickuppickup)
Reply
#3

Its so easy What you gotta do is that
pawn Код:
new Pickup; //on top of your GM
public OnGameModeInit()
{
    Pickup = CreatePickup(1232,23,0,0,0,0);
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Pickup)
    {
        ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"House","Buy house","Buy","Close");
    }
    return 1;
}
//and add your code at OnDialogResponse
Reply
#4

:facepalm: maybe i didnt explain well enough but i have sorted out anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)