29.09.2011, 04:11
Well if you want to do a dialog when they enter the pickup then...
Hope I helped!
pawn Код:
//Top of script
new mypickup;
#define DIALOG_MOVEOBJECT
//OnPlayerPickupPickup
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == mypickup)
{
ShowPlayerDialog(playerid,DIALOG_MOVEOBJECT,DIALOG_STYLE_LIST,"Move Object","Move Object\nNo Thanks","Confirm","Cancel");
}
return 1;
}
//public Ondialogresponse
if(dialogid == DIALOG_SHOP)
{
if(response == 1)// They pressed the first button.
{
switch(listitem)// Checking which listitem was selected
{
case 0:
{
MoveObject(object01,72.232567, -1533.768188, 6.978306, 1.0001);
GetPlayerMoney(playerid, 100);
}
case 1:
{
//leave blank to close the dialog when chose.
}
}
}
}