onplayerpickuppickup
#2

Well if you want to do a dialog when they enter the pickup then...
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.
                }
            }
}
}
Hope I helped!
Reply


Messages In This Thread
onplayerpickuppickup - by M.5 - 28.09.2011, 22:20
Re: onplayerpickuppickup - by Azzeto - 29.09.2011, 04:11
Re: onplayerpickuppickup - by M.5 - 29.09.2011, 08:29

Forum Jump:


Users browsing this thread: 1 Guest(s)