dynamic dialogs - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: dynamic dialogs (
/showthread.php?tid=368160)
dynamic dialogs -
thefatshizms - 12.08.2012
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
Re: dynamic dialogs -
thefatshizms - 12.08.2012
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)
Re: dynamic dialogs -
Gangster-rocks - 12.08.2012
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
Re: dynamic dialogs -
thefatshizms - 12.08.2012
:facepalm: maybe i didnt explain well enough but i have sorted out anyway